Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
110 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

A New Approach to Incremental Cycle Detection and Related Problems (1112.0784v1)

Published 4 Dec 2011 in cs.DS

Abstract: We consider the problem of detecting a cycle in a directed graph that grows by arc insertions, and the related problems of maintaining a topological order and the strong components of such a graph. For these problems, we give two algorithms, one suited to sparse graphs, and the other to dense graphs. The former takes the minimum of O(m{3/2}) and O(mn{2/3}) time to insert m arcs into an n-vertex graph; the latter takes O(n2 log(n)) time. Our sparse algorithm is considerably simpler than a previous O(m{3/2})-time algorithm; it is also faster on graphs of sufficient density. The time bound of our dense algorithm beats the previously best time bound of O(n{5/2}) for dense graphs. Our algorithms rely for their efficiency on topologically ordered vertex numberings; bounds on the size of the numbers give bound on running times.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (4)
  1. Michael A. Bender (39 papers)
  2. Jeremy T. Fineman (16 papers)
  3. Seth Gilbert (38 papers)
  4. Robert E. Tarjan (29 papers)
Citations (61)

Summary

We haven't generated a summary for this paper yet.