Randomized Binary Search Tree Multiple choice Questions and Answers (MCQs)
Which of the following is a random tree?
Random Binary Tree
Uniform Spanning Tree
All of the mentioned
Question 1 Explanation:
Treap, also known as random binary search tree, Random binary tree and Uniform spanning tree are all random tree. Random tree is a tree formed by a random process of addition and deletion of nodes.
Which process forms the randomized binary search tree?
Question 2 Explanation:
The randomized binary search tree is formed by the stochastic process. The stochastic process or also called random process is a mathematical tool or object including random variables.
How many randomized binary search trees can be formed by the numbers (1, 3, 2)?
Question 3 Explanation:
As there are 3 numbers (1, 3, 2) so total of 6 combinations can be formed using three numbers but Since (2, 1, 3) and (2, 3, 1) are same so in total there are 5 randomized binary search tree that can be formed.
What is the expected depth of a node in a randomized binary search tree?
2 log n + O(1)
Question 4 Explanation:
The expected value of depth of a node that is for a node a, the expected value of length of path from root to node a is found to be at most 2 log n + O(1).
What is the longest length path for a node x in random binary search tree for the insertion process?
4.311 log x
Question 5 Explanation:
Although it is difficult to find the length of the longest path in randomized binary search tree, but it has been found that the longest length is around 4.311 log x.
There are 5 questions to complete.