A functional, successor list based version of warshall's algorithm with applications

  • Authors:
  • Rudolf Berghammer

  • Affiliations:
  • Institut für Informatik, Christian-Albrechts-Universität Kiel, Kiel, Germany

  • Venue:
  • RAMICS'11 Proceedings of the 12th international conference on Relational and algebraic methods in computer science
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

We show how formally and systematically to develop a purely functional version of Warshall's algorithm for computing transitive closures by combining the unfold-fold technique, relation-algebra and data refinement. It is based on an implementation of relations by lists of successor lists. The final version can immediately be implemented in Haskell. This resulting Haskell program has the same runtime complexity as the traditional imperative array-based implementation of Warshall's algorithm. We also demonstrate how it can be re-used as component in other functional algorithms.