14 Graph Theory. Exercise Set 14-1

Size: px
Start display at page:

Download "14 Graph Theory. Exercise Set 14-1"

Transcription

1 14 Graph Theory Exercise Set A graph in this chapter consists of vertices and edges. In previous chapters the term was used as a visual picture of a set of ordered pairs defined by a relation or function. 2. A loop is an edge that connects a vertex to itself. A circuit begins and ends at the same vertex, but can cross over several edges to do this. 3. A circuit begins and ends at the same vertex, but a path may end at a vertex different from where it started. 4. Answers may vary. 5. A graph is connected if there is at least one path between any pair of vertices. 6. Answers may vary. 7. Two vertices are adjacent if there is an edge connecting them. In the context of Exercise 6 it would mean there is a non-stop flight between two cities. 8. Not every graph has a bridge. 9. A coloring is a method of coloring all vertices on a graph so that any pair of vertices joined by an edge have different colors. 10. The chromatic number of a graph is the smallest number of colors that can be used to color a graph. 11. If 5 is the chromatic number, then 5 is the smallest number of colors that can be used. So, 6 would be more than necessary, but ok, and 4 wouldn t be enough. 12. Graph coloring for a map means that no two states that share a border have the same color. 13. The vertices are A, B, C, D, E, F, and G. 14. There are nine edges: AB, AC, CD, DB, BE, EF, EG, FG, and the loop at G. 15. B, G, and F are adjacent to E since there is an edge connecting them to E. 16. A, C, D, and F are even with 2 edges each, G is even with 4 edges. 17. B and E are odd with 3 edges each. 18. The edge from B to E is a bridge since removing it would make the graph disconnected. 19. Answers may vary; one such path is A, B, E, F 20. Answers may vary; one such circuit is A, B, D, C, A 21. Vertex G has a loop. 22. Edges AC, CD, DB, EF, and the loop at G are not included in the path. 23. A, B, E, D is not a path because there is no edge connecting E and D. 24. E, F, G is not a circuit since it doesn t end at the same vertex where it began. 25. Chromatic number is Chromatic number is Chromatic number is

2 28. Chromatic number is Chromatic number is Smallest number of colors is Smallest number of colors is Smallest number of colors is

3 46. Smallest number of colors is Smallest number of colors is Smallest number of colors is Smallest number of colors is Smallest number of colors Smallest number of colors is Smallest number of colors is Smallest number of colors is Answers may vary. 56. Let D = Daisy, R = Rose, L = Lilac, S = Sunflower, I = Iris, M = Marigold, and T = Tulip. 49. Smallest number of colors is No; a vertex is adjacent to itself if there is a loop, so it will be adjacent to a vertex with the same color. 58. The countries lined up on top need to have colors different from the long country but not different from each other: only one they share a border with. 59. Answers may vary. 60. New Jersey 707

4 61. Answers may vary. 62. Answers may vary. 63. a) It means that the house is split into distinct parts that are not connected. b) There s a room that connects one part of a room to another. c) There s a door that, if removed, would make it impossible to get from one part of the house to another. 64. a) It would mean that the graph was drawn wrong. A state can t have a border with itself. b) There s a state that has to be driven through in order to get from one group of states to another. c) A circuit represents a trip through several states that ends back in the original state. Exercise Set An Euler path passes through every edge exactly once; a path passes through a subset of the vertices and edges of the graph. 2. An Euler path must pass every edge once, but may not end where it started; an Euler circuit must pass every edge exactly once and end where it began. 3. A graph has an Euler circuit if all vertices are even. 4. If there are exactly two odd vertices the graph has an Euler path but not an Euler 5. A graph with more than two odd vertices has no Euler paths or circuits. 6. Fleury s Algorithm is used to find an Euler path or 7. The graph has an Euler 8. The graph has an Euler path but not an Euler 9. The graph has neither an Euler path nor an Euler 10. The graph has an Euler path but not an Euler 11. (a) Vertex A B C D E F G H I Degree Since there are exactly 2 odd vertices there is an Euler path, but not an Euler (b) One Euler path is: A, B, C, A, I, C, D, G, I, H, G, F, E, D, F 12. (a) Vertex A B C D E F G Degree Since all vertices are even there is an Euler (b) One Euler circuit is: A, E, B, F, C, G, D, C, B, A 13. (a) Vertex A B C D E F G H I Degree Since all vertices are even there is an Euler (b) One Euler circuit is: A, B, D, H, I, G, D, C, G, F, E, C, A 14. (a) Vertex A B C D E F G Degree Since exactly two vertices are odd there is an Euler path. (b) One Euler path is: B, A, E, G, F, E, B, C, F, D, C 15. (a) Vertex A B C D E F G H I Degree Since there are more than 2 odd vertices there is neither an Euler path nor an Euler 708

5 16. (a) Vertex A B C D E F G Degree Since there are more than 2 odd vertices there is neither an Euler path nor an Euler 17. (a) Vertex A B C Degree Since all vertices are even there is an Euler (b) One Euler circuit is: A, B, A, C, B, C, A 18. (a) Vertex A B C D E F Degree Since there are more than 2 odd vertices there is neither an Euler path nor an Euler 19. (a) Vertex A B C D E F Degree Since there are more than 2 odd vertices there is neither an Euler path nor an Euler 20. (a) 21. Vertex A B C D E F Degree Since there are no odd vertices the graph has an Euler (b) One Euler circuit is: A, B, C, D, B, F, D, E, F, A Vertex A B C D Degree Since there are no odd vertices the graph has an Euler One Euler circuit is: A, B, C, D, C, A Vertex A B C D E Degree Since there exactly two odd vertices the graph has an Euler path. One Euler path is: E, B, C, E, D, C, A, D Vertex A B C D Degree Since there are exactly two odd vertices the graph has an Euler path. One Euler path is: A, B, C, A, D, B Vertex A B C D E F Degree Since there exactly two odd vertices the graph has an Euler path. One Euler path is: A, B, E, D, A, C, F, E Vertex A B C D E Degree Since there exactly two odd vertices the graph has an Euler path. One Euler path is: A, B, E, D, A, C, D 709

6 Vertex A B C D E Degree Since there more than two odd vertices the graph has neither an Euler path nor an Euler 30. Vertex A B C D E F G Degree Since there exactly two odd vertices the graph has an Euler path. One Euler path is: A, B, E, D, C, F, A, G, E 28. Vertex A B C D E F G H I Degree Since there more than two odd vertices the graph has neither an Euler path nor an Euler 31. Vertex A B C D E F Degree Since there no odd vertices the graph has an Euler One Euler circuit is: A, F, D, C, E, F, B, C, A Vertex A B C D E F G Degree Since there exactly two odd vertices the graph has an Euler path. One Euler path is: B, A, D, E, B, C, G, F, D Vertex MT ND SD NE WY ID Degree Since there no odd vertices the graph has an Euler One Euler circuit is: WY, ID, MT, ND, SD, MT, WY, NE, SD, WY 710

7 Let the streets be the edges and the intersections be the vertices. Vertex WV VA NC KY TN Degree Since there exactly two odd vertices the graph has an Euler path. One Euler path is: KY, WV, VA, TN, KY, VA, NC, TN 33. Let the streets be the edges and the intersections be the vertices. Vtx A B C D E F G H I J K L Deg Since there no odd vertices the graph has an Euler One Euler circuit is: A, B, E, F, J, I, L, K, H, I, E, D, H, G, C, D, A Vertex A B C D E F G Degree Vertex H I J K L M N Degree Since there more than two odd vertices the graph does not have an Euler circuit nor an Euler path. 35. Neither can be done. Since all four vertices are odd, either removing one bridge or adding one more will make two of the vertices even and the other two odd, in which case there is still no Euler 36. Using just the bridges, the vertices corresponding to New Jersey and Brooklyn are odd, while the other three are even, so there is an Euler path but not an Euler If you include the tunnels, New Jersey and Manhattan are odd vertices while the other three are even, so again there s an Euler path but no Euler 37. Path: you can pass through every door in the house exactly once. Circuit: you can do so and end up in the room you started in. 38. Path: you can plan a trip that crosses each state border exactly once. Circuit: you can plan a trip that begins and ends in the same state and crosses every border exactly once. 39. Graphs will of course vary, but such a graph cannot have an Euler circuit because any graph with a bridge will always have at least two odd vertices. 711

8 40. Graphs will vary, but a graph with a loop can have an Euler A loop counts as two edges emanating from a vertex, so adding a loop at a vertex will not change it from even to odd or vice versa. In fact, that proves that if a graph has an Euler circuit without a loop, it will still have one with a loop added. If it has no Euler circuit without a loop, adding a loop won t change that. 41. Draw an edge connecting any two unconnected odd vertices. 42. No. It would need to have no odd vertices, but currently has four of them; no single edge can change more than two vertices. 43. There would be no way to traverse every edge if the graph were not connected. 44. It is not possible to have exactly one odd vertex in a graph. 45. Answers may vary. 46. n 1 1+ n , The results are getting close to e. n Exercise Set An Euler path passes through each edge exactly once, a Hamilton path passes through each vertex exactly once. 2. A Hamilton circuit ends at the same vertex where it began, but a Hamilton path does not. 3. Answers may vary. 4. Answers may vary. 5. In a complete graph every pair of vertices is connected by an edge. 6. A weighted graph is one where the edges are labeled with some quantity of interest, like distance or time. 7. The typical traveling sales person problem is the problem of trying to find the most efficient way to visit each city (vertex). The optimal solution is the one which is most efficient (least time or shortest distance, for example). 8. The brute force method to find an optimal solution would be to try every possible Hamilton path and see which is most efficient. 9. The optimal solution is a Hamilton circuit for a complete weighted graph for which the sum of the weights of the edges traversed is the smallest possible number. You can only find the optimal solution using the Brute force method, which can be really time-consuming. The approximate optimal solution will find one, but it might not be the optimal one. 10. The nearest neighbor method means you start at a designated vertex and then continue by choosing edges with the least weight that go to a vertex that you haven t already used. For the cheapest link algorithm, start with the cheapest edge. Then pick the next cheapest edge that doesn t result in 3 edges coming from one vertex or in a complete circuit that leaves out some of the vertices. Repeat until complete. 11. Answers may vary., two possibilities are: A, B, C, D, E, F and A, C, D, E, F, B. 12. Answers may vary., two possibilities are: A, B, C, E, D and A, D, E, C, B. 13. Answers may vary., two possibilities are: A, B, E, F, J, I, L, K, H, G, C, D and A, B, E, D, C, G, H, K, L, I, J, F 14. Answers may vary., two possibilities are: B, A, C, D, E, F, G and A, B, C, D, G, F, E. 15. Answers may vary., two possibilities are: A, B, E, C, D and A, B, E, D, C. 712

9 16. Answers may vary., two possibilities are: E, B, A, D, C and A, D, C, B, E. 17. Answers may vary., two possibilities are: A, B, D, E, C, F, G, H and A, B, D, E, C, F, H, G. 18. Answers may vary., two possibilities are: A, B, C, D, E, F and A, F, B, C, D, E. 19. Answers may vary., two possibilities are: A, B, C, E, D, A and C, B, A, D, E, C. 20. Answers may vary., two possibilities are: A, B, D, E, F, G, H, C, A and B, A, C, H, G, F, E, D, B. 21. Answers may vary., two possibilities are: A, B, D, G, F, E, H, I, C, A and D, B, A, C, I, H, E, F, G, D. 22. Answers may vary., two possibilities are: A, B, C, E, D, F, A and B, C, E, F, D, A, B. 23. Answers may vary., two possibilities are: A, B, C, D, E, A and A, D, B, E, C, A. 24. Answers may vary., two possibilities are: A, C, B, D, E, F, G, A and G, F, E, D, B, C, A, G. 25. The number of Hamilton circuits for a complete graph with 3 vertices is (3 1)! = 2! = 2 1 = 2. It is reasonable to use the brute force method. 26. The number of Hamilton circuits for a complete graph with 6 vertices is (6 1)! = 5! = = 120. Seriously, using the brute force method would be crazy. 27. The number of Hamilton circuits for a complete graph with 9 vertices is (9 1)! = 8! = = 40,320. Should this even be a question? That would be ridiculous. 28. The number of Hamilton circuits for a complete graph with 11 vertices is (11 1)! = 10! = = 3,628,800. Ok, we get it... if the number of vertices is big, it is ludicrous to use the brute force method. 29. There are (4 1)! = 6 possible Hamilton circuits, they are (with corresponding total weights): P, Q, S, R, P: = 235 P, R, S, Q, P: = 235 P, S, R, Q, P: = 200 P, Q, R, S, P: = 200 P, R, Q, S, P: = 235 P, S, Q, R, P: = 235 There are two optimal solutions P, Q, R, S, P and P, S, R, Q, P, each with a total weight of There are (4 1)! = 6 possible Hamilton circuits, they are (with corresponding total weights): W, X, Z, Y, W: = 1,017 W, Y, X, Z, W: = 1,338 W, Z, Y, X, W: = 1,101 W, X, Y, Z, W: = 1,101 W, Y, Z, X, W: = 1,017 W, Z, X, Y, W: = 1,338 There are two optimal solutions W, X, Z, Y, W and W, Y, Z, X, W, each with a total weight of 1, Starting at A the nearest neighbor is C with a weight of 6, then B with 7, then E with 12, then D with 10, and back to A with 7. The approximate optimal path is A, C, B, E, D, A with total weight = Starting at A the nearest neighbor is F with weight of 16, then B with 18, C with 18, E with 15, D with 23 then back to A with 19. The approximate optimal circuit is A, F, B, C, E, D, A with total weight of = Starting at A the nearest neighbor is B with weight of 122, then C with 89, then D with 96, then E with 173 then back to A with 171. The approximate optimal circuit is A, B, C, D, E, A with total weight of =

10 34. Starting at A the nearest neighbor is C with 8. At C, there are two possiblilities: B or E, each with 12. Let s try each. First, move to B with 12, then F with 13, then E with 13, then D with 22 and then back to A with 17. The is A, C, B, F, E, D, A with total weight of = 85. Now, try the second possible solution. Move A to C with 8, C to E with 12, E to B with 15, B to F with 13, F to D with 19, and D to A with 17. The total weight is = 84. So, the optimal circuit is A, C, E, B, F, D, A. 35. Pick edge from A to C with a weight of 6. Pick edge from C to B with a weight of 7. Pick edge from B to E with a weight of 12. Pick edge from E to D with a weight of 10 and pick edge from D to A with a weight of 7. The approximate optimal path is A, C, B, E, D, A with total weight = 42. It is the same as the nearest neighbor algorithm. 36. Pick edge from E to C with a weight of 15. Pick edge from F to A with a weight of 16. Pick edge from B to C with a weight of 18. Pick edge from B to F with a weight of 18. Pick edge from E to D with weight of 23. Pick edge from D to A with an edge of 19. The approximate optimal path is A, D, E, C, B, F, A with total weight of = 109. It is the same as the nearest neighbor algorithm. This is a different circuit than the nearest neighbor method, but it has the same total weight. 37. Pick edge from B to C with a weight of 89. Pick edge from B to E with a weight of 94. Pick edge from C to D with a weight of 96. Pick edge from A to D with a weight of 150. Pick edge from E to A with a weight of 171. The approximate optimal path is A, D, C, B, E, A with total weight = 600. This is a better result than the nearest neighbor algorithm. 38. Pick edge from A to C with a weight of 8. Pick edge from F to A with a weight of 9. Pick edge from C to B with a weight of 12. Pick edge from E to F with a weight of 13. Pick edge from B to D with a weight of 21. Pick edge from D to E with a weight of 22. The approximate optimal path is A, C, B, D, E, F, A with a total weight of = Let T = Pitt, L = Phil, B = Balt, and W = Wash. 40. Let T = Pitt, L = Phil, B = Balt, and W = Wash. The possibilities, with corresponding total distances, are: T, L, W, B, T: = 723 T, L, B, W, T: = 688 T, W, B, L, T: = 688 T, W, L, B, T: = 725 T, B, W, L, T: = 723 T, B, L, W, T: = 725 There are two optimal paths, T, L, B, W, T and T, W, B, L, T, each with a total distance of 688 miles. 41. Let T = Pitt, L = Phil, B = Balt, and W = Wash. Starting at T, the nearest neighbor is B with distance of 244, then W with 38, then L with 136 and back to T with 305. The approximate optimal solution is then, T, B, W, L, T with total distance of = 723 miles. This route is longer than the optimal solution. 42. Let T = Pitt, L = Phil, B = Balt, and W = Wash. Pick edge from W to B with a weight of 38. Pick edge from B to L with a weight of 100. Pick edge from T to W with a weight of 245. Pick edge from L to T with a weight of 305. The approximate optimal path is T, W, B, L, T with a total weight of = 688. This is the optimal solution, making it better than the nearest neighbor approximate solution. 43. Let N = New York, D = Cleveland, O = Chicago, and B = Baltimore. 714

11 44. Let N = New York, D = Cleveland, O = Chicago and B = Baltimore. The possible circuits with corresponding costs are: O, N, D, B, O: $450 + $375 + $300 + $325 = $1,450 O, B, N, D, O: $325 + $200 + $375 + $250 = $1,150 O, D, N, B, O: $250 + $375 + $200 + $325 = $1,150 O, N, B, D, O: $450 + $200 + $300 + $250 = $1,200 O, D, B, N, O: $250 + $300 + $200 + $450 = $1,200 O, B, D, N, O: $325 + $300 + $375 + $450 = $1,450 There are two optimal routes, O, B, N, D, O and O, D, N, B, O, each with a total cost of $1, Let N = New York, D = Cleveland, O = Chicago, and B = Baltimore. Starting at O, the nearest neighbor is D at a cost of $250, then B at $300, then N at $200, and back to O for $450. The approximate optimal solution is O, D, B, N, O with a total cost of $1,200. This route is $50 more expensive than the optimal solution. 46. Let N = New York, D = Cleveland, O = Chicago, and B = Baltimore. Pick the edge from B to N with a weight of 200. Pick the edge from O to D with a weight of 250. Pick the edge from D to B with a weight of 300. Pick the edge from N to O with a weight of 450. The approximate optimal solution is O, D, B, N, O with a total cost of = $1,200. This route is $50 more expensive than the optimal solution You would have to be crazy to do brute force. There are 5! = 120 possible routes. 49. Starting at H, the nearest neighbor is 3 with a weight of 1:05, then 1 with a weight of 1:40, then 4 with a weight of 2:15, then 5 with a weight of 1:15, then 2 with a weight of 1:15, then H with a weight of 4:30. The approximate optimal solution is H, 3, 1, 4, 5, 2, H with a total time of 1:05 + 1:40 + 2:15 + 1:15 + 1:15 + 2:15 = 12: Pick the edge from H to 3 with a weight of 1:05. Pick the edge from 4 to 5 with a weight of 1:15. Pick the edge from 5 to 2 with a weight of 1:15. Pick the edge from 3 to 1 with a weight of 1:40. Pick the edge 1 to 4 with a weight of 2:15. Pick the edge from 2 to H with a weight of 4:30. The approximate optimal solution is H, 3, 1, 4, 5, 2, H with a total time of 1:05 + 1:40 + 2:15 + 1:15 + 1:15 + 2:15 = 12:00. The answers for the nearest neighbor and cheapest link are the same

12 Brute Force Method: RB, DD, VB, HV, RB = 265 RB, DD, HV, VB, RB = 320 RB, VB, DD, HV, RB = 325 RB, VB, HV, DD, RB = 320 RB, HV, VB, DD, RB = 265 RB, HV, DD, VB, RB = 325 The optimal solution using the Brute Force Method is RB, DD, VB, HV, RB with a total weight of: = 265 or the reverse. Nearest Neighbor Method: Starting at RB, the nearest neighbor is HV with a weight of 45, then VB at 50, then DD at 90 and back to RB for 80. The approximate optimal solution is RB, DD, VB, HV, RB with a total weight of: = Brute Force Method: RB, DD, VB, HV, RB = RB, DD, HV, VB, RB = RB, VB, DD, HV, RB = RB, VB, HV, DD, RB = RB, HV, VB, DD, RB = RB, HV, DD, VB, RB = The optimal solution using the Brute Force Method is RB, DD, VB, HV, RB with a total weight of: = or the reverse. Nearest Neighbor Method: Starting at RB, the nearest neighbor is HV with a weight of 15.5, then VB at 15.7, then DD at 39.9 and back to RB for The approximate optimal solution is RB, DD, VB, HV, RB with a total weight of: = The same route as in Exercise 53 is most efficient, but even though that route is less than 8 miles shorter than the next-best route, it saves almost an hour. 55. Answers may vary. 56. Answers may vary. 57. Answers may vary. 58. Answers may vary. 59. Answers may vary. 60. Answers may vary. 61. Answers may vary. 716

13 62. (a) If there are n vertices, then you have n 1 to choose from for the next visit. The graph is complete therefore we are assured that we can visit any of the other n 1 vertices. (b) After visiting 2 vertices, you have n 2 choices for the next one. (c) Using the fundamental counting principle there are (n 1)(n 2)(n 3) (n (n 1)) = (n 1)(n 2)(n 3) 1 = (n 1)! ways to visit all n vertices. 63. No; in a complete graph, every vertex is connected to every other, and there s only one way to do that. 64. If a complete graph has n vertices, then every vertex has degree of n 1 since each vertex is connected to all of the others and there are n 1 others. There s an Euler circuit if all vertices are even; this happens if n is odd. There could be a Euler path but no circuit if exactly two vertices are odd. This can t happen for n > Answers may vary. 66. Answers may vary. Exercise Set A graph may have circuits but a tree has no circuits. 2. A tree cannot be a complete graph because a complete graph has circuits. 3. A spanning tree is a tree found by removing edges from a graph until it is a tree. 4. A minimum spanning tree for a weighted graph is the spanning tree whose edges add up to the least amount possible. 5. Starting with the lowest weighted edge, pick the next lowest connected to it, and then continue in this fashion until all vertices are connected. Delete all other edges and you will have a minimum spanning tree. 6. Answers may vary. 7. The graph is not a tree because it contains the circuit A, B, C, A. 8. The graph is a tree. 9. The graph is a tree. 10. The graph is not a tree because it contains the circuit A, D, E, A. 11. The graph is not a tree because it is disconnected. 12. The graph is a tree. 13. The graph is a tree. 14. The graph is a tree. 15. The graph is not a tree because it contains the circuit A, B, C, A. 16. The graph is a tree

14 The lowest weighted edge is AE, followed by ED and EB, then the edge BC. Keep these edges for the minimum spanning tree pictured. The total weight is = The lowest weighted edge is BD, next is DA, and the next that doesn t make a circuit is BC. Keep these three edges for the minimum spanning tree pictured. The total weight is = The lowest weighted edge is BC, followed by DF. The next lowest weighted that doesn t make a circuit is either CD or BF. Regardless of which of these edges is chosen, the next two lowest weighted edges that do not form a circuit are AB and DE. The minimum spanning tree containing CD is pictured. The total weight is = The lowest weighted edge is AB, followed by CD, and BC. The lowest weighted edges that do not form a circuit are EF, CE, and EG. Keep these edges for the minimum spanning tree pictured. The total weight is = The lowest weighted edge is GE, followed by EF. The lowest weighted edges that do not form a circuit are AI, IG, BI, IH, ID, and IC. Keep these edges for the minimum spanning tree pictured. The total weight is = The lowest weighted edge is FE, followed by DC, BC and FG, AB, and ED. Keep these edges for the minimum spanning tree pictured. The total weight is = The lowest weighted edge is BE followed by CF and BF. The lowest weighted edges that do not form a circuit are DF and AE. Keep these edges for the minimal spanning tree pictured. The total weight is =

15 30. The lowest weighted edges are CD and GI followed by EF. The next lowest weighted edge that does not form a circuit is either GF or IF. Regardless of which is chosen, the next two lowest weighted edges are DE and GH. The next lowest weighted edge that does not form a circuit is BC. The next lowest weighted edge that does not form a circuit is either AH or AB. The minimal spanning tree containing edges GI and AB is pictured. The total weight is = The minimum spanning tree is pictured below. 34. The minimum spanning tree is pictures below:: 1,110 2,370 The shortest distance is 1,450 2,200 1, , , ,450 = 7,130. At a cost of $290 per foot to install, the minimum cost is 7130(290) = $2,067, When the graph can be represented by a tree, every room can be reached from any other room using some path, but you can t start in one room and return to that room without retracing part of your route. 36. Answers can vary depending on how you find the distances. Distances shown here are from park to park, not city to city. Weighted graph and Minimum spanning tree: The least amount of wire needed is = 28 feet. 32. The minimum spanning tree is pictured below. The shortest distance is = 1,400 feet. 33. The minimum spanning tree is pictured below. Optimal route: Pit Cle Col Cin Det Pit. It follows the minimum spanning tree as long as possible without retracing an edge. (The reverse route works too, and finishes with three edges of the spanning tree.) 37. Answers may vary. 38. a) 10 b) Answers may vary. 39. Answers may vary. 40. Answers may vary. 41. Answers may vary. 42. Answers may vary. The shortest distance is = 162 feet. 719

16 Review Exercises 1. The vertices are A, B, C, D, E, and F. 2. There are four edges connected to E, therefore E is an even vertex. 3. There are three edges connected to C, therefore C is an odd vertex. 4. The vertex B has a loop since there is an edge from B to itself. 5. C and E are connected to F by an edge, therefore C and E are adjacent to F. 6. The edge EF is a bridge, since if it is removed the graph will be disconnected. 7. Since there is a path between every pair of vertices, the graph is connected. 8. The graph has 9 edges, the loop at B and BC, BA, BE, AE, ED, CF and EF. 9. Yes. Each has three vertices with degree 3, one with degree 4 and one with degree Chromatic number: Chromatic number for exercise 11: 3 Chromatic number for exercise 12: All vertices have even degree, so there is a Euler Circuit. 16. It doesn t have a path or circuit because there are three vertices (V, X, and Y) of odd degree. 17. There are exactly two odd vertices (E and G), so it has an Euler path but no Euler 18. The graph from Exercise 15 has an Euler circuit; one possible answer is: A, B, C, D, E, G, F, A, G, C, A. 19. The graph from Exercise 17; one possible answer: E, D, C, A, B, C, E, B, G, E, F, G. 20. There are 4 odd vertices, so there isn t a circuit or a path. 21. There is a Euler path. One possible path: C, E, W, F, V, C, W, V. 22. In the nearest neighbor method, you always choose the edge with the lowest weight connected to the edges you ve already chosen. In cheapest link, you choose the lowest-weight edges overall, as long as they don t form a circuit or revisit a vertex. 23. Answers may vary; one Hamilton path is A, E, B, D, C, H. 24. Answers may vary; one Hamilton circuit is A, B, C, D, E, H, F, A. 25. A complete graph with 12 vertices has (12 1)! = 11! = = 39,916,800 Hamilton circuits. 720

17 26. Starting at A the nearest neighbor is D with a weight of 22, then C with 23, then B with 23, then E with 26, and finally back to A with 31. So an optimal circuit is A, D, C, B, E, A for a total weight of = a) It is a tree because there s exactly one path connecting each pair of vertices. b) It isn t a tree because it s disconnected, so there s no path connecting certain pairs of vertices C, D, F, E, C = 1,415 C, D, E, F, C = 1,385 C, F, D, E, C = 1,839 C, F, E, D, C = 1,396 C, E, F, D, C =1,415 C, E, D, F, C = 1,839 The cheapest route is C, D, E, F, C or C, F, E, D, C; $1, Pick the edge from F to E with a weight of 230. Pick the edge from C to D with a weight of 256. Pick the edge from D to F with a weight of 560. Pick the edge from E to C with a weight of 732. The approximate optimal solution is C, D, F, E, C or C, E, F, D, C with a total weight of = $1,415. The cheapest link approximate solution is 1,415 1,396 = $19 more than the optimal solution. 32. The lowest weighted edge is DE followed by AC and AB. The next lowest weighted edges that do not form a circuit are FG, CH, HG, and HE. Keep these edges and the minimum spanning tree is pictured. The total weight is = A minimum spanning tree connects all vertices with exactly one path that has the lowest possible overall weight. In a traveling salesperson problem, we find a circuit that visits each vertex once and has minimum weight. 34. The minimum cost is = $

18 Chapter Test 1. a) There are four edges connected to vertex C, therefore the degree of vertex C is 4. b) There is a loop at vertex E since there is an edge from E to itself. c) Answers may vary; one possible path is A, B, C, E, D, F. d) The edge FD is a bridge since removing it would cause the graph to be disconnected. e) C is adjacent to A, B, D, and E since there is an edge connecting C to each of these vertices. f) C and E are even. A, B, D, and F are odd. 2. Answers may vary. One possibility: 7. To plow each street only once would mean finding an Euler path. One Euler path is A, D, E, A, B, E, F, B, C, F. 8. Let A = Adamsburg, T = Trafford, W = White Oak and C = Turtle Creek. 3 a) b) It would require 3 colors 5. a) Answers may vary; one Euler path is B, A, F, B, C, D, E, C, F. b) Answers may vary; one Hamilton path is A, B, F, C, E, D. The Hamilton path will typically vary from the Euler path. 9. The possible paths with their corresponding distances are: A, T, C, W, A: = 78 A, T, W, C, A: = 64 A, C, W, T, A: = 64 A, C, T, W, A: = 78 A, W, T, C, A: = 78 A, W, C, T, A: = 78 The shortest distance is 64 miles. 10. Nearest Neighbor Method: Starting at A the nearest neighbor is C at 18 miles, then W at 12 miles, then T at 14 miles, and back to A at 20 miles. So the approximate optimal path is A, C, W, T, A and the approximate optimal distance is = 64 miles. The result is the same as the one obtained by the brute force method. Cheapest Link Algorithm: Pick the edge from W to C with a weight of 12. Pick the edge from W to T with a weight of 14. Pick the edge from C to A with a weight of 18. Pick the edge from A to T with a weight of 20. So the approximate optimal path is A, C, W, T, A and the approximate optimal distance is = 64 miles. The result is the same as the one obtained by the brute force method. 722

19 a) If the graph is constructed so that the roads are edges then Euler paths would be used since he wants to cross every road only once. b) Letting the attractions be the vertices the friends would want to use an optimal Hamilton path so that they visit every attraction exactly once with the least amount of walking. c) Letting the delivery locations be the vertices the drive would want to find an optimal Hamilton path so that every location is visited exactly once in the least amount of time. d) Letting the colleges they visit be vertices, the friends will want to find an optimal Hamilton circuit so that they visit each college exactly once and travel the shortest possible distance. e) Letting the streets be edges the police officer will want to find an Euler path so that he travels down every street. f) Letting the classrooms be the vertices, the IT team will want to find a minimum spanning tree so that every classroom is wired and the least amount of wire is used. 723

SEVENTH EDITION and EXPANDED SEVENTH EDITION

SEVENTH EDITION and EXPANDED SEVENTH EDITION SEVENTH EDITION and EXPANDED SEVENTH EDITION Slide 14-1 Chapter 14 Graph Theory 14.1 Graphs, Paths and Circuits Definitions A graph is a finite set of points called vertices (singular form is vertex) connected

More information

6.2 Initial Problem. Section 6.2 Network Problems. 6.2 Initial Problem, cont d. Weighted Graphs. Weighted Graphs, cont d. Weighted Graphs, cont d

6.2 Initial Problem. Section 6.2 Network Problems. 6.2 Initial Problem, cont d. Weighted Graphs. Weighted Graphs, cont d. Weighted Graphs, cont d Section 6.2 Network Problems Goals Study weighted graphs Study spanning trees Study minimal spanning trees Use Kruskal s algorithm 6.2 Initial Problem Walkways need to be built between the buildings on

More information

Chapter 14 Section 3 - Slide 1

Chapter 14 Section 3 - Slide 1 AND Chapter 14 Section 3 - Slide 1 Chapter 14 Graph Theory Chapter 14 Section 3 - Slide WHAT YOU WILL LEARN Graphs, paths and circuits The Königsberg bridge problem Euler paths and Euler circuits Hamilton

More information

Topics Covered. Introduction to Graphs Euler s Theorem Hamiltonian Circuits The Traveling Salesman Problem Trees and Kruskal s Algorithm

Topics Covered. Introduction to Graphs Euler s Theorem Hamiltonian Circuits The Traveling Salesman Problem Trees and Kruskal s Algorithm Graph Theory Topics Covered Introduction to Graphs Euler s Theorem Hamiltonian Circuits The Traveling Salesman Problem Trees and Kruskal s Algorithm What is a graph? A collection of points, called vertices

More information

Warm -Up. 1. Draw a connected graph with 4 vertices and 7 edges. What is the sum of the degrees of all the vertices?

Warm -Up. 1. Draw a connected graph with 4 vertices and 7 edges. What is the sum of the degrees of all the vertices? Warm -Up 1. Draw a connected graph with 4 vertices and 7 edges. What is the sum of the degrees of all the vertices? 1. Is this graph a. traceable? b. Eulerian? 3. Eulerize this graph. Warm-Up Eulerize

More information

Sections 5.2, 5.3. & 5.4

Sections 5.2, 5.3. & 5.4 MATH 11008: Graph Theory Terminology Sections 5.2, 5.3. & 5.4 Routing problem: A routing problem is concerned with finding ways to route the delivery of good and/or services to an assortment of destinations.

More information

Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around

Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around 1 Finite Math A Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around Academic Standards Covered in this Chapter: *************************************************************************************

More information

Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around

Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around 1 Finite Math A Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around Academic Standards Covered in this Chapter: *************************************************************************************

More information

Finite Math A Chapter 6 Notes Hamilton Circuits

Finite Math A Chapter 6 Notes Hamilton Circuits Chapter 6: The Mathematics of Touring (Hamilton Circuits) and Hamilton Paths 6.1 Traveling Salesman Problems/ 6.2 Hamilton Paths and Circuits A traveling salesman has clients in 5 different cities. He

More information

1. Read each problem carefully and follow the instructions.

1. Read each problem carefully and follow the instructions. SSII 2014 1 Instructor: Benjamin Wilson Name: 1. Read each problem carefully and follow the instructions. 2. No credit will be given for correct answers without supporting work and/ or explanation. 3.

More information

SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.

SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question. Chapter 6 Test Review Name SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question. Solve the problem. 1) The number of edges in K12 is 1) 2) The number of Hamilton

More information

Simple Graph. General Graph

Simple Graph. General Graph Graph Theory A graph is a collection of points (also called vertices) and lines (also called edges), with each edge ending at a vertex In general, it is allowed for more than one edge to have the same

More information

Undirected Network Summary

Undirected Network Summary Undirected Network Summary Notice that the network above has multiple edges joining nodes a to d and the network has a loop at node d. Also c is called an isolated node as it is not connected to any other

More information

Network Analysis. Links, nodes, trees, graphs, paths and cycles what does it all mean? Minimal spanning tree shortest route maximum flow

Network Analysis. Links, nodes, trees, graphs, paths and cycles what does it all mean? Minimal spanning tree shortest route maximum flow Network Analysis Minimal spanning tree shortest route maximum flow Links, nodes, trees, graphs, paths and cycles what does it all mean? Real OR in action! 1 Network Terminology Graph - set of points (nodes)

More information

Worksheet for the Final Exam - Part I. Graphs

Worksheet for the Final Exam - Part I. Graphs Worksheet for the Final Exam - Part I. Graphs Date and Time: May 10 2012 Thursday 11:50AM~1:50PM Location: Eng 120 Start with the Self-Test Exercises (pp.816) in Prichard. 1. Give the adjacency matrix

More information

Section Graphs, Paths, and Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

Section Graphs, Paths, and Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.1 Graphs, Paths, and Circuits What You Will Learn Graphs Paths Circuits Bridges 14.1-2 Definitions A graph is a finite set of points called vertices (singular form is vertex) connected by line

More information

a) Graph 2 and Graph 3 b) Graph 2 and Graph 4 c) Graph 1 and Graph 4 d) Graph 1 and Graph 3 e) Graph 3 and Graph 4 f) None of the above

a) Graph 2 and Graph 3 b) Graph 2 and Graph 4 c) Graph 1 and Graph 4 d) Graph 1 and Graph 3 e) Graph 3 and Graph 4 f) None of the above Mathematics 105: Math as a Liberal Art. Final Exam. Name Instructor: Ramin Naimi Spring 2008 Close book. Closed notes. No Calculators. NO CELL PHONES! Please turn off your cell phones and put them away.

More information

Graph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC January 26, 2011

Graph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC   January 26, 2011 Graph Theory Martin Stynes Department of Mathematics, UCC email: m.stynes@ucc.ie January 26, 2011 1 Introduction to Graphs 1 A graph G = (V, E) is a non-empty set of nodes or vertices V and a (possibly

More information

The Traveling Salesman Problem Outline/learning Objectives The Traveling Salesman Problem

The Traveling Salesman Problem Outline/learning Objectives The Traveling Salesman Problem Chapter 6 Hamilton Joins the Circuit Outline/learning Objectives To identify and model Hamilton circuit and Hamilton path problems. To recognize complete graphs and state the number of Hamilton circuits

More information

Study Guide Mods: Date:

Study Guide Mods: Date: Graph Theory Name: Study Guide Mods: Date: Define each of the following. It may be helpful to draw examples that illustrate the vocab word and/or counterexamples to define the word. 1. Graph ~ 2. Vertex

More information

Multi-edges, loops, and two or more pieces are all allowed. Example 4 (Not Graphs). None of the following are graphs.

Multi-edges, loops, and two or more pieces are all allowed. Example 4 (Not Graphs). None of the following are graphs. MA 111, Topic 4: Graph Theory Our last topic in this course is called Graph Theory. This is the mathematics of connections, associations, and relationships. Definition 1. A Graph is a set of points called

More information

Chapter 5: The Mathematics of Getting Around

Chapter 5: The Mathematics of Getting Around Euler Paths and Circuits Chapter 5: The Mathematics of Getting Around 5.1 Street-Routing Problem Our story begins in the 1700s in the medieval town of Königsberg, in Eastern Europe. At the time, Königsberg

More information

Lecture 20 : Trees DRAFT

Lecture 20 : Trees DRAFT CS/Math 240: Introduction to Discrete Mathematics 4/12/2011 Lecture 20 : Trees Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT Last time we discussed graphs. Today we continue this discussion,

More information

CIS-331 Fall 2013 Exam 1 Name: Total of 120 Points Version 1

CIS-331 Fall 2013 Exam 1 Name: Total of 120 Points Version 1 Version 1 1. (24 Points) Show the routing tables for routers A, B, C, and D. Make sure you account for traffic to the Internet. NOTE: Router E should only be used for Internet traffic. Router A Router

More information

MTH-129 Review for Test 4 Luczak

MTH-129 Review for Test 4 Luczak MTH-129 Review for Test 4 Luczak 1. On each of three consecutive days the National Weather Service announces that there is a 50-50 chance of rain. Assuming that they are correct, answer the following:

More information

Excursions in Modern Mathematics Sixth Edition. Chapter 5 Euler Circuits. The Circuit Comes to Town. Peter Tannenbaum

Excursions in Modern Mathematics Sixth Edition. Chapter 5 Euler Circuits. The Circuit Comes to Town. Peter Tannenbaum Excursions in Modern Mathematics Sixth Edition Chapter 5 Peter Tannenbaum The Circuit Comes to Town 1 2 Outline/learning Objectives Outline/learning Objectives (cont.) To identify and model Euler circuit

More information

Sarah Will Math 490 December 2, 2009

Sarah Will Math 490 December 2, 2009 Sarah Will Math 490 December 2, 2009 Euler Circuits INTRODUCTION Euler wrote the first paper on graph theory. It was a study and proof that it was impossible to cross the seven bridges of Königsberg once

More information

Unit 7 Day 2 Section Vocabulary & Graphical Representations Euler Circuits and Paths

Unit 7 Day 2 Section Vocabulary & Graphical Representations Euler Circuits and Paths Unit 7 Day 2 Section 4.3-4.5 Vocabulary & Graphical Representations Euler Circuits and Paths 1 Warm Up ~ Day 2 List the tasks and earliest start times in a table, as in exercise #1. Determine the minimum

More information

Chapter 8 Topics in Graph Theory

Chapter 8 Topics in Graph Theory Chapter 8 Topics in Graph Theory Chapter 8: Topics in Graph Theory Section 8.1: Examples {1,2,3} Section 8.2: Examples {1,2,4} Section 8.3: Examples {1} 8.1 Graphs Graph A graph G consists of a finite

More information

Note that there are questions printed on both sides of each page!

Note that there are questions printed on both sides of each page! Math 1001 Name: Fall 2007 Test 1 Student ID: 10/5/07 Time allowed: 50 minutes Section: 10:10 11:15 12:20 This exam includes 7 pages, including this one and a sheet for scratch work. There are a total of

More information

Graphs. The ultimate data structure. graphs 1

Graphs. The ultimate data structure. graphs 1 Graphs The ultimate data structure graphs 1 Definition of graph Non-linear data structure consisting of nodes & links between them (like trees in this sense) Unlike trees, graph nodes may be completely

More information

WUCT121. Discrete Mathematics. Graphs

WUCT121. Discrete Mathematics. Graphs WUCT121 Discrete Mathematics Graphs WUCT121 Graphs 1 Section 1. Graphs 1.1. Introduction Graphs are used in many fields that require analysis of routes between locations. These areas include communications,

More information

The Traveling Salesman Problem Outline/learning Objectives The Traveling Salesman Problem

The Traveling Salesman Problem Outline/learning Objectives The Traveling Salesman Problem Chapter 6 Hamilton Joins the Circuit Outline/learning Objectives To identify and model Hamilton circuit and Hamilton path problems. To recognize complete graphs and state the number of Hamilton circuits

More information

Math 100 Homework 4 B A C E

Math 100 Homework 4 B A C E Math 100 Homework 4 Part 1 1. nswer the following questions for this graph. (a) Write the vertex set. (b) Write the edge set. (c) Is this graph connected? (d) List the degree of each vertex. (e) oes the

More information

Brief History. Graph Theory. What is a graph? Types of graphs Directed graph: a graph that has edges with specific directions

Brief History. Graph Theory. What is a graph? Types of graphs Directed graph: a graph that has edges with specific directions Brief History Graph Theory What is a graph? It all began in 1736 when Leonhard Euler gave a proof that not all seven bridges over the Pregolya River could all be walked over once and end up where you started.

More information

Graph Theory. 26 March Graph Theory 26 March /29

Graph Theory. 26 March Graph Theory 26 March /29 Graph Theory 26 March 2012 Graph Theory 26 March 2012 1/29 Graph theory was invented by a mathematician named Euler in the 18th century. We will see some of the problems which motivated its study. However,

More information

AQR UNIT 7. Circuits, Paths, and Graph Structures. Packet #

AQR UNIT 7. Circuits, Paths, and Graph Structures. Packet # AQR UNIT 7 NETWORKS AND GRAPHS: Circuits, Paths, and Graph Structures Packet # BY: Introduction to Networks and Graphs: Try drawing a path for a person to walk through each door exactly once without going

More information

Ma/CS 6a Class 8: Eulerian Cycles

Ma/CS 6a Class 8: Eulerian Cycles Ma/CS 6a Class 8: Eulerian Cycles By Adam Sheffer The Bridges of Königsberg Can we travel the city while crossing every bridge exactly once? 1 How Graph Theory was Born Leonhard Euler 1736 Eulerian Cycle

More information

13. (a) G,G. A circuit of length 1 is a loop. 14. (a) E,E. (c) A,B,C,A. 16. (a) BF, FG

13. (a) G,G. A circuit of length 1 is a loop. 14. (a) E,E. (c) A,B,C,A. 16. (a) BF, FG 13. (a) G,G. A circuit of length 1 is a loop. There are none. Such a circuit would consist of two vertices and two (different) edges connecting the vertices. 10. (a) 11. (a) C, B, A, H, F Other answers

More information

Math for Liberal Arts MAT 110: Chapter 13 Notes

Math for Liberal Arts MAT 110: Chapter 13 Notes Math for Liberal Arts MAT 110: Chapter 13 Notes Graph Theory David J. Gisch Networks and Euler Circuits Network Representation Network: A collection of points or objects that are interconnected in some

More information

CIS-331 Exam 2 Fall 2014 Total of 105 Points. Version 1

CIS-331 Exam 2 Fall 2014 Total of 105 Points. Version 1 Version 1 1. (20 Points) Given the class A network address 119.0.0.0 will be divided into a maximum of 15,900 subnets. a. (5 Points) How many bits will be necessary to address the 15,900 subnets? b. (5

More information

Topic 10 Part 2 [474 marks]

Topic 10 Part 2 [474 marks] Topic Part 2 [474 marks] The complete graph H has the following cost adjacency matrix Consider the travelling salesman problem for H a By first finding a minimum spanning tree on the subgraph of H formed

More information

Graph Theory

Graph Theory Graph Theory 2012.04.18 Our goal today is to learn some basic concepts in graph theory and explore fun problems using graph theory. A graph is a mathematical object that captures the notion of connection.

More information

Grade 7/8 Math Circles Graph Theory - Solutions October 13/14, 2015

Grade 7/8 Math Circles Graph Theory - Solutions October 13/14, 2015 Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grade 7/8 Math Circles Graph Theory - Solutions October 13/14, 2015 The Seven Bridges of Königsberg In

More information

How to find a minimum spanning tree

How to find a minimum spanning tree Print How to find a minimum spanning tree Definitions Kruskal s algorithm Spanning tree example Definitions Trees A tree is a connected graph without any cycles. It can also be defined as a connected graph

More information

Chapter 14. Graphs Pearson Addison-Wesley. All rights reserved 14 A-1

Chapter 14. Graphs Pearson Addison-Wesley. All rights reserved 14 A-1 Chapter 14 Graphs 2011 Pearson Addison-Wesley. All rights reserved 14 A-1 Terminology G = {V, E} A graph G consists of two sets A set V of vertices, or nodes A set E of edges A subgraph Consists of a subset

More information

11-5 Networks. Königsberg Bridge Problem

11-5 Networks. Königsberg Bridge Problem Section 11-5 Networks 1 11-5 Networks In the 1700s, the people of Königsberg, Germany (now Kaliningrad in Russia), used to enjoy walking over the bridges of the Pregel River. There were three landmasses

More information

0.0.1 Network Analysis

0.0.1 Network Analysis Graph Theory 0.0.1 Network Analysis Prototype Example: In Algonquian Park the rangers have set up snowmobile trails with various stops along the way. The system of trails is our Network. The main entrance

More information

Section Graphs, Paths, and Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

Section Graphs, Paths, and Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.1 Graphs, Paths, and Circuits INB Table of Contents Date Topic Page # January 27, 2014 Test #1 14 January 27, 2014 Test # 1 Corrections 15 January 27, 2014 Section 14.1 Examples 16 January 27,

More information

Junior Circle Meeting 3 Circuits and Paths. April 18, 2010

Junior Circle Meeting 3 Circuits and Paths. April 18, 2010 Junior Circle Meeting 3 Circuits and Paths April 18, 2010 We have talked about insect worlds which consist of cities connected by tunnels. Here is an example of an insect world (Antland) which we saw last

More information

CIS-331 Spring 2016 Exam 1 Name: Total of 109 Points Version 1

CIS-331 Spring 2016 Exam 1 Name: Total of 109 Points Version 1 Version 1 Instructions Write your name on the exam paper. Write your name and version number on the top of the yellow paper. Answer Question 1 on the exam paper. Answer Questions 2-4 on the yellow paper.

More information

Graph Theory. Chapter 4.

Graph Theory. Chapter 4. Graph Theory. Chapter 4. Wandering. Here is an algorithm, due to Tarry, that constructs a walk in a connected graph, starting at any vertex v 0, traversing each edge exactly once in each direction, and

More information

14.2 Euler Paths and Circuits filled in.notebook November 18, Euler Paths and Euler Circuits

14.2 Euler Paths and Circuits filled in.notebook November 18, Euler Paths and Euler Circuits 14.2 Euler Paths and Euler Circuits The study of graph theory can be traced back to the eighteenth century when the people of the town of Konigsberg sought a solution to a popular problem. They had sections

More information

Graphs II: Trailblazing

Graphs II: Trailblazing Graphs II: Trailblazing Paths In an undirected graph, a path of length n from u to v, where n is a positive integer, is a sequence of edges e 1,, e n of the graph such that f(e 1 )={x 0,x 1 }, f(e 2 )={x

More information

Unit 7 Day 5 Graph Theory. Section 5.1 and 5.2

Unit 7 Day 5 Graph Theory. Section 5.1 and 5.2 Unit 7 Day 5 Graph Theory Section 5.1 and 5.2 Determine if the below exist; write it if it exists or explain using the definition why it doesn t exist. B Euler Path? No, because more than two have odd

More information

Honors ICM- Graph Theory Unit 7 Homework Packet Homework Day 1

Honors ICM- Graph Theory Unit 7 Homework Packet Homework Day 1 Honors ICM- Graph Theory Unit 7 Homework Packet Homework Day 1 Name Period: 6. Construct a graph with three critical paths. 7. Determine the minimum project time and the critical path for the following

More information

MA 111 Review for Exam 3

MA 111 Review for Exam 3 MA 111 Review for Exam 3 Exam 3 (given in class on Tuesday, March 27, 2012) will cover Chapter 5. You should: know what a graph is and how to use graphs to model geographic relationships. know how to describe

More information

MATH 101: Introduction to Contemporary Mathematics

MATH 101: Introduction to Contemporary Mathematics MATH 101: Introduction to Contemporary Mathematics Sections 201-206 Instructor: H. R. Hughes Course web page: http://www.math.siu.edu/hughes/math101.htm Summer 2013 Lecture sessions meet: MTWF 12:10-1:10

More information

1. The Highway Inspector s Problem

1. The Highway Inspector s Problem MATH 100 Survey of Mathematics Fall 2009 1. The Highway Inspector s Problem The Königsberg Bridges over the river Pregel C c d e A g D a B b Figure 1. Bridges f Is there a path that crosses every bridge

More information

Basic Combinatorics. Math 40210, Section 01 Fall Homework 4 Solutions

Basic Combinatorics. Math 40210, Section 01 Fall Homework 4 Solutions Basic Combinatorics Math 40210, Section 01 Fall 2012 Homework 4 Solutions 1.4.2 2: One possible implementation: Start with abcgfjiea From edge cd build, using previously unmarked edges: cdhlponminjkghc

More information

SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.

SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question. Test Review Ch 4 Name SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question. Solve the problem. 1) According to the 2000 U. S. Census, 6.753% of the U.S. population

More information

MAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS

MAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS MAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS 1. Question 1 Part i. There are many Hamiltonian cycles; e.g., ABLKJEDFIHGC. We now show that if we remove vertex D, the result G \ {D} is not hamiltonian. Note

More information

CIS-331 Exam 2 Spring 2016 Total of 110 Points Version 1

CIS-331 Exam 2 Spring 2016 Total of 110 Points Version 1 Version 1 1. (20 Points) Given the class A network address 121.0.0.0 will be divided into multiple subnets. a. (5 Points) How many bits will be necessary to address 8,100 subnets? b. (5 Points) What is

More information

Chapter 6. The Traveling-Salesman Problem. Section 1. Hamilton circuits and Hamilton paths.

Chapter 6. The Traveling-Salesman Problem. Section 1. Hamilton circuits and Hamilton paths. Chapter 6. The Traveling-Salesman Problem Section 1. Hamilton circuits and Hamilton paths. Recall: an Euler path is a path that travels through every edge of a graph once and only once; an Euler circuit

More information

14 More Graphs: Euler Tours and Hamilton Cycles

14 More Graphs: Euler Tours and Hamilton Cycles 14 More Graphs: Euler Tours and Hamilton Cycles 14.1 Degrees The degree of a vertex is the number of edges coming out of it. The following is sometimes called the First Theorem of Graph Theory : Lemma

More information

Chapter 1. Urban Services. Chapter Outline. Chapter Summary

Chapter 1. Urban Services. Chapter Outline. Chapter Summary Chapter 1 Urban Services Chapter Outline Introduction Section 1.1 Euler Circuits Section 1.2 Finding Euler Circuits Section 1.3 Beyond Euler Circuits Section 1.4 Urban Graph Traversal Problems Chapter

More information

CS 311 Discrete Math for Computer Science Dr. William C. Bulko. Graphs

CS 311 Discrete Math for Computer Science Dr. William C. Bulko. Graphs CS 311 Discrete Math for Computer Science Dr. William C. Bulko Graphs 2014 Definitions Definition: A graph G = (V,E) consists of a nonempty set V of vertices (or nodes) and a set E of edges. Each edge

More information

The Traveling Salesman Problem

The Traveling Salesman Problem The Traveling Salesman Problem Hamilton path A path that visits each vertex of the graph once and only once. Hamilton circuit A circuit that visits each vertex of the graph once and only once (at the end,

More information

Elements of Graph Theory

Elements of Graph Theory Elements of Graph Theory Quick review of Chapters 9.1 9.5, 9.7 (studied in Mt1348/2008) = all basic concepts must be known New topics we will mostly skip shortest paths (Chapter 9.6), as that was covered

More information

Chapter 3: Paths and Cycles

Chapter 3: Paths and Cycles Chapter 3: Paths and Cycles 5 Connectivity 1. Definitions: Walk: finite sequence of edges in which any two consecutive edges are adjacent or identical. (Initial vertex, Final vertex, length) Trail: walk

More information

Finite Math A, Chapter 8: Scheduling 1

Finite Math A, Chapter 8: Scheduling 1 Finite Math A, Chapter 8: Scheduling 1 Finite Math A Chapter 8 The Mathematics of Scheduling Chapter 8: The Mathematics of Scheduling Pd 2 & 6 Pd 4 & 7 Lesson Homework Tues Wed 8.1, 8.2 The Basic Elements

More information

MAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS

MAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS MS 41: PH THEOY 2016 EXM SOLUTIONS 1. Question 1 1.1. Explain why any alkane C n H 2n+2 is a tree. How many isomers does C 6 H 14 have? Draw the structure of the carbon atoms in each isomer. marks; marks

More information

Network Topology and Graph

Network Topology and Graph Network Topology Network Topology and Graph EEE442 Computer Method in Power System Analysis Any lumped network obeys 3 basic laws KVL KCL linear algebraic constraints Ohm s law Anawach Sangswang Dept.

More information

FIGURES FOR SOLUTIONS TO SELECTED EXERCISES. V : Introduction to non Euclidean geometry

FIGURES FOR SOLUTIONS TO SELECTED EXERCISES. V : Introduction to non Euclidean geometry FIGURES FOR SOLUTIONS TO SELECTED EXERCISES V : Introduction to non Euclidean geometry V.1 : Facts from spherical geometry V.1.1. The objective is to show that the minor arc m does not contain a pair of

More information

Chapter 4 Answers. Lesson 4.1. Chapter 4 Answers 1

Chapter 4 Answers. Lesson 4.1. Chapter 4 Answers 1 Chapter 4 Answers Lesson 4.1 1. 2. 3. 4. Chapter 4 Answers 1 5. Answers vary. Sample answer: a. A: 2, none; B: 4, A; C: 3, B; D: 7, C; E: 5, A; F: 10, E; G: 8, A; H: 3, A; I: 4, D, F, G, and H b. c. In

More information

4. Specifications and Additional Information

4. Specifications and Additional Information 4. Specifications and Additional Information AGX52004-1.0 8B/10B Code This section provides information about the data and control codes for Arria GX devices. Code Notation The 8B/10B data and control

More information

Introduction to Engineering Systems, ESD.00. Networks. Lecturers: Professor Joseph Sussman Dr. Afreen Siddiqi TA: Regina Clewlow

Introduction to Engineering Systems, ESD.00. Networks. Lecturers: Professor Joseph Sussman Dr. Afreen Siddiqi TA: Regina Clewlow Introduction to Engineering Systems, ESD.00 Lecture 7 Networks Lecturers: Professor Joseph Sussman Dr. Afreen Siddiqi TA: Regina Clewlow The Bridges of Königsberg The town of Konigsberg in 18 th century

More information

Majority and Friendship Paradoxes

Majority and Friendship Paradoxes Majority and Friendship Paradoxes Majority Paradox Example: Small town is considering a bond initiative in an upcoming election. Some residents are in favor, some are against. Consider a poll asking the

More information

Graph Theory: Starting Out

Graph Theory: Starting Out Graph Theory: Starting Out Administrivia To read: Chapter 7, Sections 1-3 (Ensley/Crawley) Problem Set 5 sent out; due Monday 12/8 in class. There will be two review days next week (Wednesday and Friday)

More information

Module 2: NETWORKS AND DECISION MATHEMATICS

Module 2: NETWORKS AND DECISION MATHEMATICS Further Mathematics 2017 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks Key knowledge the conventions, terminology, properties and types of graphs; edge, face, loop,

More information

Graph Theory. Part of Texas Counties.

Graph Theory. Part of Texas Counties. Graph Theory Part of Texas Counties. We would like to visit each of the above counties, crossing each county only once, starting from Harris county. Is this possible? This problem can be modeled as a graph.

More information

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006 Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006 THE KIT: This kit contains materials for two Instant Insanity games, a student activity sheet with answer key and this instructor

More information

Further Mathematics 2016 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks

Further Mathematics 2016 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks Further Mathematics 2016 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks Key knowledge the conventions, terminology, properties and types of graphs; edge, face, loop,

More information

CHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ - artale/z

CHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ -  artale/z CHAPTER 10 GRAPHS AND TREES Alessandro Artale UniBZ - http://www.inf.unibz.it/ artale/z SECTION 10.1 Graphs: Definitions and Basic Properties Copyright Cengage Learning. All rights reserved. Graphs: Definitions

More information

Graph Theory. Connectivity, Coloring, Matching. Arjun Suresh 1. 1 GATE Overflow

Graph Theory. Connectivity, Coloring, Matching. Arjun Suresh 1. 1 GATE Overflow Graph Theory Connectivity, Coloring, Matching Arjun Suresh 1 1 GATE Overflow GO Classroom, August 2018 Thanks to Subarna/Sukanya Das for wonderful figures Arjun, Suresh (GO) Graph Theory GATE 2019 1 /

More information

MEI Further Mathematics Support Programme

MEI Further Mathematics Support Programme Further Mathematics Support Programme the Further Mathematics Support Programme www.furthermaths.org.uk Modelling and problem solving with Networks Sharon Tripconey Let Maths take you Further Nov 2009

More information

Unit 5 Applying Similarity of Triangles

Unit 5 Applying Similarity of Triangles Unit 5 Applying Similarity of Triangles Lesson 1: Proof of the Triangle Side Splitter Theorem Opening Exercise We are going to construct a proof designed to demonstrate the following theorem: A line segment

More information

Squares and Rectangles

Squares and Rectangles 11 CHAPTER Squares and Rectangles Lesson 11.1 Squares and Rectangles Study the figure. Then fill in the blanks. 1. There are right angles. 2. There are equal sides. 3. There are pairs of parallel sides.

More information

Section Hamilton Paths, and Hamilton Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

Section Hamilton Paths, and Hamilton Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.3 Hamilton Paths, and Hamilton Circuits What You Will Learn Hamilton Paths Hamilton Circuits Complete Graphs Traveling Salesman Problems 14.3-2 Hamilton Paths A Hamilton path is a path that

More information

CIS-331 Fall 2014 Exam 1 Name: Total of 109 Points Version 1

CIS-331 Fall 2014 Exam 1 Name: Total of 109 Points Version 1 Version 1 1. (24 Points) Show the routing tables for routers A, B, C, and D. Make sure you account for traffic to the Internet. Router A Router B Router C Router D Network Next Hop Next Hop Next Hop Next

More information

A region is each individual area or separate piece of the plane that is divided up by the network.

A region is each individual area or separate piece of the plane that is divided up by the network. Math 135 Networks and graphs Key terms Vertex (Vertices) ach point of a graph dge n edge is a segment that connects two vertices. Region region is each individual area or separate piece of the plane that

More information

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points MC 0 GRAPH THEORY 0// Solutions to HW # 0 points + XC points ) [CH] p.,..7. This problem introduces an important class of graphs called the hypercubes or k-cubes, Q, Q, Q, etc. I suggest that before you

More information

CIS-331 Exam 2 Fall 2015 Total of 105 Points Version 1

CIS-331 Exam 2 Fall 2015 Total of 105 Points Version 1 Version 1 1. (20 Points) Given the class A network address 117.0.0.0 will be divided into multiple subnets. a. (5 Points) How many bits will be necessary to address 4,000 subnets? b. (5 Points) What is

More information

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. An Introduction to Graph Theory

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. An Introduction to Graph Theory SCHOOL OF ENGINEERING & BUILT ENVIRONMENT Mathematics An Introduction to Graph Theory. Introduction. Definitions.. Vertices and Edges... The Handshaking Lemma.. Connected Graphs... Cut-Points and Bridges.

More information

Varying Applications (examples)

Varying Applications (examples) Graph Theory Varying Applications (examples) Computer networks Distinguish between two chemical compounds with the same molecular formula but different structures Solve shortest path problems between cities

More information

1. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G))

1. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G)) 10 Graphs 10.1 Graphs and Graph Models 1. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G)) 2. an edge is present, say e = {u,

More information

Introduction to Graph Theory. A problem to solve. A problem to solve. A problem to solve. Notes. Notes. Notes. Notes. Dr. James Burk.

Introduction to Graph Theory. A problem to solve. A problem to solve. A problem to solve. Notes. Notes. Notes. Notes. Dr. James Burk. Course: Math 400: {Graph Theory} Office: Science Building 106 Email: jlburk@harding.edu Fall 2016 A problem to solve A map of Searcy... A problem to solve A UPS driver has ten stops to make... A problem

More information

CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS

CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS 1 UNIT I INTRODUCTION CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS 1. Define Graph. A graph G = (V, E) consists

More information

EECS 203 Lecture 20. More Graphs

EECS 203 Lecture 20. More Graphs EECS 203 Lecture 20 More Graphs Admin stuffs Last homework due today Office hour changes starting Friday (also in Piazza) Friday 6/17: 2-5 Mark in his office. Sunday 6/19: 2-5 Jasmine in the UGLI. Monday

More information

Basics of Graph Theory

Basics of Graph Theory Basics of Graph Theory 1 Basic notions A simple graph G = (V, E) consists of V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements of V called edges. Simple graphs have their

More information