1. What is the definition of a safe edge for the minimum spanning tree algorithm?
2. Give an example graph with 4 nodes and 5 edges with exactly three strongly connected components.
3. What is the running time of the Kruskal spanning tree algorithm on a graph with n nodes and n log n edges?
1)
A safe edge is am edge that may be added to a tree T without violating the invariant that T is a subset of some minimum spanning tree.
2)

3)
Kruskal Algorithm runs in O(E log V) time.
In this case, E = log n and V = n
Hence, total running time = O(log2n)
1. What is the definition of a safe edge for the minimum spanning tree algorithm? 2....
You are given an undirected graph G with weighted edges and a minimum spanning tree T of G. Design an algorithm to update the minimum spanning tree when the weight of a single edge is increased. The input to your algorithm should be the edge e and its new weight: your algorithm should modify T so that it is still a MST. Analyze the running time of your algorithm and prove its correctness.
You are given an undirected graph G with weighted edges and a minimum spanning tree T of G. Design an algorithm to update the minimum spanning tree when the weight of a single edge is decreased. The input to your algorithm should be the edge e and its new weight; your algorithm should modify T so that it is still a MST. Analyze the running time of your algorithm and prove its correctness.
What is an example of an application of a graph, in which the minimum spanning tree would be of importance. Describe what the vertices, edges and edge weights of the graph represent. Explain why finding a minimum spanning tree for such a graph would be important.
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...
C++ programing question22
Minimum spanning tree
Time limit: 1 second
Problem Description
For a connected undirected graph G = (V, E), edge e corresponds to
a weight w, a minimum weight spaning tree can be found on the
graph.
Into trees.
Input file format
At the beginning, there will be a positive integer T, which means
that there will be T input data.
The first line of each input has two positive integers n,m,
representing n points and m edges...
Use Kruskals Algorithm to find the minimum spanning tree for the weighted graph. Give the total weight of the minimum spanning tree. What is the total weight of the minimum spanning tree? The total weight is _______
Suppose you are given a connected graph G, with edge costs that you may assume are all distinct. G has n vertices and m edges. A particular edge e of G is specified. Give an algorithm with running time O(m + n) to decide whether e is contained in a minimum spanning tree of G.
For minimum spanning tree (MST) construction, Kruskal’s algorithm selects an edge. a) with maximum number of vertices connected to it b) with minimum weight so that cost of MST is always minimum c) that does not introduce a cycle d) none of the above
7. MINIMUM WEIGHT SPANNING TREES (a) Use Kruskal's algorithm to find a minimum weight spanning tree. What is the total cost of this spanning tree?(b) The graph below represents the cost in thousands of dollars to connect nearby towns with high speed, fiber optic cable. Use Kruskal's algorithm to find a minimum weight spanning tree. What is the total cost of this spanning tree?
Problem definition: Give the program that implement Prim’s algorithm. Input: First line is N, denotes the amount of test case, then there are Ns graph data with an option number (determine whether output the selected edges or not). Each graph is undirected and connected, it is composed of V (the number of vertices, <= 1000), E (the number of edges, <=10000), then followed by Es edges which are denoted by pair of vertex and weight (e.g., 2 4 10 means...