Derivation of efficient DAG marking algorithms

  • Authors:
  • R. J. R. Back;Heikki Mannila;Kari-Jouko Räihä

  • Affiliations:
  • University of Helsinki, Tukholmankatu 2, SF-00250 Helsinki 25, Finland;University of Helsinki, Tukholmankatu 2, SF-00250 Helsinki 25, Finland;University of Helsinki, Tukholmankatu 2, SF-00250 Helsinki 25, Finland

  • Venue:
  • POPL '83 Proceedings of the 10th ACM SIGACT-SIGPLAN symposium on Principles of programming languages
  • Year:
  • 1983

Quantified Score

Hi-index 0.00

Visualization

Abstract

The best known linear-time list marking algorithms also require a linear amount of workspace. Algorithms working in bounded workspace have been obtained only by allowing quadratic execution time or by restricting the list structures to trees. We improve on this here by deriving a new linear-time, bounded workspace marking algorithm that works for dags. The algorithm is derived using correctness-preserving program transformations, which prove the correctness of the algorithm. Our derivation of the marking algorithm provides an example where this method has actually been used to derive a new, more efficient algorithm, rather than just to establish the correctness of a previously known algorithm.