Free Learning preparation advice: The detailed examples and study order below are editorial suggestions, not an official subtopic list or prediction of question frequency. The official indicative syllabus does not assign subject-wise question counts or difficulty percentages.
Data Structures is an official Section B subject. The examples below are our study checklist, not an exhaustive official subtopic syllabus. Complexity statements assume the standard implementations described; state representation and algorithm assumptions when comparing alternatives.
Time Complexity — The Foundation
Understanding time complexity is essential because many CCAT questions ask you to identify the complexity of an algorithm or compare algorithms.
| Complexity | Name | Example |
|---|---|---|
| O(1) | Constant | Array access by index |
| O(log n) | Logarithmic | Binary Search |
| O(n) | Linear | Linear Search |
| O(n log n) | Linearithmic | Merge Sort, Quick Sort (avg) |
| O(n²) | Quadratic | Bubble Sort, Selection Sort |
Sorting Algorithms
Sorting is a useful editorial revision topic. Know how each algorithm works and its complexity.
| Algorithm | Best | Average | Worst | Stable? |
|---|---|---|---|---|
| Selection Sort | O(n²) | O(n²) | O(n²) | No |
| Bubble Sort (early-exit version) | O(n) | O(n²) | O(n²) | Yes |
| Insertion Sort | O(n) | O(n²) | O(n²) | Yes |
| Merge Sort | O(n log n) | O(n log n) | O(n log n) | Yes |
| Quick Sort | O(n log n) | O(n log n) | O(n²) | No |
Key Points to Remember
- Merge Sort always gives O(n log n) but requires extra space O(n)
- Quick Sort averages O(n log n); poor pivot choices can cause O(n²), including on sorted input for some implementations
- Bubble Sort with optimization (flag-based) has best case O(n)
- Know the step-by-step process for each algorithm
Searching Algorithms
Linear Search
- Time: O(n) — checks each element sequentially
- Works on unsorted arrays
Binary Search
- Time: O(log n) — divides the search space in half each time
- Requires a sorted array
- Know iterative and recursive implementations
Linked Lists
Compare representations, operations and their complexity assumptions.
Types of Linked Lists
- Singly Linear: Each node points to the next, last node points to NULL
- Doubly Linear: Each node has previous and next pointers
- Singly Circular: Last node points back to the first node
- Doubly Circular: Doubly linked + circular (last node's next = first, first node's prev = last)
Important Operations
| Operation | Array (dynamic for append) | Linked List |
|---|---|---|
| Access by index | O(1) | O(n) |
| Insert at beginning | O(n) | O(1) |
| Insert at end | O(1) amortized | O(n) or O(1) with tail |
| Delete by value | O(n) | O(n) |
| Search | O(n) | O(n) |
Stack & Queue
Stack (LIFO)
- Linked-stack push, pop and peek/top are O(1); a dynamic-array push can require resizing
- Applications: Expression evaluation, parenthesis matching, recursion, undo operations
- Know infix to postfix conversion
Queue (FIFO)
- A standard linked or circular FIFO queue supports enqueue, dequeue, front and rear in O(1); priority-queue complexities depend on implementation
- Types: Simple Queue, Circular Queue, Priority Queue, Deque
- Applications: CPU scheduling, BFS traversal, printer spooling
Trees & Traversals
Tree Terminology
Root, Parent, Child, Leaf, Sibling, Height, Depth, Level, Degree — know each definition clearly.
Binary Tree Types
- Full Binary Tree: Every node has 0 or 2 children
- Complete Binary Tree: All levels filled except possibly the last (filled left to right)
- Perfect Binary Tree: All internal nodes have 2 children, all leaves at same level
- Binary Search Tree (BST): All keys in the left subtree precede the node key; all keys in the right subtree follow it, assuming distinct keys
Tree Traversals — Very Important
- In-order (LNR): Left → Node → Right — gives sorted order for BST
- Pre-order (NLR): Node → Left → Right — used for copying trees
- Post-order (LRN): Left → Right → Node — used for deleting trees
Graphs
For an introductory graph checklist, review these concepts; this is not a verified limit on official coverage:
- Directed vs Undirected graphs
- Weighted vs Unweighted graphs
- Adjacency Matrix vs Adjacency List representation
- BFS (Breadth-First Search) — uses Queue
- DFS (Depth-First Search) — uses Stack
- Spanning Tree — minimum spanning tree concepts
Use the verified pattern and syllabus guide to check coverage and the mock-test page for timed practice. The free Quick Test is separate from paid full mocks. Subject-wise notes and chapter practice and previous year question papers are paid products with 90-day access. Free Learning questions are not official C-DAC papers.