Minimum Spanning Trees and Prim’s Algorithm (AQA A-Level Further Maths): Flashcards

📚Flashcards
Minimum Spanning Trees and Prim's Algorithm
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

10 cards from this deck

Show

Minimum spanning tree definition

Connected subgraph, all vertices, min weight, no cycles, n1n-1 edges

Edges in MST for nn vertices

n1n-1 edges

Type of algorithm Prim's is

Greedy algorithm

What greedy means in Prim's

Makes locally optimal choice, picks smallest weight arc available

How Prim's avoids forming cycles

Only considers arcs from connected to unconnected vertices

Starting point for Prim's algorithm

Select any vertex

Prim's matrix: what to do with chosen vertex row/column

Cross out row, number column

Prim's matrix: what value to circle

Minimum undeleted weight in numbered columns

Handling equal minimum weights in Prim's

Choose any at random; same total weight, different valid MSTs

Prim's vs Kruskal's growth pattern

Prim's grows one tree; Kruskal's builds multiple fragments

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.