recategorized by
6,051 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

1.3k
views
2 answers
0 votes
makhdoom ghaya asked Sep 8, 2016
1,294 views
The threshold effect in demodulator isExhibited by all demodulator, when the input signal to noise ratio is low.The rapid fall on output signal ... .M. suppressed carrier coherent demodulator.The property exhibited by correlation receiver.
2.3k
views
2 answers
7 votes
makhdoom ghaya asked Sep 8, 2016
2,332 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$
5.1k
views
1 answers
0 votes
makhdoom ghaya asked Sep 8, 2016
5,050 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
3.1k
views
2 answers
1 votes
makhdoom ghaya asked Sep 8, 2016
3,099 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 ideal channel