This website collects cookies to deliver better user experience
Introduction to AVL tree
Introduction to AVL tree
Hello, today, we're going to talk about AVL tree.
#day_19
why we need to use AVL trees.
Sometimes, the Binary search tree's operations become O(n) instead of O(log n) due to being a skewed binary search tree, that's why Adelson, Velskii and Landis. so what's an AVL tree ?
if you're not familiar with binary search tree, this post will help you :)
Definition of AVL tree
AVL tree is a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees cannot be more than one for all nodes.