REVIEW
An O(n^{2.75}) algorithm for online topological ordering
Data Structures and Algorithms · Submitted 21 Feb 2006 · 14 references
Pith's verdict: Clever bucket-based algorithm with a plausible amortized bound, but the printed proof of the key lemma is invalid; the result is likely repairable and deserves peer review after a fix.
T0 · AI review
Why Pith says this
Highlight any text to comment on it.
Referee report
The paper
The paper claims
A bucketed data structure keeps an online topological order in O(n^2.75) worst-case time, improving the previous dense-DAG bound of O(m^1.5 + n^2 log n).
The reading
Extended reading notes
Core claim
The paper's central claim is: 'We propose a simple algorithm that works in O(n^{2.75} sqrt log n) time and O(n^2) space, thereby improving upon the results of Katriel and Bodlaender for dense DAGs,' with data-structure variants giving O(n^{2.75}) time (Section 5). If true, an online edge-insertion sequence on an n-node DAG can be processed in O(n^{2.75}) worst-case time independent of m, beating the previous best O(min(m^{3/2} log n, m^{3/2}+n^2 log n)).
Load-bearing premise
The runtime bound rests on Lemma 11, which asserts that the total topological distance moved by all swapped node pairs over the entire insertion sequence is O(n^{5/2}). The proof optimizes a linear program over variables X(i,j) representing swap distances indexed by final positions, with the explicitly stated caveat that the constraints are 'necessary but not sufficient' (Section 4, Lemma 11). If the LP omits a real restriction of the swap process, the amortized sum might be larger, and the O(n^{2.75}) exponent would not follow. In fact, the printed dual solution violates nonnegativity, so the lemma is not proven as written.
Original abstract
We present a simple algorithm which maintains the topological order of a directed acyclic graph with n nodes under an online edge insertion sequence in O(n^{2.75}) time, independent of the number of edges m inserted. For dense DAGs, this is an improvement over the previous best result of O(min(m^{3/2} log(n), m^{3/2} + n^2 log(n)) by Katriel and Bodlaender. We also provide an empirical comparison of our algorithm with other algorithms for online topological sorting. Our implementation outperforms them on certain hard instances while it is still competitive on random edge insertion sequences leading to complete DAGs.
The compiled record
The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. Numbers in the tables are the authors', checked by code. No sentence in this record was written by a model.
The abstract, sentence by sentence
We present a simple algorithm which maintains the topological order of a directed acyclic graph with n nodes under an online edge insertion sequence in O(n^{2.75}) time, independent of the number of edges m inserted. For dense DAGs, this is an improvement over the previous best result of O(min(m^{3/2} log(n), m^{3/2} + n^2 log(n)) by Katriel and Bodlaender. We also provide an empirical comparison of our algorithm with other algorithms for online topological sorting. Our implementation outperforms them on certain hard instances while it is still competitive on random edge insertion sequences leading to complete DAGs.
background contribution method result interpretation main claim
| # | sentence | role | the authors' own work | states the main conclusion | strength |
|---|---|---|---|---|---|
| s0 | We present a simple algorithm which maintains the topological order of a directed acyclic graph with n nodes under an online edge insertion sequence in O(n^{2.75}) time, independent of the number of edges m inserted. | contribution 0.99 | 0.96 | 0.88 | asserted 1.00 |
| s1 | For dense DAGs, this is an improvement over the previous best result of O(min(m^{3/2} log(n), m^{3/2} + n^2 log(n)) by Katriel and Bodlaender. | result 0.60 | 0.23 | 0.17 | asserted 1.00 |
| s2 | We also provide an empirical comparison of our algorithm with other algorithms for online topological sorting. | contribution 0.76 | 0.94 | 0.05 | asserted 0.99 |
| s3 | Our implementation outperforms them on certain hard instances while it is still competitive on random edge insertion sequences leading to complete DAGs. | result 0.99 | 0.95 | 0.16 | asserted 1.00 |
What was examined, and what was not
- arXiv listing abstract v2
- full text
- figures and tables
- references and citing sentences
- relations to other papers
- P abstract
- S sections
- T body sentences
- C citations
- R cross-paper relations
Figures
Figures reproduced from arXiv:cs/0602073 by the authors.
References
Discussion
Disagree with the review, or know something it missed? Leave a comment, highlight any passage above to comment on it, or challenge this review formally.