Cheapest Link and Kruskal's AlgorithmsThe Cheapest-Link and Kruskal's are similar algoritms that perform dissimilar tasks on weighted graphs. A weighted graph is a graph whose edges have been assigned numbers - their weights. Any weighted graph, in particular, a subgraph of a weighted graph, is also assigned weight - the sum of weights of all its edges. The Cheapest-Link Algorithm
Kruskal's Algorithm
The Cheapest-Link algorithm leads to a Hamilton circuit, if any exists. Kruskal's algorithm always leads to a minimum spanning tree of the given graph. A graph is a tree if (1) it's connected and (2) it has no circuits. A spanning tree of a graph is any of its subgraphs that contains all its vertices and is also a tree. A minimum spanning tree has the least weight among all spanning trees of the given graph. (In the examples below, always click on the cheapest remaining unmarked edge.)
|Activities| |Contact| |Front page| |Contents| |Games| |Store| Copyright © 1996-2012 Alexander Bogomolny |
| 40607964 |

