GATE IT 2008 · Arrays & Matrix Representation

MCQ · 2 marks · Problem PROG-DSTR-0187

A Binary Search Tree (BST) stores values in the range 37 to 573. Consider the following sequence of keys.I. 81,537,102,439,285,376,305II. 52,97,121,195,242,381,472III. 142,248,520,386,345,270,307IV. 550,149,507,395,463,402,270Suppose the BST has been unsuccessfully searched for key 273. Which all of the above sequences list nodes in the order in which we could have encountered them in the search?
  1. A
    II and III only
  2. B
    I and III only
  3. C
    III and IV only
  4. D
    III only

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/3385/gate2008-it-71

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com