MediumUnderstandGraphsMultiple Choice

What does path compression do to the amortized complexity of Union-Find?

Understand Tests comprehension and ability to explain concepts.

Answer Options

AMakes it O(1) worst case
BMakes it O(log n) amortized
CMakes it O(α(n)) amortized
DMakes it O(log log n) amortized

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 33+ more Graphs questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Graphs topic (Algorithms).

More Graphs Questions