Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 584 Bytes

minimum-spanning-tree.md

File metadata and controls

9 lines (5 loc) · 584 Bytes

Minimum Spanning Tree

In electrical circuit design, usually there are several components need to be connected by their pins. Hopefully, using n-1 wires could connect n pins and with the total length of wires the least. In other words, a acyclic connected component is to be found from an undirected graph, resulting in a Minimum Spanning Tree in the end.

Generally, there are two types of algorithms try to solve the problem and in two distinct ways, both employ the concept of greedy algorithms

Kruskal's Algorithm

Prim's Algorithm