Problem statement: what do you say, how many different binary trees are possible with n nodes?
- In general,
- if there are n nodes,
- then there exist 2n - n different trees
- example -
- number of node = 3
- then different trees = 23 - 3 = 8 - 3 = 5
No comments:
Post a Comment