0.
me
(Although Lemma 3.1 specifically excludes ¢,+—0, using
(3.13) and (3.10). By choosing 2=2000002 we obtain
aD Z,Pr(Cul Ba) = o(l)
‘Theorem 1.3 now follows from (4.1), (4.6) and (4.7).HAMILTON CYCLES 339
5. Hamilton Paths
We shall view the problem of finding a Hamilton path from vertex a to vertex
b in a graph G as that of finding a Hamilton cycle in the graph G(a, )= (VG),
E(G)Uf{a, b}}) that contains the edge {a, b}. To ensure that HAM searches for a
Hamilton cycle containing a particular edge {a, b} we make some minor modifica~
tions:
(1) Initialisation
Let G=G,,n(a, 6). Let Hy be the graph induced by the edge {a, b} and all
edges incident with vertices of degree 2 in G. If Hy contains a cycle or a vertex of
degree 3 or more then HAM terminates successfully (success means that HAM has
been able to decide as to whether or not G contains a Hamilton cycle using the edge
{a, b}). Otherwise, if H, consists of vertex disjoint paths, then we say that the degree
2 vertices of G,, are compatible with {a, b}. In this case we initialise P, to be the
component of H, containing {a, b}.
(2) Rotations
We omit any rotation that involves deleting an edge of Py.
(3) Cycle Extensions
If HAM wishes to do a cycle extension but can only do so by deleting an edge
of P, then HAM will terminate unsuccessfully, otherwise HAM will choose the
“first” possible ‘legal’ cycle extension. Note that HAM will not terminate unsuccess-
fully in (3) if
(5.1) G,,» does not contain a path P of length 3 or more which has at most 2 vertices
which have neighbours not in P.
We call HAM with the above modifications HAM (a, b).
Next let (a, b)={Gy,m: (1) Gym satisfies all the conditions of Lemma 3.1
as well as (5.1), (2) G,,(a, 6) has minimum degree at least 2}. Note that it is straight-
forward to show that Gy,» a.s. satisfies (5.1).
We next indicate the proof of
Lemma 5.1. Pr(HAM (1,7) terminates unsuccessfully |G,,,€Ty(1, 0))=O(™)
for any constant y>0.
Proof. (Outline) The proof of Lemma 3.2 requires only small modifications. Consider
first the proof that 5,40. Only Case 1 requires a mention. If Pj~(1,n) then by
condition (b) of Lemma 3.1 all neighbours of w; yield legal rotations. If P,=(1,n)
there is only a problem if w, is of degree 2 and 1 or nis a neighbour of w;. But then
we have the contraction that 1, is a vertex of P, or 1, n are both neighbours of wy.
For the rest of the proof of Lemma 3.2 the only change is that t+-2 is replaced
by 143. The colouring argument that follows Lemma 3.2 goes through with
only trivial changes, particularly if we separate the cases {1,n}¢EG,,») and
{1, M}EEGz,m)-
Since A can be chosen arbitrarily large in this argument, we have the stated
O(n-*) probability of failure.
Theorem 1.4 and 1.5 are consequences of340 B, BOLLOBAS, T. I. FENNER, A. M. FRIEZE
Lemma 5.2. Let m=(n log n-+n log log n)/2+c,n where ¢,=—O(I). For 1=i=jsn
let A(i,j) denote the event that G=G,, ,(i,j) has minimum degree at least 2, the degree
2 vertices of G,,™ are compatible with {i, j} and yet HAM (i, j) fails to find a Hamilton
cycle in G using {i,j}.
Let
a
4-9 0 aan
Then
Jim Pr(A) = 0.
Proof. Pr (A)=Pr (A and G,,, satisfies the conditions of Lemma 3.1 and (5.1))+
mon
+0()=Pr(U OU (GamETi(i,j) and HAM terminates unsuccessfully) +
it joie
+o(I)= () Pr(HAM (1, n) terminates unsuccessfully |G, .€I(1, »))-+0(1)=0(1).
Theorem 1.5 follows immediately.
‘Theorem 1.4(1) follows from the fact that vertices 1 and m are a.s. large, and
have no degree 2 neighbours.
‘Theorem 1.4(2) and (3) follows from the above and the fact that a.s. no vertex
of degree 1 has a degree 2 neighbour.
6. Conclusions
‘The results of this paper show that the hamiltonian cycle problem can be con-
sidered to be well-solved in a prohabilistic sense. They can be extended to cover the
problem of finding disjoint hamiltonian cycles by following the approach described
in Bollobaés and Frieze [4].
Indeed all one has to do is to repeatedly apply HAM and remove Hamilton
cycles. The proof that this works with the same limiting probability as that of having
minimum degree 2k can be obtained from the proof of Theorem 1.1 with only slight
modifications.
With a few minor changes to the proofs one can show that HAM combined
with Dynamic Programming has polynomial expected running time for G,,» if
p>1—1/V2. For smaller p we find that the probability that there are 2 vertices of
degree 2 which are close exceeds (1/2+e)". However, by initially covering vertices
of small degree with vertex disjoint paths, if possible, we can obtain a polynominal
expected running time algorithm whenever p is a positive constant. Independently,
Gurevich and Shelah [8] have constructed an O(n) expected running time Hamilton
path algorithm for p constant. Subsequently, a similar result has been obtained by
‘Thomason [13]. In a future note we hope to show that HAM combined with Dynamic
Programming has O(n) expected running time for G,,, if p>1—1/)2.HAMILTON CYCLES 341
References
[1] D. Axotum and L. G. Vatian, Fast probabilistic algorithms for Hamilton circuits and mate-
chings, J. Computer Syst. 18, (1979), 155—193.
[2] B. BoLLosés, Almost all regular graphs are Hamiltonian, European Journal of Combinatories
4, (1983), 311—316.
[3] B. BottopAs, Random Graphs, Academic Press, London, (1985).
[4] B. Bottosés and A. M. Frirzt, On matchings and Hamilton cycles in random graphs, Annals
of Discrete Mathematics, 28 (1985), 23—46.
[5] P. Expés and A. RENY1, On the strength of connectedness of a random graph. Acta. Math.
Acad. Sei. Hungar. 12, (1961), 261—267.
[6] T. 1. Fenner and A. M. Frieze, On the existence of Hamilton cycles in a class of random
graphs. Discrete Mathematics 45, (1983), 301—305.
17] A. M. Frieze, Limit distribution for the existence of Hamiltonian cycles in arandom bipartite
graph, European Journal of Combinatorics, 6 (1985), 327334.
[8] Y. Gurevich and S. SHetax, Technical Report of the University of Michigan, 1985.
[9] M. Het and R. M. Karp, A dynamic programming approach to sequencing problems, SIAM
Journal on Applied Mathematics 10, (1962), 196—210.
[10] M. Komios and E. Szemeréot, Limit distribution for the existence of a Hamilton cycle in a
random graph, Discrete Mathematics 43, (1983), 55—63.
[11] R. M. Kare and J. M. Sreeze, Probabilistic analysis of the travelling salesman problem, in
The Travelling Salesman Problem: A Guided Tour (E. L. Lawler, J. K. Lenstra, A. H. G.
Rinnoy-Kan and D. B. Shmoys, eds), John Wiley and Sons (1985).
[12] E. Suamin, How many edges are needed to make a random graph Hamiltonian? Combinatorica
3, (1983), 123132.
[13] A. G. Thomason, A simple linear expected time algorithm for Hamilton cycles, to appear.
B. Bollobas T. I. Fenner
Department of Pure Mathematics Department of Computer Science
University of Cambridge, Cabridge, England Birkbeck College, University of London, England
Department of Mathematics
LSU, Baton Rouge, LA, USA
A. M. Frieze
Department of Computer Science
‘Queen Mary College, University of London, England
Department of Mathematics
Carnegie Mellon University,
Pittsburgh, PA, USA.