Answers to Self-Review Exercises
-
referential.
new
.stack.
predicate.
first-in, first-out (FIFO).
link.
delete
.queue.
tree.
last-in, first-out (LIFO).
binary.
root.
child or subtree.
leaf.
inorder, preorder, postorder and level order.
19.2 It’s possible to insert a node anywhere in a linked list and remove a node from anywhere in a linked list. Nodes in a stack may only be inserted at the top of the stack and removed from the top of a stack.
19.3 A queue data structure allows nodes to be removed only from the head of the queue and inserted only at the tail of the queue. A queue is referred to as a first-in, first-out (FIFO) data structure. A stack data structure allows nodes to be added to the stack and removed from the stack only at ...
Get C++ How to Program, 10/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.