Skip to main content
Log in

Two graph algorithms derived

  • Original articles
  • Published:
Acta Informatica Aims and scope Submit manuscript

Abstract.

Much emphasis has been placed in recent years on deriving or calculating programs rather than proving them correct. Adequate calculational frameworks are needed to support such an approach. The present work explores the use of a calculus of relations to express and reason about graph properties in an algorithmic context. We first construct a generic program that computes a maximal set, over some universe, satisfying a certain given predicate. The development is presented as a step-by-step derivation, applying well-known techniques and heuristics that aid the construction of imperative programs. A calculational framework of relations is then used to obtain two instances of the generic program. These instances correspond to the computation of maximal graph components, viz. maximal independent sets of vertices and maximal sets of edges without cycles (i.e. maximal forests).

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Additional information

Received: 29 May 1998 / 28 June 1999

Rights and permissions

Reprints and permissions

About this article

Cite this article

Ravelo, J. Two graph algorithms derived. Acta Informatica 36, 489–510 (1999). https://doi.org/10.1007/s002360050182

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/s002360050182

Keywords

Navigation