Minimum Spanning Trees (Edexcel A-Level Further Mathematics): Flashcards

📚Flashcards
Kruskal'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

What does Kruskal's algorithm find?

A minimum spanning tree (MST) of a connected, weighted graph

What is a minimum spanning tree (MST)?

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

What is the first step in Kruskal's algorithm?

Sort all edges in ascending order by weight

Number of edges in MST for vv vertices

v1v-1 edges

Cycle checking method in Kruskal's algorithm

Disjoint sets (union-find)

Time complexity for sorting edges in Kruskal's

O(eloge)O(e \log e) where ee is the number of edges

Overall time complexity of Kruskal's algorithm

O(eloge+elogv)O(e \log e + e \log v)

Space complexity of Kruskal's algorithm

O(v)O(v) for union-find structures

What type of graph does Kruskal's algorithm require?

Connected graphs (otherwise gives spanning forest)

When can multiple MSTs exist?

When edge weights are not distinct

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

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