문제

Or does AVL tree only characterize a tree where all subtrees have a height balance of at most 1 ?

도움이 되었습니까?

해결책

Typically, the term AVL tree refers to the balanced binary search tree data structure. There's no reason you couldn't talk about AVL trees to refer to the shape of the tree rather than the data structure represented by that shape, and it is often useful to do so (for example, if you wanted to implement an order-statistic tree on top of an AVL tree structure).

Hope this helps!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top