What is the worst case efficiency for a path compression algorithm?

PYQ Accenture 2024

What is the worst case efficiency for a path compression algorithm?

  1. A.

    O(M log N)

  2. B.

    O(N log N)

  3. C.

    O(log N)

  4. D.

    O(N)

Attempted by 130 students.

Sign up free to check your answer

Sign up free

Explore the full course: Accenture Preparation

Loading lesson…