algorithm-notes
  • Preface
  • Outline
    • Asymptotic-Analysis
    • Divide-and-Conquer (DnC)
      • Overview
      • Multiplication
      • DnC Strategy
      • Master Method
    • Randomization
      • Overview
      • Discrete Probability
      • Randomized Algorithms
      • Reservoir Sampling
    • Sorting
      • Overview
      • Selection Sort
      • Bubble Sort
      • Insertion Sort
      • Shell Sort
      • Merge Sort
      • Heap Sort
      • Quick Sort
      • Non-Comparison Sort
    • Graph Algorithms
      • Overview
      • Minimum Spanning Tree
      • Shortest Path
      • Topological Sort
    • Tree
      • Overview
      • Balanced Search Tree
        • AVL Tree
        • Red-Black Tree
        • B Tree
      • Heap
      • Disjoint Set
      • Threaded Binary Tree
      • Segment Tree
    • Searching
      • Overview
      • Binary Search
      • Graph Search
      • Hash Table
      • String Search
    • Dynamic Programming
      • Overview
      • Fibonacci Numbers
      • LCS problem
    • Greedy Algorithms
      • Overview
Powered by GitBook
On this page
  • Kruskal's Algorithm
  • Prim's Algorithm

Was this helpful?

  1. Outline
  2. Graph Algorithms

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

PreviousOverviewNextShortest Path

Last updated 6 years ago

Was this helpful?