Sciweavers

WEA
2004
Springer

A Dynamic Algorithm for Topologically Sorting Directed Acyclic Graphs

14 years 4 months ago
A Dynamic Algorithm for Topologically Sorting Directed Acyclic Graphs
Abstract. We consider how to maintain the topological order of a directed acyclic graph (DAG) in the presence of edge insertions and deletions. We present a new algorithm and, although this has marginally inferior time complexity compared with the best previously known result, we find that its simplicity leads to better performance in practice. In addition, we provide an empirical comparison against three alternatives over a large number of random DAG’s. The results show our algorithm is the best for sparse graphs and, surprisingly, that an alternative with poor theoretical complexity performs marginally better on dense graphs.
David J. Pearce, Paul H. J. Kelly
Added 02 Jul 2010
Updated 02 Jul 2010
Type Conference
Year 2004
Where WEA
Authors David J. Pearce, Paul H. J. Kelly
Comments (0)