A binary search tree is constructed by inserting the following numbers in order: 60, 25, 72, 15, 30, 68, 101, 13, 18, 47, 70, 34 The number of nodes is the left subtree is
7
The first inserted value, 60, is the root. Every inserted value smaller than 60 belongs to its left subtree: 25, 15, 30, 13, 18, 47 and 34. Therefore the left subtree contains 7 nodes.
The preorder traversal sequence of a binary search tree is 30, 20, 10, 15, 25, 23, 39, 35, 42. Which one of the following is the postorder traversal sequence of the same tree?
Suppose that we have numbers between 1 and 1000 in a binary search tree and we want to search for the number 365. Which of the following sequences could not be the sequence of nodes examined ?
Suppose that we have numbers between 1 and 1,000 in a binary search tree and want to search for the number 364. Which of the following sequences could not be the sequence of nodes examined ?
In a ____the left and right subtrees for any given node, differ in height by more than one.
Which of the following description(s) is/are true:
A. Red Black Tree - Guarantees worst case of O(log n) time for search, insert & delete.
B. Trie - Used for efficient prefix - based searches.
C. AVL Tree - self balancing binary search tree with looser balance criteria than a Red Black Tree.
D. B- Tree - Allows efficient search, inert, delete operations in disk based system.
Choose the correct answer from the options given below: