Data Structure Tutorial For Beginners

Prashant | Sat, 22 Aug, 2020 | 129

Data structure is a logical or mathematical organization of data; it describes how to store the data and access data from memory. Actually in our programming data stored in main memory(RAM) and To develop efficient software or firmware we need to care about memory. To efficiently manage we required data structure.

There are two different types of data structure:

  1. Linear Data Structure: In linear data structure data elements stored in sequential manner. Stack, Queue and Linked List are the types of linear data structures.
  2. Non Linear Data Structure: In Non-Linear data structure data elements are not stored in the sequence manner. Tree and Graph are the type of non-linear data structure.

Topics of Data Structure

List of Data Structure Tutorial topics...


  1. Structured Programming, its Advantages and Disadvantages.
  2. Data Structure types and operations associated with them.
  3. Introduction of Data Structure.
  4. Linear, Binary & Interpolation search.


  1. Array Data Structure
  2. Array coding problems

Linked List

  1. Introduction to Linked List
  2. Single Linked list and its basic operations with traversing implementation
  3. Single linked list insertion
  4. Single linked list deletion
  5. Deleting a node from a linked list without head pointer
  6. Implement union and intersection of two sorted linked lists


  1. Stack
  2. Implement of stack using array
  3. Implementation of Multi Stack in C
  4. Nesting of parentheses using stack
  5. Check for balanced parentheses by using Stacks (C++ program)
  6. Double Stack
  7. Implementation of Stack using two Queues


  1. Linear Queue
  2. Circular Queue
  3. Double Ended Queue (DeQueue)
  4. Priority Queue
  5. Implementation of Queue using two Stacks


  1. Hashing Data Structure
  2. Hash functions and its characteristics
  3. Collisions in Hashing and Collision Resolution Techniques
  4. Hashing | Separate chaining for collision resolution
  5. Hashing | Open addressing for collision handling
  6. Hashing coding problems


  1. Tree Data structure
  2. Introduction to Trees and its terminologies.
  3. Binary tree, Definition and its properties.
  4. Binary Tree representation (Sequential and Link).
  5. Traversal technique for Binary Tree.
  6. Insertion in Binary Search Tree (BST).
  7. Deletion in Binary Search Tree (BST).
  8. Find Height (Maximum Depth) of a Binary Search Tree (C++ program).
  9. Find the Number of Nodes in a Binary Search Tree (C++ program).
  10. Find the number of leaf nodes in a Binary Tree | Data Structure.
  11. Find whether two trees are structurally identical or not | Data Structure.
  12. AVL Tree, Left and right rotations.
  13. Introduction to B Tree and its operations
  14. Red Black Tree (Properties, Advantages, Inserting Nodes).
  15. Interval Tree in Data Structure.
  16. Threaded Binary Tree | Data Structure.
  17. Level Order Traversal on a Binary Tree | Data Structure.
  18. Segment Trees
  19. Construct a Binary Tree from Postorder and Inorder Traversal


  1. Introduction to Graph in Data Structure
  2. Representation of a Graph in Data Structure
  3. Breath First Search (BFS) of a Graph
  4. Depth First Search (DFS) of a Graph
  5. Cycle Detection in an Undirected Graph
  6. Cycle Detection in a Directed Graph
  7. Prim's Minimum Spanning Tree
  8. Count all the possible path between two vertices
  9. Insertion and deletion of nodes and edges in a graph using adjacency list


  1. Heap Sort (Introduction, Algorithm and Program using C).

Data Structure programs using C/C++

  1. Quick Sort in C++ with Algorithm, Example.
  2. Merge Sort in C++ with Example.
  3. Counting Sort with C++ Example.
  4. Implement shell sort using C++ program.
  5. Dijkstra’s Algorithm: Explanation and Implementation with C++ program.
  6. C++ print Postorder traversal from Preorder and Inorder traversal of a tree.
  7. Infix To Postfix Conversion Using Stack [with C program].
  8. Evaluation of Postfix Expressions Using Stack [with C program].
  9. Maximum Sum Helix path (using C++ program).
  10. Tower of Hanoi using recursion (C++ program).
  11. Find in-order Successor and Predecessor in a BST using C++ program.
  12. Implement in-order traversal using C++ program.
  13. Implement post-order traversal using C++ program.
  14. Implement pre-order traversal using C++ program.
  15. Find occurrence of each element in an array using simple method O(n^2) and hashing O(n) time.
  16. Check for balanced parentheses by using Stacks (C++ program)

Competitive Questions

  1. Aggressive Cows (On Binary Search)
  2. Find Maximum Range of Query using Segment Trees


  1. Augmenting Data Structure.
  2. Tail Recursion and Tower of Hanoi using C.
  3. Asymptotic Notations.
  4. Hashing (Hash table, Hash functions and its characteristics).
  5. Hamiltonian Cycle in Data Structure.

Leave a comment