Click to See Complete Forum and Search --> : AVL Tree


Daniel.QT
January 25th, 2009, 06:36 AM
hi

I wana now, how many we can create AVL tree with 'n' nodes?

I wana know this formula : number of AVL trees with n nodes

thanks

gammaman
January 25th, 2009, 07:57 AM
S(h)=S(h-1)+S(h-2)+1 FOR h=0,S(h)=1. For h=1,S(h)=2.