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

APSP中的无政府状态:Floyd-Warshall错误实现的算法与硬度

Anarchy in the APSP: Algorithm and Hardness for Incorrect Implementation of Floyd-Warshall

Jaehyun Koo

AI总结:

本文研究了因混淆循环顺序导致的Floyd-Warshall错误变体问题,提出了计算该错误APSP矩阵的高效算法,并证明了该变体是APSP完全的。

摘要:

著名的Floyd-Warshall算法能高效计算所有顶点对的最短路径,其简洁性使其成为计算机科学课堂的常备内容。学生常因混淆循环顺序而发现该算法的一个变体,最终得到错误的APSP矩阵。本文考虑了计算此错误APSP矩阵的计算问题。我们将为此问题提出高效算法,并证明该错误变体是APSP完全的。

英文摘要:

The celebrated Floyd-Warshall algorithm efficiently computes the all-pairs shortest path, and its simplicity made it a staple in computer science classes. Frequently, students discover a variant of this Floyd-Warshall algorithm by mixing up the loop order, ending up with the incorrect APSP matrix. This paper considers a computational problem of computing this incorrect APSP matrix. We will propose efficient algorithms for this problem and prove that this incorrect variant is APSP-complete.

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

↑