Questions Chapter 10 Flashcards
A 2-3-4 tree is a multiway tree with up to ______ keys and ______ children per node.
up to three keys and four children per node
In a multiway tree, the keys in a node are arranged in __________ order.
ascending
In a 2-3-4 tree, all insertions are made in ______ node(s), and all the _____ nodes are on the same level
all insertions made in leaf nodes, all leaf nodes on same level
In a 2-3-4 tree, a 2-node has ____ key(s) and _____ child/children, a 3-node has ____ key(s) and _____ child/children, and a 4-node has _____ key(s) and ______ child/children
2-node has one key, two children
3-node has two keys, three children
4-node has three keys, four children
True or False: there is no 1-node in a 2-3-4 tree
True
Insertion into a 2-3-4 tree requires than any full node be split on the way _____ the tree, during the search for insertion point.
down
Splitting the ______ creates two new nodes; splitting any other node creates _____ new node
splitting the root creates two new nodes, splitting any other node creates one new node.
The height of a 2-3-4 tree can increase only when ___________________.
the root is split
Search times in a 2-3-4 tree is proportional to ______
height
True or False: the 2-3-4 tree is efficient because all the nodes are full
False
A 2-3 tree is similar to a 2-3-4 tree, except that it can have only one or two data items and up to _______ children.
three
Insertion in a 2-3 tree involves finding the appropriate ________ and then performing ________ from the from the insertion point in the _________ direction, until a non-full node is found
find the appropriate leaf, perform splits, upward direction
A ______ tree is a multiway tree in which each node may have dozens or hundreds of keys and children
b-tree
There is always one more ______ than there are ______ in a b-tree node
one mor child than there are keys in a b-tree node
A 2-3-4 tree is so named because a node can have:
a. three children and four data items
b. two, three, or four children
c. two parents, three children, and four items
d. two parents, three items, and four children
b. two, three, or four children