An O(n) algorithm for online topological ordering?
نویسندگان
چکیده
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(n2.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 32 + n log n}) by Katriel and Bodlaender. We also provide an empirical comparison of our algorithm with other algorithms for online topological sorting.
منابع مشابه
Faster Algorithms for Online Topological Ordering
We present two algorithms for maintaining the topological order of a directed acyclic graph with n vertices, under an online edge insertion sequence of m edges. Efficient algorithms for online topological ordering have many applications, including online cycle detection, which is to discover the first edge that introduces a cycle under an arbitrary sequence of edge insertions in a directed grap...
متن کاملAn O(n2.75) Algorithm for Online Topological Ordering
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) 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 2 log n,m 3 2 + n log n}) by Katriel and Bodlaender. We also provide an empirical comparison of our algorit...
متن کاملAn Õ(n)-Time Algorithm for Online Topological Ordering
We present an Õ(n)-time algorithm for maintaining the topological order of a directed acyclic graph with n vertices while inserting m edges. This is an improvement over the previous result of O(n) by Ajwani, Friedrich, and Meyer.
متن کاملAn $\tilde{O}(n^{2.5})$-Time Algorithm for Online Topological Ordering
We present an Õ(n)-time algorithm for maintaining the topological order of a directed acyclic graph with n vertices while inserting m edges. This is an improvement over the previous result of O(n) by Ajwani, Friedrich, and Meyer.
متن کاملAn Õ(n2.5)-Time Algorithm for Online Topological Ordering
We present an Õ(n)-time algorithm for maintaining the topological order of a directed acyclic graph with n vertices while inserting m edges. This is an improvement over the previous result of O(n) by Ajwani, Friedrich, and Meyer.
متن کامل