ex2-sol09 - AMS 301.3 (Fall, 2009) Estie Arkin Exam 2...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: AMS 301.3 (Fall, 2009) Estie Arkin Exam 2 Solution sketch Mean 81.2, median 84.5, high 100 (4 of them!), low 25. 1. (5 points) Let T be a 6-ary tree with 100 internal nodes. How many leaves does the tree have? (A correct guess with no work shown will recieve very partial credit.) n = mi + 1, m = 6, i = 100, so n = 601, and l = n- i = 501. 2. (15 points) Consider the following graph. A B C D E F 8 1 2 3 4 5 6 7 9 11 12 7 (a). Highlight the edges of a minimum spanning tree of the graph. Using Kruskals algorithm, egdes would be put into the MST in the following order: (B,E) (C,D) (D,E) (B,A) (E,F). The cost of this tree is 20. A B C D E F 1 2 3 7 7 (b). The cost of every edge in the graph is multiplied by 10. Circle the correct answers: Does this change the edges in the minimum spanning tree? NO, Kruskals algorithm would put the edges in the tree in the same order. Does this change the cost of the minimum spanning tree? YES, the new minimum cost is 10 times the old min cost. (c). Ignoring the costs on the edges, show the BFS tree of the graph starting at node A. A B C D E F Common mistake: drawing the MST again, or doing DFS. 3. (8 points) We wish to model the word problem as a graph problem: The Happy Gardner, a lawnmowing service, has been contracted to mow the lawns at 15 houses today. The gardener would like to plan his schedule for the day, namely, in what order the will the different lawns be 1 mowed. We may assume the gardener starts his day at his house, and would like to return home as soon as possible. We also assume travel times between houses are known. (a). What do the nodes of the graph to be constructed represent? The houses (15 to be mowed and gardneres house). (b). What do the edges of the graph to be constructed represent? Travel between 2 houses. Common mistake: saying edges are times or distances to travl....
View Full Document

This note was uploaded on 08/08/2010 for the course AMS 301 taught by Professor Arkin during the Spring '08 term at SUNY Stony Brook.

Page1 / 4

ex2-sol09 - AMS 301.3 (Fall, 2009) Estie Arkin Exam 2...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online