1. MST
It's found by using Prim's/Kruskal's Algorithm here I used Kruskal's which goes as follows, and it avoids cycles.
The edge with lowest weight is taken first and vice verse
CD - 8
CB - 9
AE - 10
Here BD is 11 but forms a cycle hence next least is taken
BA - 24
Now we've our MST
2. Odd degree vertices are taken and joined to form the min-cost perfect matching. This edge is added to the MST.
3. Eulerian Cycle suggests that we should take a cycle which visits each edge exactly once. Here, if we start from A, all the edges can be visited. Starting from C as well gives the same result.
4. Shortcuts are done when there is a repetition of a vertex in Eulerian cycle. We don't have any hence no shortcurts.
Hamiltonian cycle is formed where starting from C visits every vertex exactly once and comes back to starting point which is the end now. The length is 79.
Comment for any clarifications!
#4. TSP b) Solve with Christofides approx. algorithm. Note: you can assume weights of edges: w(C,E)...
#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:
b) Solve with Christofides approx. algorithm. Note: you can assume weights of edges: w(C,E) = 36 and w(C,A)=33 A 24 1) Find MST 2) Find min-cost perfect matching 3) Find Eulerian cycle 4) Do shortcuts (show steps here] 9 Il C 30 25 8 E 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:
File Edit Format View Help Graphs and trees 4. [6 marks] Using the following graph representation (G(V,E,w)): v a,b,c,d,e,f E fa,b), (a,f),fa,d), (b,e), (b,d), (c,f),(c,d),(d,e),d,f)) W(a,b) 4,W(a,f) 9,W(a,d) 10 W(b,e) 12,W(b,d) 7,W(c,d) 3 a) Draw the graph including weights. b) Given the following algorithm for Inding a minimum spanning tree for a graph: Given a graph (G(V,E)) create a new graph (F) with nodes (V) and no edges Add all the edges (E) to a set S and order them...
Explain ur working
4. [6 marks] Using the following graph representation (G(VE,w)): V a, b,c, d,e, fh E -la, b, [a, fl,la,d, (b,ej, [b,d, c,fl,fc,d],Id,el, sd, f) W(a, b) 4, W(a, f)-9, W(a, d)-10 W(b, e) 12, W (b, d)7, W(c,d) 3 a) [3 marks] Draw the graph including weights. b) [2 + 1-3 marks] Given the following algorithm for finding a minimum spanning tree for a graph: Given a graph (G(V,E)) create a new graph (F) vith nodes (V)...