Trivia ForgePlay free →

Which greedy algorithm finds the Minimum Spanning Tree of a graph by always adding the cheapest edge that does not form a cycle?

Show answer

Kruskal's algorithm

Kruskal's algorithm treats the graph as a forest and merges trees using the minimum weight edge. It typically uses a Disjoint Set Union data structure to detect cycles efficiently.

Also asked as:
  • Which greedy MST algorithm functions by adding the lowest-weight edge that doesn't create a cycle?

Would you remember this in 6 months?

Trivia Forge uses spaced repetition so facts stick. Free, no signup needed.

Turn on Algorithms practice →

More Algorithms trivia

See all 83 →