Home  Dsa   Comprehensi ...

Comprehensive list of data structures in DSA

Here’s a comprehensive list of data structures in DSA (Data Structures and Algorithms), organized by category:


1. Linear Data Structures

Elements are arranged sequentially.

Data StructureDescriptionExample / Use
ArrayFixed-size collection of elementsStore list of numbers
Linked ListElements (nodes) connected via pointersDynamic memory usage, insertion/deletion
Doubly Linked ListNodes with next and previous pointersBrowser history, undo functionality
Circular Linked ListLast node points to firstRound-robin scheduling
StackLIFO (Last In First Out)Undo operations, recursion stack
QueueFIFO (First In First Out)Task scheduling
DequeDouble-ended queue, insert/delete both endsSliding window, deque in Java
Priority Queue / HeapElements with prioritiesTask scheduling, Dijkstra’s algorithm

2. Non-Linear Data Structures

Elements are connected in a hierarchy or graph.

Data StructureDescriptionExample / Use
TreeHierarchical structure with nodesFile system, expression trees
Binary TreeEach node has max 2 childrenGeneral-purpose tree
Binary Search Tree (BST)Left < Node < RightFast search, insert, delete
AVL TreeSelf-balancing BSTKeep operations O(log n)
Red-Black TreeBalanced BST using color rulesUsed in TreeMap/TreeSet
B-Tree / B+ TreeBalanced multi-way treeDatabase indexing
Trie (Prefix Tree)Stores strings efficientlyAutocomplete, dictionary
Heap (Binary Heap)Complete binary tree, min/max heapPriority queues

3. Hash-Based Data Structures

Store data with key-based access.

Data StructureDescriptionExample / Use
Hash Table / Hash MapKey-value storage using hash functionLookup in O(1) avg
Hash SetStores unique elementsRemove duplicates
Hash MultimapAllows multiple values per keyGrouping by category

4. Graphs

Collections of nodes (vertices) and edges.

TypeDescriptionExample / Use
GraphGeneral graphSocial networks
Directed / Undirected GraphEdge direction matters or notDependencies / connections
Weighted / Unweighted GraphEdges have weights or notShortest path, MST
Adjacency Matrix / ListGraph representationEfficient traversal
Tree as GraphSpecial graph without cyclesHierarchies

5. Advanced / Specialized Structures

Data StructureDescriptionExample / Use
Segment TreeRange queries and updatesSum, min, max in subarray
Fenwick Tree / Binary Indexed TreeEfficient prefix sumsRange queries, competitive programming
Disjoint Set / Union-FindTrack connected componentsKruskal’s MST algorithm
Skip ListProbabilistic sorted listAlternative to balanced BST
Circular BufferFixed-size buffer in a loopStreaming data, producer-consumer
Bloom FilterProbabilistic membership checkingCaches, databases
LRU CacheLeast Recently Used evictionCache eviction in OS / DB
Published on: Oct 05, 2025, 08:44 AM  
 

Comments

Add your comment