Data Structures & Algorithms Notes Page

A spanning tree that connects all the verticies of the graph
The weight of the tree is the sum of weights of edges in said tree
In this case, the spanning tree’s weight is 42
This is a Unique MST since the edge weights are all different
Idea:
A safe edge is an edge that we can safely add to the MST without messing anything up (like forming a cycle of missing a better option)
It’s “Safe” cause:
How to know if an edge is safe:
