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 \(n\) of these data structures?
- AP: \(\Theta(1)\), Q: \(\Theta(n)\), R: \(\Theta(n)\)
- BP: \(\Theta(1)\), Q: \(\Theta(n \log n)\), R: \(\Theta(n)\)
- CP: \(\Theta(n)\), Q: \(\Theta(n \log n)\), R: \(\Theta(n^2)\)
- DP: \(\Theta(1)\), Q: \(\Theta(n)\), R: \(\Theta(n \log n)\)