Difference between complete binary tree and avl tree
Answers
Answered by
0
Every complete binary tree is an AVl tree, but not necessarily the other way around.
A complete binary tree is one where every layer except possibly the last is completely filled in. An AVL tree is one where every node's children are AVL trees whose heights differ by at most one. The maximally skewed AVL trees are the Fibonacci trees, which generally aren't complete trees. Here's an example of a tree that's an AVL tree and not a complete binary tree
A complete binary tree is one where every layer except possibly the last is completely filled in. An AVL tree is one where every node's children are AVL trees whose heights differ by at most one. The maximally skewed AVL trees are the Fibonacci trees, which generally aren't complete trees. Here's an example of a tree that's an AVL tree and not a complete binary tree
Similar questions
Business Studies,
8 months ago
History,
8 months ago
English,
8 months ago
Science,
1 year ago
Math,
1 year ago