A meld operation on two instances of a data structure combines them into one single instance of the same data structure. Consider the following data structures:
P: Unsorted doubly linked list with pointers to the head node and tail node of the list.
Q: Min-heap implemented using an array.
R: Binary Search Tree.
Which ONE of the following options gives the worst-case time complexities for meld operation on instances of size π of these data structures?
P: Ξ(1), Q: Ξ(π), R: Ξ(π)
P: Ξ(1), Q: Ξ(π log π), R: Ξ(π)
P: Ξ(π), Q: Ξ(π log π), R: Ξ(π 2 )
P: Ξ(1), Q: Ξ(π), R: Ξ(π log π)
This question is part of this quiz :
GATE CS 2025 | Set 2,Data Structures GATE CS PYQ QUIZ,Algorithms GATE CS PYQ Quiz,Complexity Analysis GATE CS PYQ Quiz