Skip to content

dhcpts/AVL-Tree-Implementation

Repository files navigation

AVL Tree Data Structure (C++)

A binary tree structure built to automatically rebalance its structure when nodes become out of balance, in order to improve search times.

Overview

This program implements various classes and functions to facilitate the tree's functions.

  • Templated BinarySearchTree class holds the standard functions of a binary tree.
  • Templated BinaryTreeNode class holds format for tree nodes.
  • Constructor and destructor that build and delete tree objects on command.
  • findParentOrDuplicate function to find insertion points in the tree, or locate an existing item in the tree.
  • Insert and remove functions to add and subtract items from tree.
  • Rebalance functions to handle various cases of off-balance after insertion/deletion.
  • Search function to locate items within the tree.

Tech Stack

  • Language: C++
  • IDE: Visual Studio

Compilation instructions are included in comment header of main file.

About

A templated AVL tree structure that rebalances itself automatically for more efficient searching.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages