Deck 12: Heaps and Priority Queues

Full screen (f)
exit full mode
Question
A _________ search tree can have more than two children per node and can store more than one element in each node.

A) Multi-way
B) Binary
C) Linked
D) None of the above
Use Space or
up arrow
down arrow
to flip the card.
Question
A _____ tree contains nodes that contain either one or two elements and have zero, two, or three children.

A) 2-4
B) B
C) 2-3
D) B*
Question
Inserting an element into a 2-3 tree can have a ripple effect up the tree causing the _______ of the tree to increase.

A) order
B) height
C) type
D) None of the above
Question
If the propagation effect of a 2-3 tree insertion causes the root to _________, the tree increases in height.

A) Split
B) Be deleted
C) Rotate
D) None of the above
Question
A 2-4 tree expands on the concept a 2-3 tree to include the use of _________.

A) 2-nodes
B) 3-nodes
C) 4-nodes
D) None of the above
Question
A __________ tree extends the concept of 2-3 and 2-4 trees so that nodes can have an arbitrary maximum number of elements.

A) 2-4
B) B
C) 2-3
D) B*
Question
Access to ____________ storage is very slow relative to access to primary storage, which is motivation to use structures such as B-trees.

A) recent
B) cache
C) secondary
D) cloud
Question
___________ may provide a better solution both within a B-tree node and for collecting B-tree nodes because they are effective in both primary memory and secondary storage.

A) Linked lists
B) Stacks
C) Queues
D) Arrays
Question
A multi-way search tree can have more than ____ children per node and can store more than one element in each node.
Question
A ______ tree contains nodes that contain either one or two elements and have zero, two, or three children.
Question
If the ______ effect of a 2-3 tree insertion causes the root to split, the tree increases in height.
Question
A ______ tree expands on the concept a 2-3 tree to include the use of 4-nodes.
Question
A ______ extends the concept of 2-3 and 2-4 trees so that nodes can have an arbitrary maximum number of elements.
Question
Access to secondary storage is very slow relative to access to primary storage, which is motivation to use structures such as ______.
Question
Arrays may provide a better solution both within a B-tree ______ and for collecting B-tree nodes because they are effective in both primary memory and secondary storage.
Question
A multi-way search tree can have more than two children per node and can store more than one element in each node.
Question
A 2-3 tree contains nodes that contain either one or two elements and have zero, two, or three children.
Question
If the propagation effect of a 2-3 tree insertion causes the root to split, the tree decreases in height.
Question
A 2-4 tree expands on the concept a 2-3 tree to include the use of 4-nodes.
Question
A 2-3 tree extends the concept of 2-4 trees so that nodes can have an arbitrary maximum number of elements.
Question
Access to secondary storage is very slow relative to access to primary storage, which is motivation to use structures such as B-trees.
Question
Linked lists may provide a better solution both within a B-tree node and for collecting B-tree nodes because they are effective in both primary memory and secondary storage.
Question
Describe the nodes in a 2-3 tree.
Question
When does a node in a 2-3 tree split?
Question
How can splitting a node in a 2-3 tree affect the rest of the tree?
Question
Describe the process of deleting an element from a 2-3 tree.
Question
Describe the nodes in a 2-4 tree.
Question
How do insertions and deletions in a 2-4 tree compare to insertions and deletions in a 2-3 tree?
Question
When is rotation no longer an option for rebalancing a 2-3 tree after a deletion?
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/29
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 12: Heaps and Priority Queues
1
A _________ search tree can have more than two children per node and can store more than one element in each node.

A) Multi-way
B) Binary
C) Linked
D) None of the above
Multi-way
2
A _____ tree contains nodes that contain either one or two elements and have zero, two, or three children.

A) 2-4
B) B
C) 2-3
D) B*
2-3
3
Inserting an element into a 2-3 tree can have a ripple effect up the tree causing the _______ of the tree to increase.

A) order
B) height
C) type
D) None of the above
height
4
If the propagation effect of a 2-3 tree insertion causes the root to _________, the tree increases in height.

A) Split
B) Be deleted
C) Rotate
D) None of the above
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
5
A 2-4 tree expands on the concept a 2-3 tree to include the use of _________.

A) 2-nodes
B) 3-nodes
C) 4-nodes
D) None of the above
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
6
A __________ tree extends the concept of 2-3 and 2-4 trees so that nodes can have an arbitrary maximum number of elements.

A) 2-4
B) B
C) 2-3
D) B*
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
7
Access to ____________ storage is very slow relative to access to primary storage, which is motivation to use structures such as B-trees.

A) recent
B) cache
C) secondary
D) cloud
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
8
___________ may provide a better solution both within a B-tree node and for collecting B-tree nodes because they are effective in both primary memory and secondary storage.

A) Linked lists
B) Stacks
C) Queues
D) Arrays
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
9
A multi-way search tree can have more than ____ children per node and can store more than one element in each node.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
10
A ______ tree contains nodes that contain either one or two elements and have zero, two, or three children.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
11
If the ______ effect of a 2-3 tree insertion causes the root to split, the tree increases in height.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
12
A ______ tree expands on the concept a 2-3 tree to include the use of 4-nodes.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
13
A ______ extends the concept of 2-3 and 2-4 trees so that nodes can have an arbitrary maximum number of elements.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
14
Access to secondary storage is very slow relative to access to primary storage, which is motivation to use structures such as ______.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
15
Arrays may provide a better solution both within a B-tree ______ and for collecting B-tree nodes because they are effective in both primary memory and secondary storage.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
16
A multi-way search tree can have more than two children per node and can store more than one element in each node.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
17
A 2-3 tree contains nodes that contain either one or two elements and have zero, two, or three children.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
18
If the propagation effect of a 2-3 tree insertion causes the root to split, the tree decreases in height.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
19
A 2-4 tree expands on the concept a 2-3 tree to include the use of 4-nodes.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
20
A 2-3 tree extends the concept of 2-4 trees so that nodes can have an arbitrary maximum number of elements.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
21
Access to secondary storage is very slow relative to access to primary storage, which is motivation to use structures such as B-trees.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
22
Linked lists may provide a better solution both within a B-tree node and for collecting B-tree nodes because they are effective in both primary memory and secondary storage.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
23
Describe the nodes in a 2-3 tree.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
24
When does a node in a 2-3 tree split?
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
25
How can splitting a node in a 2-3 tree affect the rest of the tree?
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
26
Describe the process of deleting an element from a 2-3 tree.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
27
Describe the nodes in a 2-4 tree.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
28
How do insertions and deletions in a 2-4 tree compare to insertions and deletions in a 2-3 tree?
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
29
When is rotation no longer an option for rebalancing a 2-3 tree after a deletion?
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 29 flashcards in this deck.