GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2025 set2

GATE 2025 set2 · CS · MCQ · 2 marks · Programming and Data Structures › Heaps

GATE 2025 set2 Computer Science and Information Technology question: A meld operation on two instances of a data structure combines them into one single…

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?

  1. (A)

    P: , Q: , R:

  2. (B)

    P: , Q: , R:

  3. (C)

    P: , Q: , R:

  4. (D)

    P: , Q: , R:

Show answer

Official answer: A

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion