Professional Documents
Culture Documents
Edge Picking Algorithm
Edge Picking Algorithm
Solution:
The edge of next smallest The next smallest weight is 5, which appears There are two edges of weight 6 (the next
weight is AD with weight 4. twice, with edges AE and FB. We can mark both of them. smallest weight), BC and EC. We cannot
use BC because it would add a third marked
edge to vertex B. We mark edge EC.
We are now at step 3 of the algorithm; any edge we mark will
either complete a circuit or add a third edge to a vertex. So we
mark the final edge to complete the Hamiltonian circuit, edge FC.
Exercises:
Use the edge-picking algorithm to find a Hamiltonian circuit in the following weighted
graph shown below.
A. B.