81. What is the below pseudo code trying to do, where pt is a node pointer and root pointer?
redblack(Node root, Node pt) :
if (root == NULL)
return pt
if (pt.data < root.data)
{
root.left = redblack(root.left, pt);
root.left.parent = root
}
else if (pt.data > root.data)
{
root.right = redblackt(root.right, pt)
root.right.parent = root
}
return root
redblack(Node root, Node pt) :
if (root == NULL)
return pt
if (pt.data < root.data)
{
root.left = redblack(root.left, pt);
root.left.parent = root
}
else if (pt.data > root.data)
{
root.right = redblackt(root.right, pt)
root.right.parent = root
}
return root
82. Select the code snippet which performs pre-order traversal.
83. A node of the weight balanced tree has
84. Which of the following is not the self balancing binary search tree?
85. When to choose Red-Black tree, AVL tree and B-trees?
86. Which type of binary search tree or algorithm does tango tree use?
87. For how many vertices in a set, is top tree defined for underlying tree?
88. What is a complete binary tree?
89. How many randomized binary search trees can be formed by the numbers (1, 3, 2)?
90. Balanced binary tree with n items allows the lookup of an item in . . . . . . . . worst-case time.
Read More Section(Binary Search Trees(B Tree))
Each Section contains maximum 100 MCQs question on Binary Search Trees(B Tree). To get more questions visit other sections.