You are on page 1of 1

Math 1001 Quiz 2 Solutions

1. (3 points) Describe a Hamilton circuit in the following graph. Write your answer as a list of vertices.

d
o
o
o
o
o
o

b
O
O
O
O
O
O

4
4
4
4
4
4
4
4
4

g
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4

e
This was a mistake: There is no Hamilton circuit in this graph. One Hamilton path is
given by a, b, e, f, g, c, d.
2. (4 points, 1 each) True or false. Circle the correct answer, no justication.
TRUE You cant tell whether a graph has a Hamilton cycle by checking the degrees of the
vertices.
FALSE The cheapest-link algorithm doesnt always nd the optimal solution to the travelling
salesman problem.
FALSE The complete graph on 10 vertices, called K
10
in the book, has 10! = 3, 628, 800
dierent Hamilton circuits.
It has 9! Hamilton circuits.
TRUE The brute-force algorithm usually takes too long because there are too many possi-
bilities to check.
3. (5 points) The next questions refer to the following weighted graph.

E
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
10
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
4
9
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
7

3
J
J
J
J
J
J
J
J
J
J
J
J
J
J
J
J
J
J
2

8
5
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
1
t
t
t
t
t
t
t
t
t
t
t
t
t
t
t
t
t
t
6
(a) (3 points) Find a Hamilton cycle using the nearest-neighbor algorithm starting at B.
The nearest-neighbor algorithm gives you the circuit B, A, D, E, C, B.
(b) (2 points) Find a Hamilton cycle using the cheapest-link algorithm.
The cheapest-link algorithm gives you the circuit A, B, C, E, D, A. You might get
a slightly dierent answer if you start at a dierent vertex or go in the opposite
direction.

You might also like