Skip to content

nicolasrb2001/AVL_Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AVL_Tree

This is my implementation of an AVL Tree for integers.

Motivation 🌲


Part of my coursework consisted on implementing a binary tree and the additional challenge was developing an AVL Tree.

Features

  • Supports adding integers into the tree.
  • Searching for items takes O(log n).

Technical Information

This was developed using IntelliJ IDEA.

Additional Information

Includes a main method for testing purposes as well as print statements to indicate the type of rotation being carried out when inserting elements. The program will print all the nodes in Breadth first order after every rotation to show what the tree looks like.

Planned Features

  • Add support for removal of items.

Screenshots

This is the output to the screen after inserting all the elements included in the main method.

This is what the tree looks like.

Releases

No releases published

Packages

No packages published

Languages