Which of the following statements is false?
View worked solution
Answer: B;C
We need to identify the false statements among the given options.
-
Statement A: A tree with nodes has edges.
Status: TRUE. By definition, any connected acyclic graph (tree) with vertices contains exactly edges. -
Statement B: A labeled rooted binary tree can be uniquely constructed given its postorder and preorder traversal results.
Status: FALSE. Preorder and postorder traversals are not sufficient to uniquely reconstruct a binary tree. For example, consider the following two distinct binary trees:- Tree 1: Root with left child .
- Tree 2: Root with right child .
-
Statement C: A complete binary tree with internal nodes has leaves.
Status: FALSE. This property holds for a strict (or full) binary tree where every internal node has exactly 2 children. However, a complete binary tree can have nodes with only 1 child.
For example, consider a complete binary tree with nodes:- Root has children and .
- Node has a left child .
-
Statement D: The maximum number of nodes in a binary tree of height is .
Status: TRUE. Under the standard definition where the height of a single-node tree is , the maximum number of nodes at level is . Summing this from level to gives:
Since the question asks for the false statements, the correct options are B and C.
Free practice · Your answers on this page are not saved.
