recategorized by
5,502 views
1 votes
1 votes

Which of the following can be the sequence of nodes examined in binary search tree while searching for key $88$?

  1. $90, 40, 65, 50, 88$
  2. $90, 110, 80, 85, 88$ 
  3. $190, 60, 90, 85, 88$ 
  4. $65, 140, 80, 70, 88$
recategorized by

1 Answer

1 votes
1 votes

Answer: C

If root node is 190, in order to find 88 we need to traverse the left sub-tree because in the right sub-tree every element will be greater than 190.

Now 88 is greater than 60, so we go to right where we find 90 which is greater than 88, so now we traverse left sub-tree of 90. We find 85 which is less than 88, so we go right and find our key 88.

Related questions

7 votes
7 votes
2 answers
2
makhdoom ghaya asked Sep 8, 2016
2,223 views
Which of the following file transfer protocols use $TCP$ and establishes two virtual circuits between the local and remote server ?$FTP$$TFTP$ $TELNET$$NFS$
0 votes
0 votes
1 answer
3
makhdoom ghaya asked Sep 8, 2016
4,925 views
How much bandwidth is there in $1$ micron of spectrum at a wavelength of $1$ micron ?$300$ MHz$3$ GHz$300$ THz$30$ KHz
1 votes
1 votes
2 answers
4
makhdoom ghaya asked Sep 8, 2016
2,982 views
The baud rate isAlways equal to the bit transfer rateEqual to twice the bandwidth of an ideal channelNot equal to the signalling rateEqual to half of the bandwidth of an ...