Fast probabilistic algorithms for hamiltonian circuits and matchings

The main purpose of this paper is to give techniques for analysing the probabilistic performance of certain kinds of algorithms, and hence to suggest some fast algorithms with provably desirable probabilistic behaviour. The particular problems we consider are: finding Hamiltonian circuits in directed graphs (DHC), finding Hamiltonian circuits in undirected graphs (UHC), and finding perfect matchings in undirected graphs (PM). We show that for each problem there is an algorithm that is extremely fast (0(n(log n)2) for DHC and UHC, and 0(nlog n) for PM), and which with probability tending to one finds a solution in randomly chosen graphs of sufficient density. These results contrast with the known NP-completeness of the first two problems [2,12] and the best worst-case upper bound known of 0(n2.5) for the last [9].

[1]  H. Ko An introduction to probability theory and its applications, Vol. II: by William Feller. 626 pages, 6 × 9 inches, New York, John Wiley and Sons, Inc., 1966. Price $12.00 , 1967 .

[2]  Alfred V. Aho,et al.  The Design and Analysis of Computer Algorithms , 1974 .

[3]  Stephen A. Cook,et al.  The complexity of theorem-proving procedures , 1971, STOC.

[4]  L. Pósa,et al.  Hamiltonian circuits in random graphs , 1976, Discret. Math..

[5]  Stephen A. Cook,et al.  Time Bounded Random Access Machines , 1973, J. Comput. Syst. Sci..

[6]  Volker Strassen,et al.  A Fast Monte-Carlo Test for Primality , 1977, SIAM J. Comput..

[7]  E. Wright Graphs on unlabelled nodes with a given number of edges , 1971 .

[8]  G. Grimmett,et al.  On colouring random graphs , 1975 .

[9]  Leslie G. Valiant,et al.  On time versus space and related problems , 1975, 16th Annual Symposium on Foundations of Computer Science (sfcs 1975).

[10]  J. Spencer Probabilistic Methods in Combinatorics , 1974 .

[11]  J. Edmonds Paths, Trees, and Flowers , 1965, Canadian Journal of Mathematics.

[12]  E. Wright For how many edges is a digraph almost certainly Hamiltonian , 1973 .

[13]  G. Dirac Some Theorems on Abstract Graphs , 1952 .

[14]  Richard M. Karp,et al.  Reducibility Among Combinatorial Problems , 1972, 50 Years of Integer Programming.

[15]  P. Erdos,et al.  On the existence of a factor of degree one of a connected random graph , 1966 .

[16]  W. Feller An Introduction to Probability Theory and Its Applications , 1959 .

[17]  Shimon Even,et al.  An O (N2.5) algorithm for maximum matching in general graphs , 1975, 16th Annual Symposium on Foundations of Computer Science (sfcs 1975).

[18]  Claus-Peter Schnorr,et al.  Optimal Algorithms for Self-Reducible Problems , 1976, ICALP.

[19]  Richard M. Karp,et al.  Reducibility among combinatorial problems" in complexity of computer computations , 1972 .