2080 2

CSC211 ยท 2080 ยท 10 marks

Explain AVL tree with example. Also, explain balancing algorithm for this tree.

Explain AVL tree with example. Also, explain balancing algorithm for this tree.[10]

Data Structures and AlgorithmsChapter 8: Trees and GraphsAVL tree and Balancing algorithm, Applications of Trees

An AVL tree (named after inventors Adelson-Velsky and Landis, 1962) is a self-balancing Binary Search Tree (BST) in which the difference between the heights of the left and right subtrees of any node is at most 1. This difference is called the Balance Factor (BF): For a valid AVL tree, the balanc...