arXiv · 2404.08173
Anarchy in the APSP: Algorithm and Hardness for Incorrect Implementation of Floyd-Warshall
Abstract
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.
Explore related subjects
Keep this discovery
Jaehyun Koo. 2024-04-12. Anarchy in the APSP: Algorithm and Hardness for Incorrect Implementation of Floyd-Warshall. https://doi.org/10.4230/lipics.fun.2024.19
Cite the original work for its findings. Save a collection to share your selection of sources.