data structures - Number of binary tree with n node and n-3 height -


how many binary trees can find have n node , height of these tress n-3?

the total number of binary tree possible n nodes = (2ncn) / (n+1).

the minimum depth of binary tree ⌊log2n⌋ , maximum depth n-1.

so in each level level there [(2ncn) / (n+1)] / [(n-1) - (⌊log2n⌋)] nodes.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -