关于哈密顿回路问题的回溯算法
Backtracking (the) Algorithms on the Hamiltonian Cycle Problem
AI总结:
本文对1877至2016年间六种哈密顿回路回溯算法进行大规模定量比较,证实Komlós-Szemerédi界限为普遍困难区域,并发现Vandegriend-Culberson算法在计算时间上最优,而Frank Rubin算法在递归有效性上最佳。
摘要:
尽管哈密顿回路问题是NP完全的,但它的许多问题实例并非如此。事实上,几乎所有困难的实例都位于一个区域:接近Komlós-Szemerédi界限,即具有$\frac{1}{2}\\ v\cdot ln(v) + \frac{1}{2}\\ v\cdot ln( ln(v))$条边,其中随机生成的图有大约50%的概率是哈密顿图。如果边的数量要么高得多,要么低得多,问题就不难——大多数回溯算法能在(近)多项式时间内判定此类实例。然而最近,定向搜索工作在远离Komlós-Szemerédi界限处发现了非常困难的哈密顿回路问题实例。在那项研究中,使用的回溯算法是Vandegriend-Culberson算法,它被认为是所有哈密顿回溯算法中最高效的。在本文中,我们对1877年至2016年间描述的最著名的回溯算法进行了统一的大规模定量比较。我们证实了Komlós-Szemerédi界限对所有回溯算法来说都是一个困难区域的猜测,但也证实了当以消耗的计算时间来衡量时,Vandegriend-Culberson算法确实是最有效的算法。然而,当以递归有效性来衡量时,Frank Rubin提出的算法表现最佳,该算法已有近半个世纪的历史。在更一般的算法评估中,我们推测边剪枝和非哈密顿性检查可能是这些递归节省的主要原因。然而,当以系统时间衡量时,更密集的问题实例每次递归需要更多时间。这很可能是由于额外的搜索剪枝过程成本高昂且相对复杂。我们提供了大量实验数据,以及所有六种算法的统一单程序实现。所有数据和算法源代码均已公开,供同行进一步使用。
英文摘要:
Even though the Hamiltonian cycle problem is NP-complete, many of its problem instances aren't. In fact, almost all the hard instances reside in one area: near the Komlós-Szemerédi bound, of $\frac{1}{2}\ v\cdot ln(v) + \frac{1}{2}\ v\cdot ln( ln(v))$ edges, where randomly generated graphs have an approximate 50\% chance of being Hamiltonian. If the number of edges is either much higher or much lower, the problem is not hard -- most backtracking algorithms decide such instances in (near) polynomial time. Recently however, targeted search efforts have identified very hard Hamiltonian cycle problem instances very far away from the Komlós-Szemerédi bound. In that study, the used backtracking algorithm was Vandegriend-Culberson's, which was supposedly the most efficient of all Hamiltonian backtracking algorithms. In this paper, we make a unified large scale quantitative comparison for the best known backtracking algorithms described between 1877 and 2016. We confirm the suspicion that the Komlós-Szemerédi bound is a hard area for all backtracking algorithms, but also that Vandegriend-Culberson is indeed the most efficient algorithm, when expressed in consumed computing time. When measured in recursive effectiveness however, the algorithm by Frank Rubin, almost half a century old, performs best. In a more general algorithmic assessment, we conjecture that edge pruning and non-Hamiltonicity checks might be largely responsible for these recursive savings. When expressed in system time however, denser problem instances require much more time per recursion. This is most likely due to the costliness of the extra search pruning procedures, which are relatively elaborate. We supply large amounts of experimental data, and a unified single-program implementation for all six algorithms. All data and algorithmic source code is made public for further use by our colleagues.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。