Question 1
Which of the following Statement is true for an AVL tree?
P1: The AVL tree must be a B-tree
P2: The AVL tree must be a Binary Search Tree.
P3: The difference between the heights of left and right subtrees for any node cannot be more than one.
P4: The AVL Tree is a self-balancing tree.
Question 3
What is the time complexity taken by Red-Black Tree in insertion, deletion, and searching Operations?
Question 4
Which operation is used to fix violations in a Red-Black Tree after a node deletion?
Question 7
What should be placed in the below blank space to complete the find function in Disjoint set?
int find(int i)
{
if (parent[i] == i) {
return i;
}
else {
return ________;
}
}
Question 10
Which of the following statements are true about Trie Data structure?
P1: There is one root node in each Trie.
P2: Each path from the root to any node represents a word or string.
P3: We can not do prefix search (or auto-complete) with Trie.
P4: There is no overhead of Hash functions in a Trie data structure.
There are 25 questions to complete.