Skip to content

ojacinto/knapsack_dynamic_programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

knapsack_dynamic_programming

Dynamic programming: the knapsack problem

Algorithms help us solve problems. There are many ways to design them, a method that I did not know until recently and that has been very interesting to know is the dynamic programming. The fundamental idea of ​​dynamic programming is to divide the problem into subproblems and then calculate each subproblem once. There are two approaches: top-down and bottom-up. Dynamic programming allows us to solve problems faster than with brute force, spending much more computer memory instead.

As explained thus, it is a little abstract, we are going to try to solve a classic dynamic programming problems, the knapsack problem (or the knapsack).

About

Algorithms help us solve problems. There are many ways to design them, a method that I did not know until recently and that has been very interesting to know is the dynamic programming. The fundamental idea of ​​dynamic programming is to divide the problem into subproblems and then calculate each subproblem once. There are two approaches: top-do…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages