Python tutorial: How to solve the knapsack problem?

Описание к видео Python tutorial: How to solve the knapsack problem?

In this python tutorial video I show you how you can solve a unbounded knapsack problem using a greedy strategy. I also show you that the greedy strategy produces an optimal solution for this given problem however this is not always guaranteed when there are other constraints present for example there might be a limited amount of supply.

🎥 playlist with other programming problems:
   • Problem solving with python  

Комментарии

Информация по комментариям в разработке