AVL树最小节点

Chi*_*hin 3 data-structures

高度为h的AVL树中的最小节点数是多少?我在互联网上做了一些研究,但它们都很混乱.

小智 9

n(h) 是高度为h的AVL树的最小节点数,然后:

n(0)=1, n(1)=2
n(h)= 1+n(h-1)+n(h-2)
Run Code Online (Sandbox Code Playgroud)