Question 41
Which property distinguishes a perfect binary tree from a merely complete binary tree?
That is the defining structure of a perfect binary tree.
Which property distinguishes a perfect binary tree from a merely complete binary tree?
That is the defining structure of a perfect binary tree.
Which data structure is most directly used to implement iterative DFS on a tree?
DFS can be implemented with an explicit LIFO stack.
Which data structure is most directly used to implement BFS on a tree?
BFS requires FIFO processing of frontier nodes.
What is the height of a single-node binary tree under the edge-based definition?
There are zero edges on the path from the root to itself.
How many edges does a tree with n vertices have?
Every tree with n vertices has exactly n-1 edges.