Data Structure (2130702)

BE | Semester-3   Winter-2016 | 01/02/2017

Q5) (a)

Explain AVL trees.

A tree is called AVL (height balance binary tree), if each node possesses one of the following properties:
  • A node is called left heavy if the longest path in its left sub tree is one longer then the longest path of its right sub tree.
  • A node is called right heavy if the longest path in the right sub tree is one longer than path in its left sub tree.
  • A node is called balanced, if the longest path in both the right and left sub tree are equal.