Math 2.0

Combinatorics Concept

Prim's algorithm

Summary

Prim's algorithm finds a minimum spanning tree of a connected graph with weighted edges. It grows a single tree from a start vertex, adding at each step the lightest edge that joins the tree to a vertex outside it. It is a greedy algorithm, and with a binary heap it runs in time O(mlog⁡n)O(m \log n) on nn vertices and mm edges.

Where this leads

1 page builds on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Prim%27s_algorithm
About this page
TagZAKCAS4GC7
URIm2://ZAKCAS4GC7
Kindconcept
WritingW0 stub
MSC05C85, 05C05, 90C27
SpecializesGreedy algorithm
Same as
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

Used by

Definitions