Skip to content

Its-a-me-Ashwin/Splay-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Splay-Tree

Splay Tree Implementation in C++

—SplayTrees are a form of binary search tree with the unique property that the most recently accessed element is located at the root of the tree to save access time.

Splay trees have time complexity of O(logN) in most cases but can have O(N) in some cases. Unlike AVL/Red-Black trees Splay Trees do not have a strictly self-balancing feature. Balancing is achieved using rotations. Splay trees are faster as they are not strictly balanced.

To Use

  • include the header file
  • create a splay tree object
  • use the methods to use the splay tree

About

Splay Tree Implementation in C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages