Minimum Spanning Trees and Prim’s Algorithm (AQA A-Level Further Maths): Flashcards
📚Flashcards
Practise the cards
10 cards from this deck
ShowHide
Practise the cards
10 cards from this deck
Minimum spanning tree definition
Minimum spanning tree definition
Connected subgraph, all vertices, min weight, no cycles, edges
Edges in MST for vertices
Edges in MST for vertices
edges
Type of algorithm Prim's is
Type of algorithm Prim's is
Greedy algorithm
What greedy means in Prim's
What greedy means in Prim's
Makes locally optimal choice, picks smallest weight arc available
How Prim's avoids forming cycles
How Prim's avoids forming cycles
Only considers arcs from connected to unconnected vertices
Starting point for Prim's algorithm
Starting point for Prim's algorithm
Select any vertex
Prim's matrix: what to do with chosen vertex row/column
Prim's matrix: what to do with chosen vertex row/column
Cross out row, number column
Prim's matrix: what value to circle
Prim's matrix: what value to circle
Minimum undeleted weight in numbered columns
Handling equal minimum weights in Prim's
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 vs Kruskal's growth pattern
Prim's grows one tree; Kruskal's builds multiple fragments
