Skip to content

Comparison of greedy algorithm and dynamic programming for the binary knapsack problem

License

Notifications You must be signed in to change notification settings

MahatKC/mochila_binaria

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mochila_binaria

Project developed by @MahatKC, @AmandaIsrael and @igorFNegrizoli in 2022.

This project was an assignment for the Algorithm Analysis and Design course we took in our 4th year of Computer Science.

Coded entirely in Python, it compares two possible solutions for the binary knapsack problem: a greedy algorithm and dynamic programming.

Different files were provided by the course's professor with different lengths in order to compare each solution in regards to time taken to find the solution and the best value found by each.

Matplotlib and Pandas were used to create a CSV with the results of different runs and plot graphs comparing the runs.

About

Comparison of greedy algorithm and dynamic programming for the binary knapsack problem

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages