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

Topic Time
Introduction to Data Structures 5 min
Algorithms, Complexity and Time-Space Tradeoff 5 min
Arrays: Representation and Operations 5 min
Searching: Linear Search and Binary Search 5 min
Sorting: Bubble, Selection and Insertion Sort 5 min
Two-Dimensional Arrays, Matrices and Sparse Matrices 5 min
Unit I review: summary, glossary and questions 10 min

Unit II: Linked Lists and Hashing

Topic Time
Linked Lists: Definition and Representation 5 min
Operations on a Singly Linked List 5 min
Doubly and Circular Linked Lists 5 min
Application: Addition of Polynomials 5 min
Hashing and Hash Functions 5 min
Collision and Collision Resolution 5 min
Unit II review: summary, glossary and questions 10 min

Unit III: Stacks, Recursion and Queues

Topic Time
Stacks: Definition, Representation and Operations 5 min
Arithmetic Expressions and Polish Notation 5 min
Evaluation of Postfix Expressions 5 min
Recursion 5 min
Queues: Representation and Simple Queue 5 min
Circular Queue, Deque and Priority Queue 5 min
Unit III review: summary, glossary and questions 10 min

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

  1. Read one topic per sitting and try each worked example on paper before reading the solution.
  2. Answer the practice questions first, then check the answers at the end of the topic.
  3. Finish each unit with its review page and the question bank.

Sources

  • Official BCA syllabus Data Structures, course code 25BCA402DS02