Chapter 15 Questions
c. (n / 2) – 2
d. log2(n + 1)
25. The minimum height of a binary tree of n nodes is ______.
a. n
b. n / 2
c. (n / 2) – 2
d. log2(n + 1)
26. Locating a particular item in a binary search tree of n nodes requires at most ______ comparisons.
a. n
b. n / 2
c. (n / 2) – 2
d. log2(n + 1)
27. Locating a particular item in a balanced binary search tree of n nodes requires at most ______ comparisons.
a. n
b. n / 2
c. (n / 2) – 2
d. log2(n + 1)
28. A full binary tree whose height is 4 has ______ nodes.
a. 7
b. 8
c. 15
d. 31
29. The post order traversal of the following tree is
a. 1, 2, 3, 4, 5, 6, 7, 8, 9
b. 6, 2, 1, 4, 3, 5, 8, 7, 9
c. 6, 2, 8, 1, 4, 7, 9, 3, 5
d. 1, 3, 5, 4, 2, 7, 9, 8, 6
30. Each node in a binary tree has ______.
a. exactly one child
b. at most one child
c. exactly two children
d. at most two children
31. The maximum number of comparisons for a retrieval operation in a binary search tree is the
______.
a. length of the tree
b. height of the tree
c. number of nodes in the tree