(Question 1) In the following binary tree, 18 is the _____ of 14.
Question 2)
(TCO 6) In the following binary tree, the height of the node with value 12 is _____.
Question 3) Let G be a graph with four vertices and five edges. The sum of the degrees of the four vertices is _____.
Question 4)
Suppose that mylist is a C++ STL object. list mylist; To append an element z to the end of mylist, use _____.
(Question 5) To add the element x to a queue object in the C++ standard template library, myqueue, use _____.
(Question 6) In C++ STL, the _____ function determines if a value exists in a sorted sequence.
(Question 7) In separate chaining, the keys that map to the same hash value are stored in a(n) _____.
(Question 8) There are two basic types of hashing, _____.
| linear probing and random probing |
| open addressing and separate chaining |
(Question 9) What is the stack operation implemented in the following function? The variable top represents the stack top. int operation() { return list[top-1]; }
61 14 26 18