Binary Search Tree: GATE CS Previous Year Questions

Binary Search Tree · Data Structures

32 questions · asked in 17 of 27 years (2000–2026)

MCQ 26 · MSQ 2 · NAT 41-mark 20 · 2-mark 12

2000Questions per year2026

Questions 31–32 of 32

Q31GATE 20031 markMCQ−0.33 if wrong
Suppose the numbers 7, 5, 1, 8, 3, 6, 0, 9, 4, 2 are inserted in that order into an initially empty binary search tree. The binary search tree uses the usual ordering on natural numbers. What is the inorder transversal sequence of the resultant tree ?

Q32GATE 20031 markMCQ−0.33 if wrong
Let T(n) be the number of different binary search trees on n distinct elements.
Then T(n)=∑k=1nT(k−1)T(x)T(n)=\sum_{k=1}^{n}T(k-1)T(x),
where xx is

Keep practising

Topics in Data Structures

All CS topics ›