MAINTAINING A TOPOLOGICAL ORDER UNDER EDGE INSERTIONS

Citation
A. Marchettispaccamela et al., MAINTAINING A TOPOLOGICAL ORDER UNDER EDGE INSERTIONS, Information processing letters, 59(1), 1996, pp. 53-58
Citations number
10
Categorie Soggetti
Information Science & Library Science","Computer Science Information Systems
ISSN journal
00200190
Volume
59
Issue
1
Year of publication
1996
Pages
53 - 58
Database
ISI
SICI code
0020-0190(1996)59:1<53:MATOUE>2.0.ZU;2-I
Abstract
A topological order of the vertices of a directed acyclic graph G = (V ,E) is any total order ord such that if (x, y) is an element of E, the n x precedes y in ord. In this paper we consider the dynamic version o f this problem, and provide simple algorithms and data structures achi eving O(n) amortized time per edge insertion starting from an empty gr aph, which favorably compares to the trivial O(m+n) time bound per ope ration obtained applying the off-line algorithm. The additional space requirement, beside the representation of the graph itself, is O(n). E xperimental results show that our algorithm performs in practice order s of magnitude faster than the off-line algorithm.