Comparing MST Algorithms (Edexcel A-Level Further Mathematics): Flashcards

📚Flashcards
Comparing MST Algorithms
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 (MST) definition

A subset of edges connecting all vertices with minimum total weight and no cycles

Prim's algorithm approach

Grows connected MST from single vertex

Kruskal's algorithm approach

Adds smallest edges, ensuring no cycles

Graph representation for Prim's

Works well with adjacency matrices

Graph representation for Kruskal's

Works well with edge lists

Prim's time complexity (adjacency matrix)

O(v2)O(v^2)

Kruskal's time complexity

O(eloge)O(e log e)

Best use case for Prim's

Dense graphs or pre-sorted weight matrices

Best use case for Kruskal's

Sparse graphs or edge-heavy graphs

Cycle detection in Kruskal's

Explicit (uses disjoint sets/union-find)

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

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