

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Solutions to quiz 4 questions related to finding hamilton cycles and paths in graphs. Step-by-step solutions for two problems, one involving counting the number of hamilton cycles in a graph and the other determining if a graph has a hamilton cycle or path.
Typology: Quizzes
1 / 2
This page cannot be seen from the preview
Don't miss anything!
02/10/
Instructions
Solution: Consider the graph K 3 , 3 below
a (^) b c
d e^ f
Choosing alternating vertices from the two partition sets, we have 6× 3 × 2 × 2 × 1 ×1 = 72 possible cycles where one point is fixed and the cycle has a direction. Since Hamilton cycles use all vertices, we divide by 6 to remove the dependency of the starting vertex. To get the total amount of undirected cycles, we also must divide by 2. Hence the total number of Hamilton cycles is 72/12 = 6.
a (^) b
c (^) d e (^) f
g (^) h
Solution: There is no Hamilton cycle since the degree of the vertices c and d is 2. Hence any Hamilton cycle must use edges {a,c}{c,g}{g,d}{d,a}. Since these 4 edges themselves form a cycle, no Hamilton cycle can exist.
The following is a Hamilton path:
a (^) b
c (^) d e (^) f
g (^) h