arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1904.01210cs.DS
收藏

Floyd-Warshall算法的错误实现在三次重复之后给出正确的解

Incorrect implementations of the Floyd--Warshall algorithm give correct solutions after three repeats

Ikumi Hide, Soh Kumabe, Takanori Maehara

摘要:

Floyd-Warshall算法是一个著名的算法,用于所有对最短路径问题,它简单地由三重嵌套循环实现。在这项研究中,我们表明,不正确的实现的Floyd-Warshall算法,乱序的三重嵌套循环给出正确的解决方案,如果这些重复三次。

英文摘要:

The Floyd--Warshall algorithm is a well-known algorithm for the all-pairs shortest path problem that is simply implemented by triply nested loops. In this study, we show that the incorrect implementations of the Floyd--Warshall algorithm that misorder the triply nested loops give correct solutions if these are repeated three times.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑