项目作者: Its-a-me-Ashwin

项目描述 :
Splay Tree Implementation in C++
高级语言: C++
项目地址: git://github.com/Its-a-me-Ashwin/Splay-Tree.git
创建时间: 2020-03-04T13:39:05Z
项目社区:https://github.com/Its-a-me-Ashwin/Splay-Tree

开源协议:

下载


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