We propose an incremental algorithm to maintain a DFS-forest in a directed acyclic graph under a sequence of are 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 Theta(n + m) algorithm any time a sequence of Omega(n) are insertions must be handled. In particular, over a sequence of Theta(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. (C) 1997 Elsevier Science B.V.

The incremental maintenance of a Depth-First-Search tree in directed acyclic graphs / Franciosa, Paolo Giulio; Giorgio, Gambosi; Nanni, Umberto. - In: INFORMATION PROCESSING LETTERS. - ISSN 0020-0190. - STAMPA. - 61:2(1997), pp. 113-120. [10.1016/s0020-0190(96)00202-5]

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

FRANCIOSA, Paolo Giulio;NANNI, Umberto
1997

Abstract

We propose an incremental algorithm to maintain a DFS-forest in a directed acyclic graph under a sequence of are 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 Theta(n + m) algorithm any time a sequence of Omega(n) are insertions must be handled. In particular, over a sequence of Theta(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. (C) 1997 Elsevier Science B.V.
1997
analysis of algorithms; depth-first search; design of algorithms
01 Pubblicazione su rivista::01a Articolo in rivista
The incremental maintenance of a Depth-First-Search tree in directed acyclic graphs / Franciosa, Paolo Giulio; Giorgio, Gambosi; Nanni, Umberto. - In: INFORMATION PROCESSING LETTERS. - ISSN 0020-0190. - STAMPA. - 61:2(1997), pp. 113-120. [10.1016/s0020-0190(96)00202-5]
File allegati a questo prodotto
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11573/246622
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 22
  • ???jsp.display-item.citation.isi??? 18
social impact