Question

In: Computer Science

what is the differance between minimum-weight spanning tree and heuristic spanning tree?

what is the differance between minimum-weight spanning tree and heuristic spanning tree?

Solutions

Expert Solution

Minimum-weight spanning tree is a tree in a graph that spans all the vertices and total weight of a tree is minimal.

In mathematical programming, a heuristic method or heuristic for short is a procedure that determines good or near-optimal solutions to an optimization problem. As opposed to exact methods, heuristics carry no guarantee that an optimal solution will be found. Practically, for many realistic optimization problems good solutions can be found efficiently, and heuristics are typically among the best strategies in terms of efficiency and solution quality for problems of realistic size and complexity. Heuristics can be classified as either constructive (greedy) or as local search heuristics. The former are typically one-pass algorithms whereas the latter are strategies of iterative improvement.

Prim’s and Kruskal’s algorithms for the minimum spanning tree problem are heuristic algorithms. The first heuristic algorithm for the minimum-weight spanning tree problem is based on Kruskal’s algorithm and is a greedy algorithm. Given a set of objects, the greedy algorithm attempts to find a feasible subset with minimum objective value by repeatedly choosing an object of minimum cost/weight among the unchosen ones and adding it to the current subset provided that the resulting subset is feasible. In particular, the heuristic algorithm for the problem based on Kruskal’s algorithm, works by repeatedly choosing an edge of minimum cost among the edges not chosen so far and adding this edge to the “current generalized spanning forest” i.e. a forest that spanns a subset of nodes which includes at most one node from each cluster. Whenever an edge is selected all the nodes from the clusters that contain the end nodes of that edge are deleted. The algorithm terminates when the current generalized spanning forest becomes connected.


Related Solutions

Prove that Kruskal’s algorithm finds a minimum weight spanning tree.
Prove that Kruskal’s algorithm finds a minimum weight spanning tree.
One of the basic motivations behind the Minimum Spanning Tree Problem is the goal of designing...
One of the basic motivations behind the Minimum Spanning Tree Problem is the goal of designing a spanning network for a set of nodes with minimum total cost. Here we explore another type of objective: designing a spanning network for which the most expensive edge is as cheap as possible. Specifically, let G = (V, E) be a connected graph with n vertices, m edges, and positive edges costs that are all distinct. Let T = (V, E0 ) be...
Java programming Trace the algorithm for minimum spanning tree (eager, lazy Prim algorithm)
Java programming Trace the algorithm for minimum spanning tree (eager, lazy Prim algorithm)
Give the entire code for Minimum spanning tree using Boruvka's algorithm in java (not copy-pasted from...
Give the entire code for Minimum spanning tree using Boruvka's algorithm in java (not copy-pasted from any other website)
minimum spanning tree: find a connected subgraph whose total edge cost is minimized (python code)
minimum spanning tree: find a connected subgraph whose total edge cost is minimized (python code)
Consider the Minimum Spanning Tree Problem on an undirected graph G=(V,E), with a cost ce ≥0...
Consider the Minimum Spanning Tree Problem on an undirected graph G=(V,E), with a cost ce ≥0 on each edge, where the costs may not all be different. If the costs are not all distinct, there can in general be many distinct minimum-cost solutions. Suppose we are given a spanning tree T ⊆ E with the guarantee that for every e ∈ T, e belongs to some minimum-cost spanning tree in G. Can we conclude that T itself must be a...
Suppose T is a minimal spanning tree found by Prim’s algorithm in a connected graph G....
Suppose T is a minimal spanning tree found by Prim’s algorithm in a connected graph G. (i) Show that either T contains the n-1 smallest edges, or the n-1 smallest edges form a subgraph which contains a cycle. (ii) Show that if an edge (a, b) is not in T and if P is the unique path in T from a to b, then for each edge e in P the weight of e is less than the weight of...
Show that a breadth-first spanning tree contains the shortest paths be- tween the root to every...
Show that a breadth-first spanning tree contains the shortest paths be- tween the root to every other vertex.
​Define a tree. Distinguish between a tree and a binary tree. Distinguish between a binary tree and a binary search tree.
Define a tree. Distinguish between a tree and a binary tree. Distinguish between a binary tree and a binary search tree.
What is the minimum number of nodes in a red-black tree of height 8?
What is the minimum number of nodes in a red-black tree of height 8?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT