Deg (V I) 2 M: Path Length Is The Number of Edges (N) That The Path Contains
Deg (V I) 2 M: Path Length Is The Number of Edges (N) That The Path Contains
Friday 4/5
Spring 2019 10:50 am – 12:05 pm
Homework for Section 8-2: #1-18 even, 22-26 all, 28-32, 35, 36, 42, 46, 48, 49
Quiz on 8.1 – 8.2 today
Each path had a weight. The puzzle was to visit each city (vertex) only once for the lowest possible
cost/distance etc.
Section 8-3 Discusses Hamiltonian Cycles: is it possible to start and end at same vertex visiting each vertex
only once (other than start and end vertex)?
There are not many rules to help us with this.
Questions like: can I travel to each city only once, without passing through an already visited city?
Hamiltonian Path is a path that visits each vertex only once and starts and ends at different vertices.
Hamiltonian Cycle is a closed path – starts and ends at same vertex – that visits each vertex only once.
[Cycles are harder to achieve than paths, just remove an edge of a cycle to get a path.]
It seems like finding a Hamilton circuit (or conditions for one) should be more-or-less as easy as a Euler cycle.
Unfortunately, it's much harder.
Which of the following have Hamiltonian Cycles?
There are 3 rules that can be applied to either construct a Hamilton cycle or show that no Hamilton cycle
exists:
Rule 1: If a vertex v has degree 2, both of the edges touching vertex v must be part of any Hamilton cycle.
Rule 2: During the construction of a Hamiltonian cycle, no cycle can be formed until all of the vertices have
been visited
Rule 3: Once a Hamilton cycle is required to use 2 edges at a vertex v, all other (unused) edges touching v can
be ignored (removed), as they cannot be used in the Hamilton circuit.
Careful here! Avoid double counting when removing edges
Note: a simple connected graph with n vertices and at least n edges contains a cycle.
Examples on removing surplus edges – careful not to double count
See page 397 figure 8.3.5 and figure 8.3.6
Goal:
Construct a Hamiltonian cycle or show at some point during the construction that it is impossible to proceed
any further.