Minimum Spanning Trees (Kruskal & Prim Algorithms) (Leaving Cert Applied Maths): Flashcards

📚Flashcards
Minimum Spanning Trees (Kruskal & Prim Algorithms)
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

13 cards from this deck

Show

What is a minimum spanning tree (MST)?

Connects all vertices w/ smallest total edge weight

No. of edges in MST with nn vertices

n1n-1 edges

MST cycle property

Contains no cycles

Kruskal's algorithm approach

Considers edges in ascending weight order, avoids cycles

Kruskal's first step

List all edges in ascending order of weight

Kruskal's & Prim's algorithm type

Greedy algorithms

Prim's algorithm approach

Grows tree from starting vertex, adds cheapest edge to new vertex

Prim's starting vertex flexibility

Can start from any vertex

Kruskal's approach (global/local)

Global - considers all edges at once

Prim's approach (global/local)

Local - grows from one starting point

When is an MST unique?

When all edge weights are distinct

Kruskal's cycle detection rule

Skip if both vertices already connected

Best graph type for Kruskal's

Sparse graphs (few edges)

Explore Leaving Cert Applied Maths Revision Notes by Topics

Explore Leaving Cert Applied Maths Model Answers by Topics

Explore Leaving Cert Applied Maths Quizzes by Topics

Explore Leaving Cert Applied Maths Exam Questions by Topics

Join 100,000+ Leaving Cert students studying Flashcards with us.

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