Vidyalelo
Data Structure · all questions

Binary Search Trees(B Tree)
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

275

Questions

8/14

Page

Pick an option on a question to see the right answer and solution.

For the tree below, write the level-order traversal.
Binary Search Trees(B Tree) mcq question image

Select an option to see the answer and solution.

When it would be optimal to prefer Red-black trees over AVL trees?

Select an option to see the answer and solution.

What is the disadvantage of using splay trees?

Select an option to see the answer and solution.

After which city is tango tree named?

Select an option to see the answer and solution.

Is it possible to perform a split operation on a string in the rope if the split point is in the middle of the string.

Select an option to see the answer and solution.

What is the average running time of a treap?

Select an option to see the answer and solution.

What is the time complexity for maintaining a dynamic set of weighted trees?

Select an option to see the answer and solution.

Consider below sequences.
array=60 90 10 100 40 150 90
reverse 2 to 3
array=60 10 90 100 40 150 90
reverse 3 to 6
array= 60 100 150 40 100 90 90
  now printout from 1 to 6 :-- 60 100 150 40 100 90
How to achieve the above operation efficiently?

Select an option to see the answer and solution.

In the given figure, find '?'.
Binary Search Trees(B Tree) mcq question image

Select an option to see the answer and solution.

What may be the psuedo code for finding the size of a tree?

Select an option to see the answer and solution.

Which of the below diagram is following AVL tree property?
Binary Search Trees(B Tree) mcq question image

Select an option to see the answer and solution.

Is mathematical randomized tree can be generated using beta distribution.

Select an option to see the answer and solution.

The minimum height of self balancing binary search tree with n nodes is . . . . . . . .

Select an option to see the answer and solution.

What is a threaded binary tree traversal?

Select an option to see the answer and solution.

In a full binary tree if number of internal nodes is I, then number of nodes N are?

Select an option to see the answer and solution.

What should be the condition for the level of a left node?

Select an option to see the answer and solution.

Is tango tree represented as a tree of trees.

Select an option to see the answer and solution.

Consider the pseudo code:
int avl(binarysearchtree root):
   if(not root)
     return 0
   left_tree_height = avl(left_of_root)
 
   if(left_tree_height== -1) 
     return left_tree_height
 
   right_tree_height= avl(right_of_root)
 
   if(right_tree_height==-1)
     return right_tree_height
Does the above code can check if a binary search tree is an AVL tree?

Select an option to see the answer and solution.

Who invented treaps?

Select an option to see the answer and solution.

Which of the following data structures can be efficiently implemented using height balanced binary search tree?

Select an option to see the answer and solution.