Skip to content

Splay Tree- is a self-adjusting binary search tree that moves recently accessed nodes to the root via rotations. This optimizes access to frequently used elements, offering efficient operations with an amortized time complexity of O(log n). It's useful when certain elements are accessed more frequently.

Notifications You must be signed in to change notification settings

HaimOzer123/Splay-Tree-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Splay Tree Overview

A Splay Tree is a self-adjusting binary search tree that optimizes access to frequently used elements by moving them closer to the root through rotations. This results in efficient operations with an amortized time complexity of O(log n).

Full Explanation

For a detailed explanation of how Splay Trees work, including the splaying process and its benefits. please go inside the PDF above.

Summary

  • Efficient Access: Moves frequently accessed elements closer to the root.
  • Operations: Search, insert, delete with O(log n) amortized time.
  • Ideal For: Scenarios where certain elements are accessed more often.

Check out the full post for a deeper dive into Splay Trees!

About

Splay Tree- is a self-adjusting binary search tree that moves recently accessed nodes to the root via rotations. This optimizes access to frequently used elements, offering efficient operations with an amortized time complexity of O(log n). It's useful when certain elements are accessed more frequently.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published