Name:
Directions: Show your work! Answers without justification will likely result in few points. Your written work also allows me the option of giving you partial credit in the event of an incorrect final answer (but good reasoning). Indicate clearly your answer to each problem (e.g., put a box around your answer). Good luck!
Problem 1 (10 pts). Below are some terms or properties discussed in class and in this chapter; following those are several possible sentence completions. Choose the most appropriate completion for each term and place its letter in the box next to the term.
Possible definitions:
Problem 2 (5 pts). What is Euler's Theorem? How is it connected to the city of Königsberg?
Problem 3 (10 pts). Give examples of the following:
Problem 4 (10 pts). For the following two graphs, determine whether there is an Eulerian path or circuit (all intersections and corners represent vertices). If so, neatly draw the path or circuit on the graph, indicating clearly the starting vertex and the order in which the edges are traversed.
Problem 5 (10 pts). Give an Eulerization of the following graph:
Problem 6 (10 pts). For the following weighted graph use (i) the Nearest Neighbor Algorithm (starting from vertex A) and (ii) the Greedy Algorithm to find the approximate solution to the traveling salesman problem. On the two graphs at bottom, draw the Nearest Neighbor solution on the left, and the greedy solution on the right, and give the total weights.
Problem 7 (10 pts). A school bus driver must begin at teh school, then pick up children at four different bus stops: A, B, C, D. The road mileage between the stops is shown below:
Draw the corresponding weighted graph, and find the length of the Hamiltonian circuit formed using the greedy algorithm.
Problem 8 (10 pts). Use Prim's algorithm to find a minimal spanning tree for the given weighted graph and give the weight of this tree. Does it matter which vertex you start from?
Problem 9 (10 pts). There are 4 cities, which may be represented on the map by coordinates of a rectangular coordinate system as follows: A at (0,0), B at (0,4), C at (3,0), and D at (4,5). Direct routes exist between each pair of cities.
Problem 10 (5 pts). Give a practical example of a real-world application (other than an example from this test) which can be described well as a traveling salesman problem. Use complete sentences, and the vocabulary of this chapter in your description.
Problem 11 (10 pts). A census bureau worker was required to visit all homes in the neighborhood whose streets are pictured below:
The streets on the outside of the neighborhood have houses on only one side, and the interior streets have houses on both sides. The worker plans to park her car at one of the street intersections and walk down each of the interior streets twice (once for each side) and each of the outside streets once.