PYQ Analysis & Exam Preparation — Module 1
A strategic analysis of 20 exam questions spanning 2022–2024. Module 1 heavily tests recurrences (Master's theorem & substitution method) and asymptotic notation theory. Know exactly what to practice.
Learning Goals
- Identify the three guaranteed question types: Master's theorem applications, substitution method traces, and asymptotic notation explanations.
- Practice with actual MCQ questions from 2022–2024 papers.
- Understand the answer structure for the highest-mark theoretical questions: O/Ω/Θ definitions and best/worst/average case analysis.
The Exam Blueprint: Module 1 PYQ Deep Analysis (2022–2024)
An analysis of 20 exam questions spanning 2022 to 2024 reveals that Module 1 is foundational and predictable. Master's Theorem and the Substitution Method are guaranteed to appear every single year for 5–7 marks each. The theoretical aspect strictly focuses on Asymptotic Notations and Time/Space Complexity definitions.
Complete PYQ Table (20 Questions)
| Year | Q# | Marks | Topic | Type |
|---|---|---|---|---|
| 2023 | Q1a | 2 | Worst-case notation = Big-O | MCQ |
| 2024 | Q1a | 2 | Space complexity definition | MCQ |
| 2024 | Q1b | 2 | Asymptotic upper bound of 5n²+3n+7 | MCQ |
| 2022 | Q1b | 2 | max{f(n), g(n)} for two independent complexities | MCQ |
| 2024 | Q1c | 2 | T(n)=T(n/2)+1 → O(log n) | MCQ |
| 2023 | Q1d | 2 | Stable O(n²) sort = Insertion Sort | MCQ |
| 2023 | Q1e | 2 | T(n)=2T(n/4)+n²logn → Θ(n²logn) | MCQ |
| 2022 | Q1f | 2 | Asymptotically smallest function | MCQ |
| 2023 | Q1f | 2 | Space complexity = memory used | MCQ |
| 2022 | Q1h | 2 | Merge sort avg comparisons for 2-element lists = 8/3 | MCQ |
| 2023 | Q2a | 7 | Explain asymptotic notation (Big-O, Ω, Θ) | Theory |
| 2024 | Q2a | 7 | Best/worst/average case + linear search examples | Theory |
| 2022 | Q2a | 7 | Substitution method: f(n)=3f(n/2)+6, f(1)=1 | Numerical |
| 2023 | Q2b | 7 | Substitution method: T(n)=2T(n/2)+n | Numerical |
| 2024 | Q2b | 7 | Substitution method: T(n)=T(n-1)+n, T(1)=1 | Numerical |
| 2023 | Q3a | 5 | Master Theorem: T(n)=4T(n/2)+n³ and T(n)=T(n/2)+2ⁿ | Numerical |
| 2024 | Q3a | 7 | Master Theorem: 3 cases + apply to 3 recurrences | Numerical |
| 2023 | Q4a | 7 | Linear search trace + time/space complexity analysis | Theory+Num |
| 2022 | Q8b | 7 | Master Theorem + T(n)=2T(n^(1/2))+log n | Numerical |
| 2022 | Q9 | 14 | Short notes: Asymptotic Notations | Theory |
Total marks tracked: 108 marks across 3 years.
Topic Heat Map
| Topic | 2022 | 2023 | 2024 | Total Marks |
|---|---|---|---|---|
| Asymptotic Notation (O/Ω/Θ theory) | 9M ✅ | 9M ✅ | 7M ✅ | 25M |
| Substitution Method | 7M ✅ | 7M ✅ | 7M ✅ | 21M |
| Master's Theorem | 7M ✅ | 5M ✅ | 7M ✅ | 19M |
| MCQ — Complexity Analysis | 4M ✅ | 6M ✅ | 6M ✅ | 16M |
The 3 Guaranteed Question Types
1. 🔴 Substitution Method Recurrence (7M) — appeared in ALL 3 years Always a different form. You must show the expansion steps clearly, generalize to the -th step, and substitute the base case. Examples: , , .
2. 🔴 Master's Theorem Application (5–7M) — appeared in ALL 3 years You must state the values of , , and , calculate , and explicitly state which Case applies. Watch out for equations where the theorem fails (like ).
3. 🟠 Asymptotic Notation Theory (7M) — appeared in ALL 3 years Either "explain O/Ω/Θ" or "differentiate best/worst/average cases." Always include graphs and a standard example (like Linear Search) in your answers.
Solved Numericals: The Exam-Critical Calculations
Numerical 1: Substitution Method
"T(n) = T(n−1) + n, with T(1) = 1. Solve using substitution method."
Step 1: Expand the recurrence
Step 2: Substitute back
Step 3: Generalize for k steps
Step 4: Reach the base case We reach the base case when .
Step 5: Solve This is the sum of the first natural numbers. Complexity:
Numerical 2: Master's Theorem Cases
"Use Master's Theorem to solve: (i) T(n) = 2T(n/2) + n, (ii) T(n) = 3T(n/2) + n², (iii) T(n) = 2T(n/2) + n/log n. Explain which case applies."
(i)
- Since , Case 2 applies.
- Solution:
(ii)
- Since for , we check the regularity condition: (holds for ).
- Case 3 applies.
- Solution:
(iii)
- We compare with . Here, is asymptotically smaller than , but NOT polynomially smaller (the ratio is , not ).
- Master's Theorem DOES NOT APPLY (it falls into the gap between Case 1 and Case 2).
Numerical 3: The Variable Substitution Trap
"Find time complexity: T(n) = 2T(n^(1/2)) + log n"
This cannot be solved directly by Master's Theorem. We must transform it. Let . Substitute :
Now, rename the function to make it look standard: Let .
Now apply Master's Theorem to :
- , so Case 2 applies.
- Solution for :
Substitute back :
Knowledge Check
Which of the following notations is used to represent the worst-case time complexity of an algorithm?
High-Yield Subjective Bank: Structure Your Answers
####Explain Asymptotic Notations (7 Marks)**
Answer structure:
- Definition (1M): Asymptotic notations are mathematical tools used to represent the time and space complexity of algorithms as input size .
- Big-O (O) Notation - Upper Bound (2M):
- Represents the worst-case scenario.
- if there exist constants and such that for all .
- Draw a graph showing staying above after .
- Big-Omega (Ω) Notation - Lower Bound (2M):
- Represents the best-case scenario.
- if there exist constants and such that for all .
- Draw a graph showing staying below after .
- Big-Theta (Θ) Notation - Tight Bound (2M):
- Represents the exact bound (average case).
- if there exist constants and such that for all .
- Draw a graph showing sandwiched between and .
Differentiate Best, Worst, Average Case + Why Worst is Preferred (7 Marks)**
Answer structure:
- Best Case (1.5M): Minimum time required for program execution. For Linear Search on array , the target is at . Complexity: . Not very useful for practical guarantees.
- Worst Case (1.5M): Maximum time required. Target is at the very end or not in the array at all. The algorithm must check all elements. Complexity: .
- Average Case (1.5M): Expected time over all possible inputs. For Linear Search, target is somewhere in the middle (expected checks = ). Complexity: .
- Why Worst-Case is Preferred (2.5M):
- It provides an absolute guarantee — the algorithm will never take longer than this.
- Crucial for real-time systems (e.g., medical devices, avionics) where missing a deadline causes failure.
- Average-case is often mathematically difficult to compute and depends on assumptions about input probability distributions that might not hold true in reality.