These notes cover the full Data Structures course for BCA Semester II in four units. Each unit is split into short topics that take about 10 to 20 minutes to read, with worked examples, common mistakes and practice questions with answers.
What you will be able to do
Unit I: Introduction, Algorithms and Arrays
- Define and classify data structures and list their operations.
- Analyse algorithms using time and space complexity and Big-O notation.
- Represent linear arrays in memory and perform traversal, insertion, deletion and merging.
- Apply and compare linear search and binary search.
- Implement bubble, selection and insertion sort.
- Represent two-dimensional and sparse matrices in memory.
Unit II: Linked Lists and Hashing
- Define a linked list and compare it with an array.
- Represent a linked list in memory using nodes and pointers.
- Perform traversal, insertion, deletion and search in a singly linked list.
- Describe doubly and circular linked lists and their operations.
- Add two polynomials using linked lists.
- Explain hashing, hash functions and collision resolution.
Unit III: Stacks, Recursion and Queues
- Define a stack and implement push and pop using an array and a linked list.
- Convert infix expressions to postfix and evaluate postfix expressions.
- Explain recursion and the role of the runtime stack.
- Write recursive solutions for factorial, GCD, Fibonacci and Towers of Hanoi.
- Implement simple and circular queues using arrays and linked lists.
- Describe deques and priority queues and the applications of queues.
Unit IV: Graphs and Trees
- Define a graph and its terminology.
- Represent a graph by an adjacency matrix and an adjacency list.
- Traverse a graph using BFS and DFS.
- Define trees and binary trees and their terminology.
- Traverse a binary tree in preorder, inorder and postorder.
- Search, insert and delete in a binary search tree.
- Insert into and delete from an AVL tree using rotations.
Who this is for
BCA Semester II students studying Data Structures (course code 25BCA402DS02), and anyone who wants a plain-English walk through the same syllabus. Start at Unit I unless you already know the basics.
Syllabus
Unit I: Introduction, Algorithms and Arrays
Unit II: Linked Lists and Hashing
Unit III: Stacks, Recursion and Queues
Unit IV: Graphs and Trees
| Topic | Time |
|---|---|
| Graphs: Definition and Terminology | 5 min |
| Representation and Traversal of Graphs | 5 min |
| Trees and Binary Trees | 5 min |
| Traversal of Binary Trees | 5 min |
| Binary Search Trees | 5 min |
| AVL Trees: Height-Balanced Trees | 5 min |
| Unit IV review: summary, glossary and questions | 10 min |
How to study these notes
- Read one topic per sitting and try each worked example on paper before reading the solution.
- Answer the practice questions first, then check the answers at the end of the topic.
- Finish each unit with its review page and the question bank.
Sources
- Official BCA syllabus Data Structures, course code 25BCA402DS02
