MCQ
Single Best Answer
Easy
QWhat is the time complexity of the union operation in a disjoint-set data structure with path compression?
ID: #21518
Time Complexity
78 views
Question Info
#21518Q ID
EasyDifficulty
Time ComplexityTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option B
Explanation
The union operation in a disjoint-set with path compression has a time complexity of O(log N), where N is the number of elements.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic