




































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





































6 1 5 4 8 7 6 7 12 2 1 9 3
6 1 5 4 8 7 6 7 12 2 1 9 3 There is a cycle in this graph. It can’t be the cheapest way to link everything. There is a cycle in this graph. It can’t be the cheapest way to link everything.
Applications ●
●
●
●
●
Shortest-Path Trees and MSTs ● Last time, we saw how Dijkstra's algorithm and A* search can be used to find shortest path trees in a graph. ● Note that a shortest-path tree might not be an MST and vice-versa. 5 3 2 1
★
Maintaining Connectivity ●
●
● Initially, each node is in its own cluster. ● Whenever an edge is added, the clusters for the endpoints are merged together into a new cluster.
Final Exam Logistics ●
th
●