Question: 5. Let G = (V,E) be a weighted directed graph. Design an algorithm to find a cycle in G of minimum weight. The algorithm

5. Let G = (V,E) be a weighted directed graph. Design an algorithm to find a cycle in G of minimum weight. The algorithm should run in O(n) time. (20 points) 1 6. Let G = (V,E) be a weighted undirected graph, and let F be a subgraph of G that is a forest. Design an efficient algorithm to find a spanning tree in G that contains all the edges of F, and that has the minimum cost among all spanning trees containing F. (20 points)
Step by Step Solution
There are 3 Steps involved in it
5 To find a cycle in a weighted directed graph G of minimum weight that runs in On time you can use the BellmanFord algorithm Here is the algorithm to ... View full answer
Get step-by-step solutions from verified subject matter experts
