ЁЯУв Too many exams? DonтАЩt know which one suits you best? Book Your Free Expert ЁЯСЙ call Now!


    Question

    Union-Find with Path Compression achieves

    nearly:
    A O(1) per operation Correct Answer Incorrect Answer
    B O(log n) Correct Answer Incorrect Answer
    C O(n) Correct Answer Incorrect Answer
    D O(тИЪn) Correct Answer Incorrect Answer
    E O(log log n) Correct Answer Incorrect Answer

    Solution

    Amortized time per operation ~ O(╬▒(n)), almost constant.

    Practice Next
    More Data Structure Questions
    ask-question