Two tagless variations on the Deutsch-Schorr-waite algorithm
Two variations are presented of the Deutsch-Schorr-Waite algorithm for marking finite, rooted, binary, directed graphs that dispense with the tag bit while retaining the same overall structure. These variations illustrate the gains that can be made through careful analysis of loop invariants. Also,...
Gespeichert in:
Veröffentlicht in: | Information processing letters 1986-04, Vol.22 (4), p.179-183 |
---|---|
1. Verfasser: | |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Two variations are presented of the Deutsch-Schorr-Waite algorithm for marking finite, rooted, binary, directed graphs that dispense with the tag bit while retaining the same overall structure. These variations illustrate the gains that can be made through careful analysis of loop invariants. Also, by keeping the overall structure of a well-known algorithm, they represent an increase in clarity over previous tag-free marking algorithms. One result demonstrated is that a 2nd variation that works only on acyclic graphs can achieve linear time as well as constant workspace. It is suggested that linear time and constant workspace may not be simultaneously attainable by any algorithm on all graphs. |
---|---|
ISSN: | 0020-0190 1872-6119 |
DOI: | 10.1016/0020-0190(86)90024-4 |