OBI Practice Questions - Olimpíada Brasileira De Informática Exam

Access More Questions
When implementing a Disjoint Set Union (DSU / Union-Find) data structure with both path compression and union by rank (or size), what is the amortized time complexity per find/union operation?
Correct Answer:
O(alpha(N)) amortized time per operation, where alpha is the extremely slow-growing inverse Ackermann function

Access more questions from this quiz

Continue to OBI Practice Questions - Olimpíada Brasileira de Informática Exam for more practice questions and the full quiz experience.

Access More Questions