1
GATE CSE 2026 Set 2
MCQ (More than One Correct Answer)
+2
-0

Consider a binary search tree (BST) with $n$ leaf nodes ( $n>0$ ). Given any node $V$, the key present in the node is denoted as $\operatorname{Val}(V)$. All the keys present in the given BST are distinct. The keys belong to the set of real numbers.

For a node $V$, let $\operatorname{Suc}(V)$ denote the node that is its inorder successor. If a node $V$ does not have an inorder successor, then $\operatorname{Suc}(V)$ is NULL. As there are no duplicates, if $\operatorname{Suc}(V)$ is not NULL, then $\operatorname{Val}(V)<\operatorname{Val}(\operatorname{Suc}(V))$.

Corresponding to every leaf node $L_i$ that has a non-NULL $\operatorname{Suc}\left(L_i\right)$, a new key $k_i$ with the following property is to be inserted into the BST.

$$ \operatorname{Val}\left(L_i\right) < k_i < \operatorname{Val}\left(\operatorname{Suc}\left(L_i\right)\right) $$

Let $K$ represent the list of all such new keys to be inserted into the BST.

Which of the following statements is/are true?

A

$K$ cannot have any duplicates

B

$K$ will have at least one element

C

After inserting all keys from $K$, the height of the BST can increase at most by one

D

Number of nodes in the BST will double after inserting all keys from $K$

2
GATE CSE 2026 Set 1
MCQ (Single Correct Answer)
+2
-0

Let $P$ be the set of all integers from 1 to 15 . Consider any order of insertion of the elements of $P$ into a binary search tree that creates a complete binary tree. Which one of the following elements can NEVER be the third element that is inserted?

GATE CSE 2026 Set 1 Data Structures - Trees Question 1 English
A

4

B

2

C

10

D

5

3
GATE CSE 2026 Set 1
Numerical
+2
-0

The following sequence corresponds to the preorder traversal of a binary search tree:

$$ 50,25,13,40,30,47,75,60,70,80,77 $$

The position of the element 60 in the postorder traversal of $T$ is $\_\_\_\_$ . (answer in integer)

Note: The position begins with 1.

Your input ____
4
GATE CSE 2025 Set 2
MCQ (Single Correct Answer)
+2
-0.67

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?

A
P: $\Theta(1), \mathrm{Q}: \Theta(n), \mathrm{R}: \Theta(n)$
B
$\mathrm{P}: \Theta(1), \mathrm{Q}: \Theta(n \log n), \mathrm{R}: \Theta(n)$
C
$\mathrm{P}: \Theta(n), \mathrm{Q}: \Theta(n \log n), \mathrm{R}: \Theta\left(n^2\right)$
D
$\mathrm{P}: \Theta(1), \mathrm{Q}: \Theta(n), \mathrm{R}: \Theta(n \log n)$

GATE CSE Subjects

Browse all chapters by subject

Software Engineering
Web Technologies