no of trees using n nodes.txt

来自「It is an ebook about trees」· 文本 代码 · 共 15 行

TXT
15
字号
   
How many different trees can be constructed using n nodes? 

Discuss it!          


Its 


2^n - n 


So, if there are 10 nodes, you will have (1024 - 10) = 1014 different trees!! Confirm it yourself with a small number if you dont believe the formula.  
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?