Automata, Languages and Programming

Volume 1853 of the series Lecture Notes in Computer Science pp 809-820


Testing Acyclicity of Directed Graphs in Sublinear Time

  • Michael A. BenderAffiliated withDepartment of Computer Science, State University of New York at Stony Brook
  • , Dana RonAffiliated withDepartment of Electrical Engineering - Systems, Tel Aviv University

* Final gross prices may vary according to local VAT.

Get Access


This paper initiates the study of testing properties of directed graphs. In particular, the paper considers the most basic property of directed graphs - acyclicity. Because the choice of representation affects the choice of algorithm, the two main representations of graphs are studied. For the adjacency matrix representation, most appropriate for dense graphs, a testing algorithm is developed that requires query and time complexity of O(l/∈2), where ∈ is a distance parameter independent of the size of the graph. The algorithm, which can probe the adjacency matrix of the graph, accepts every graph that is acyclic, and rejects, with probability at least 2/3, every graph whose adjacency matrix should be modified in at least e fraction of its entries so that it become acyclic. For the incidence list representation, most appropriate for sparse graphs, an Ω(V 1/3) lower bound is proved on the number of queries and the time required for testing, where V is the set of vertices in the graph. These results stand in contrast to what is known about testing acyclicity in undirected graphs.