Class AVLTree<T>

Class representing an AVL Tree, a self-balancing binary search tree. Ensures that the tree remains balanced after every insertion or deletion, maintaining efficient search, insertion, and deletion.

Type Parameters

  • T

    The type of values stored in the tree.

Constructors

Properties

Methods

Constructors

Properties

root: AVLTreeNode<T> = null

The root node of the AVL tree.

Methods

  • Searches for a value in the AVL tree.

    Parameters

    • value: T

      The value to search for.

    Returns boolean

    True if the value is found, false otherwise.