ScienceDirect® Home Skip Main Navigation Links
You have guest access to ScienceDirect. Find out more.
 
Home
Browse
My Settings
Alerts
Help
 Quick Search
 Search tips (Opens new window)
    Clear all fields    
Information Processing Letters
Volume 61, Issue 2, 28 January 1997, Pages 113-120
 
Font Size: Decrease Font Size  Increase Font Size
 Abstract - selected
Purchase PDF (748 K)

 
 
 
Related Articles in ScienceDirect
View More Related Articles
 
View Record in Scopus
 
doi:10.1016/S0020-0190(96)00202-5    How to Cite or Link Using DOI (Opens New Window)
Copyright © 1997 Published by Elsevier Science B.V.

The incremental maintenance of a Depth-First-Search tree in directed acyclic graphs*1

Paolo G. Franciosaa, Corresponding Author Contact Information, E-mail The Corresponding Author, Giorgio GambosiE-mail The Corresponding Author, b and Umberto NanniE-mail The Corresponding Author, a

a Dipartimento di Informatica e Sistemistica, Università di Roma “La Sapienza”, via Salaria 113, I-00198, Roma, Italy b Dipartimento di Matematica, Università di Roma “Tor Vergata”, via della Ricerca Scientifica, I-00133, Roma, Italy

Received 1 March 1996. 
Communicated by S.G. Akl 
Available online 12 May 1998.

Purchase the full-text article



References and further reading may be available for this article. To view references and further reading you must purchase this article.

Abstract

We propose an incremental algorithm to maintain a DFS-forest in a directed acyclic graph under a sequence of arc insertions in O(nm) worst case total time, where n is the number of nodes and m is the number of arcs after the insertions. This compares favorably with the time required to recompute DFS from scratch by using Tarjan's Θ(n + m) algorithm any time a sequence of Ω(n) arc insertions must be handled. In particular, over a sequence of Θ(m) arc insertions our algorithm requires O(n) amortized time per operation, and its worst case time is O(n + m). Our algorithm relies on an original characterization of a DFS-forest in terms of a relaxed planar embedding of the graph. Besides the basic representation of the graphs in term of adjacency lists, O(n) additional space is required. Although the problem of the dynamic maintenance of a DFS-tree was pointed out about one decade ago, this paper provides the first solution to this problem for nontrivial classes of graphs.

Author Keywords: Analysis of algorithms; Design of algorithms; Depth-first search

Article Outline

• References

Information Processing Letters
Volume 61, Issue 2, 28 January 1997, Pages 113-120
 
Home
Browse
My Settings
Alerts
Help
Elsevier.com (Opens new window)
About ScienceDirect  |  Contact Us  |  Information for Advertisers  |  Terms & Conditions  |  Privacy Policy
Copyright © 2008 Elsevier B.V. All rights reserved. ScienceDirect® is a registered trademark of Elsevier B.V.