
Name: Test I Student ID:
Sample Test II.
The real test may have less questions and you will have about 80 minutes to answer them. The usage
of books or notes, or communicating with other students will not be allowed. You will have to give the
simplest possible answer and show all your work. Besides this sample test, review also your homework
problems!
1. Give all equivalent definitions of a tree (page 94, Theorem 1), and show that for a connected
graph being minimally connected and maximally circuit-free ((a) and (d)) are equivalent.
2. Explain why each tree must have at least one leaf. (Define also leafs.)
3. State the number of edges in a tree on nvertices and prove your formula using induction and
the statement in the previous question.
4. State and prove Euler’s formula for planar graphs.
5. Find a breadth-first search and a depth-first search spanning tree in the edge graph of the cube.
6. Explain how depth-first search may be used to find your way out of a maze.
7. Explain how search trees may be used to solve the missionaries and cannibals puzzle, and present
a solution to this puzzle.
8. Explain why Dijkstra’s algorithm finds the shortest path. Illustrate the algorithm by finding the
shortest path between sand tin Figure 1.
b
1
4 2
10c d
s a
3 1
1
2 0
t
Figure 1: Graph to exercise Dijkstra’s algorithm
9. Prove that Prim’s algorithm finds a minimum weight spanning tree.
10. (40 points) Using Kruskal’s algorithm find a minimum weight spanning tree for the graph shown
in Figure 2. List the edges of the tree in the order you included them during the algorithm.
11. Find a minimum cut and a maximum flow for the network shown in Figure 3. Show all your
work!
MATH 3116 Graph Theory Section 001