Research on solving 0-1 knapsack problem by dynamic programmin
Abstract
The 0-1 Knapsack Problem poses the challenge of maximizing the total value of a subset of items, while respecting a capacity constraint in a knapsack. This paper explores the problem’s solution and aims to find an optimal solution. The Dynamic Programming approach, based on the principles of optimal substructure and overlapping subproblems, breaks down the problem into smaller, solvable subproblems. The article discusses the key features of Dynamic Programming, including its ability to handle non-linearities and provide a bottom-up approach for optimal substructure. A code implementation showcases the pseudocode, demonstrating the iterative calculation and efficient storage of results. Reviewing the research, the Dynamic Programming is a suitable and powerful tool as the benefits are summarized and listed into less computations, high efficiency and the optimal final result. By leveraging Dynamic Programming, the 0-1 Knapsack Problem can be solved optimally by finding the subset of items that maximizes the value within the capacity constraint.
References
- Martello, S. , & Toth, P. P. . (2011). Dynamic programming and strong bounds for the 0-1 knapsack problem. Management ence, 45(3), 414-424.
- Wang, Y. , Wang, M. , Li, J., & Xu, X.. (2020). Comparison of genetic algorithm and dynamic programming solving knapsack problem.
- Lan Wenfei, Wu Ziying, & Yang Bo. (2016). An improved dynamic programming algorithm for the knapsack problem. Journal of South-Central University for Nationalities: Natural Science Edition, 35(4), 5.
- Yan Li. (2020). Algorithmic Decision Analysis of 0-1 Knapsack Problem. Computer Knowledge and Technology: Academic Edition (4), 3.
- Sun Jianing, Ma Hailong, Zhang Lichen, & Li Peng. (2022). A Backtracking Algorithm for Solving the 0-1 Knapsack Problem Fusion Greedy Strategy. Computer Technology and Development (002), 032.
- Wang Maoping. (2021). Extended model of discounted {0-1} knapsack problem and its dynamic programming solution (Master's thesis, China West Normal University).