All Blogs

Splay Tree: Implementation and Usage

2024-08-17 Shivam Chaturvedi

A Splay Tree is a self-adjusting binary search tree where recently accessed elements are moved closer to the root. This dynamic balancing improves access times for frequently used nodes. In this blog, we explore the key features of Splay Trees, their use cases, and provide a simple C++ implementation showcasing operations such as insertion, searching, and tree rotations. Discover how Splay Trees maintain efficiency in handling non-uniform access patterns.

5 min read

Read More

AVL Trees: Implementation and Usage

2024-08-17 Shivam Chaturvedi

An AVL Tree is a self-balancing binary search tree where the difference in heights of left and right subtrees (known as the balance factor) cannot be more than one for any node. This balancing ensures O(log n) time complexity for search, insertion, and deletion operations.

10 min read

Read More

All About Graphs In Data Structures

2024-08-17 Shivam Chaturvedi

Graphs are fundamental structures used to model pairwise relations between objects. They consist of nodes (vertices) and edges (connections between nodes). Graphs are used in various applications, from computer networks and social networks to recommendation systems and route planning.

15 min read

Read More