Dijkstra, Floyd and Warshall meet Kleene

Around 1960, Dijkstra, Floyd and Warshall published papers on algorithms for solving single-source and all-sources shortest path problems, respectively. These algorithms, nowadays named after their inventors, are well known and well established. This paper sheds an algebraic light on these algorithms. We combine the shortest path problems with Kleene algebra, also known as Conway’s regular algebra. This view yields a purely algebraic version of Dijkstra’s shortest path algorithm and the one by Floyd/Warshall. Moreover, the algebraic abstraction yields applications of these algorithms to structures different from graphs and pinpoints the mathematical requirements on the underlying cost algebra that ensure their correctness.

[1]  Thomas Lengauer,et al.  Efficient Algorithms for Path Problems with Gernal Cost Citeria , 1991, ICALP.

[2]  Dexter Kozen,et al.  Kleene algebra with tests , 1997, TOPL.

[3]  Thomas Lengauer,et al.  Unstructured Path Problems and the Making of Semirings (Preliminary Version) , 1991, WADS.

[4]  Charles E. Perkins,et al.  Ad hoc On-Demand Distance Vector (AODV) Routing , 2001, RFC.

[5]  Dexter Kozen,et al.  A completeness theorem for Kleene algebras and the algebra of regular events , 1991, [1991] Proceedings Sixth Annual IEEE Symposium on Logic in Computer Science.

[6]  T. Lindvall ON A ROUTING PROBLEM , 2004, Probability in the Engineering and Informational Sciences.

[7]  John Moy,et al.  OSPF for IPv6 , 1999, RFC.

[8]  J. Conway Regular algebra and finite machines , 1971 .

[9]  S C Kleene,et al.  Representation of Events in Nerve Nets and Finite Automata , 1951 .

[10]  Georg Struth,et al.  Automated Reasoning in Kleene Algebra , 2007, CADE.

[11]  Michel Minoux,et al.  Graphs and Algorithms , 1984 .

[12]  Roland C. Backhouse,et al.  Calculating Path Algorithms , 1994, Sci. Comput. Program..

[13]  Edsger W. Dijkstra,et al.  A note on two problems in connexion with graphs , 1959, Numerische Mathematik.

[14]  R. Backhouse,et al.  Regular Algebra Applied to Path-finding Problems , 1975 .

[15]  B. Carré An Algebra for Network Routing Problems , 1971 .

[16]  F. Harary,et al.  The theory of graphs and its applications , 1963 .

[17]  Annabelle McIver,et al.  Towards an Algebra of Routing Tables , 2011, RAMICS.

[18]  Dexter Kozen A Completeness Theorem for Kleene Algebras and the Algebra of Regular Events , 1994, Inf. Comput..

[19]  G. Dantzig On the Shortest Route Through a Network , 1960 .

[20]  Michel Minoux,et al.  Graphs, dioids and semirings : new models and algorithms , 2008 .

[21]  Daniel A. Spielman Graphs and networks , 2007 .

[22]  Brian A. Davey,et al.  An Introduction to Lattices and Order , 1989 .

[23]  Marco Hollenberg,et al.  Equational Axioms of Test Algebra , 1996, CSL.

[24]  John Moy,et al.  OSPF Version 2 , 1998, RFC.

[25]  Stephen Warshall,et al.  A Theorem on Boolean Matrices , 1962, JACM.

[26]  Robert E. Tarjan,et al.  A Unified Approach to Path Problems , 1981, JACM.

[27]  Michel Minoux,et al.  Graphes et algorithmes , 1995 .

[28]  S. C. Kleene,et al.  Introduction to Metamathematics , 1952 .

[29]  Alfred V. Aho,et al.  The Design and Analysis of Computer Algorithms , 1974 .