Abstract
It is shown that when a graph is represented as a binary connection matrix, the problems of finding the shortest path between two nodes of a graph, of determining whether the graph has a cycle, and of determining if a graph is strongly connected each require at leastO(n 2) operations. Thus the presently known best algorithms are optimal to within a multiplicative constant.
Similar content being viewed by others
References
E. Dijkstra, A note on two problems in connection with graphs,Numer. Math 1 (1959), 269–271.
D. Dreyfus, An appraisal of some shortest path algorithms,Operations Res. 17 (1969), 395–412.
J. Hopcroft andR. Tarjan, Planarity testing in V log V steps, to appear in IFIP, 1971.
L. Kerr, personal correspondence.
R. B. Marimont, A new method of checking the consistency of precedence matrices,J. Assoc. Comput. Mach. 6 (1959), 164–171.
E. McCreight, unpublished.
I. Pohl, A theory of bi-directional search in path problems, Report No. RC 2713, IBM, Yorktown Heights, N.Y., 1969.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Holt, R.C., Reingold, E.M. On the time required to detect cycles and connectivity in graphs. Math. Systems Theory 6, 103–106 (1972). https://doi.org/10.1007/BF01706081
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF01706081