Abstract:Research on weight problem is helpful to solve other problems, and it has practical significance for the design of the algorithm and the solution of the real life. The purpose of this paper is to introduce the solution for the weight problem with both greedy algorithm and dynamic programming. We mainly discuss the difference between these two algorithms based on different solution methods. The algorithms in this paper are described in C language, natural language or charts.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.