Question: A ternary tree is either empty or consists of a node called the root and three ternary trees (called the left, middle, and right subtrees).
A ternary tree is either empty or consists of a node called the root and three ternary trees (called the left, middle, and right subtrees). Prove that a ternary tree of height h has at most (3(h+1) 1)/2 nodes, by using induction on the number of nodes in in the tree. Note that the empty tree has height 1.
Please provide step by step explanation, thanks.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
