Comparing MST Algorithms (Edexcel A-Level Further Mathematics): Flashcards
📚Flashcards
Practise the cards
10 cards from this deck
ShowHide
Practise the cards
10 cards from this deck
Minimum spanning tree (MST) definition
Minimum spanning tree (MST) definition
A subset of edges connecting all vertices with minimum total weight and no cycles
Prim's algorithm approach
Prim's algorithm approach
Grows connected MST from single vertex
Kruskal's algorithm approach
Kruskal's algorithm approach
Adds smallest edges, ensuring no cycles
Graph representation for Prim's
Graph representation for Prim's
Works well with adjacency matrices
Graph representation for Kruskal's
Graph representation for Kruskal's
Works well with edge lists
Prim's time complexity (adjacency matrix)
Prim's time complexity (adjacency matrix)
Kruskal's time complexity
Kruskal's time complexity
Best use case for Prim's
Best use case for Prim's
Dense graphs or pre-sorted weight matrices
Best use case for Kruskal's
Best use case for Kruskal's
Sparse graphs or edge-heavy graphs
Cycle detection in Kruskal's
Cycle detection in Kruskal's
Explicit (uses disjoint sets/union-find)
