5. (10 points) Solve TSP (Travelling Salesman Problem) for the following graph using 2-MST (Minimum Spanning...
#4. TSP a) Solve with 2 MST approx. algorithm. Note: you can assume weights of edges: (CE) = 36 and w(C,A)=33 А B 24 1) Find MST 2) Double MST 3) Find Eulerian cycle 4) Do shortcuts (show steps here) 10 11 С. 30 25 8 E 28 Report the resulting Hamiltonian cycle and its length:
3. In this problem, you will show the execution of the minimum spanning tree algorithms that you studied in class on the following graph: START 10 40 5 20 35 15 6 30 62 12 (a) (5 points) Trace the execution of Prim's algorithm to find the minimum spanning tree for this graph. At each step, you should show the vertex and the edge added to the tree and the resulting values of D after the relaxation operation. Use START...
Question II - Graph Traversal and Minimum Spanning Trees [40 Points] Consider the following graph: B 10 1 4 1 H 9 4 a) Traverse the graph starting from vertex A, and using the Breadth-First Search algorithm. Show the traversal result and the data structure you are using. [10 Points] b) Traverse the graph starting from vertex A, and using the Depth-First Search (Post-order) algorithm. Show the traversal result and the data structure you are using. [10 Points] c) Apply...
Given a graph below draw MST in BOLD using either Kruskal's or Prim's algorithm. How many edges are in MST? _ What is the length of MST? _ What are the neighbors in the minimum spanning tree (MST) of the node a _ and the node f _
#4. TSP b) Solve with Christofides approx. algorithm. Note: you can assume weights of edges: w(C,E) = 36 and w(CA)=33 1) Find MST A B 2) Find min-cost perfect matching 24 3) Find Eulerian cycle 9 4) Do shortcuts (show steps here) lol 25 с 30 8 28 Report the resulting Hamiltonian cycle and its length:
a) Solve with 2 MST approx. algorithm. Note: you can assume weights of edges: w(C,E) = 36 and w(C,A)=33 A B 24 1) Find MST 2) Double MST 3) Find Eulerian cycle 4) Do shortcuts (show steps here) 9 lol 11 30 25 8 E 28 Report the resulting Hamiltonian cycle and its length:
1. Use Prim's algorithm to solve the minimum weight spanning tree problem for the following graph.2. Use Kruskal's algorithm to solve the minimum weight spanning tree problem for the following graph.
Problem A: Consider the following graph. (a). Find a minimum spanning tree of the graph using Kruskal's algorithm. List the edges in the order they are put into the tree. (b). Apply Prim's algorithm to the same graph starting with node A. List the edges, in order added to the MST. (c). Suppose the cost of every edge touching node A is increased by a constant. Are we guaranteed that the MST remains the MST? Explain.
(b) Solve the Travelling Salesman Problem for graph (b) shown below. Graph for (a) Postman Problem Graph for (b) Travelling Salesman Problem 30 | 10 \10 15 120 ta d 20 c d 8 C
Problem 3: Bounded-Degree Spanning Trees (10 points). Recall the minimum spanning tree problem studied in class. We define a variant of the problem in which we are no longer concerned with the total cost of the spanning tree, but rather with the maximum degree of any vertex in the tree. Formally, given an undirected graph G = (V,E) and T ⊆ E, we say T is a k-degree spanning tree of G if T is a spanning tree of G,...