摘要
主要对回溯法与分枝限界法进行了分析与研究。首先介绍了两种算法的基本概念,引出它们的基本解题思想与过程。然后运用0-1背包问题分别对回溯法,队列式分枝界限法和优先队列式分枝界限法进行详细的分析与说明。进一步总结算法的异同,研究发现回溯法解决问题时对内存空间的要求更低,而分枝限界法解决问题时需要的时间更短。
This paper mainly analyzes and studies the backtracking and the branch-and-bound method. First, the basic concepts of the two algorithms are introduced, and their basic idea and process of solving the problem are introduced. Then the 0-1 knapsack problem is used to analyze and explain the backtracking method, the queue branch boundary method and the priority queue branch and boundary method in detail. By further summarizing the similarities and differences of the algorithm, it is found that the memory space requirement is lower when the backtracking method solves the problem, while the branch-and-bound method takes shorter time to solve the problem.
引文
[1]董鹏.吴艳群.张春民.应用回溯算法求解多枢纽选址问题[J].交通与计算机,2004(8).
[2]胡金初.计算机算法[M].北京:清华大学出版社#北京交通大学出版社,2009.
[3]王春梅.分支限界算法的研究与实现[J].现代电子技术,2011.
[4]李春葆.算法设计与分析[M].北京:清华大学出版社,2015.