Back to Browse

The Greedy Algorithm

12.7K views
Mar 1, 2021
11:50

Mathematics of Graphs: Finding Hamiltonian Circuit in a Weighted Graph A method of finding a Hamiltonian circuit in a complete weighted graph is given by the following greedy algorithm: • Choose a vertex to start at, then travel along the connected edge that has the smallest weight. (If two or more edges have the same weight, pick any one.) • After arriving at the next vertex, travel along the edge of smallest weight that connects to a vertex not yet visited. Continue this process until you have visited all vertices. • Return to the starting vertex. The greedy algorithm attempts to give a circuit of minimal total weight, although it does not always succeed.

Download

1 formats

Video Formats

360pmp414.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

The Greedy Algorithm | NatokHD