Unit 1: Algorithm Analysis & Recurrences
Mathematical foundations of algorithm analysis. Asymptotic bounding notations: Big-O (upper bound), Big-Omega (lower bound), Big-Theta (tight bound), Little-o, and Little-omega. Solving recurrence relations via Master Theorem: $T(n) = aT(n/b) + f(n)$ comparing $f(n)$ to $n^{\log_b a}$ across Case 1, Case 2 (with logarithmic factors), and Case 3 (regularity condition). Recursion tree analysis and substitution proofs.
Unit 2: Divide and Conquer Algorithms
Divide, Conquer, and Combine methodology. Merge Sort recurrence $T(n) = 2T(n/2) + O(n) \implies O(n \log n)$ space-time tradeoffs. Quick Sort partitioning schemes (Lomuto vs. Hoare), best-case $O(n \log n)$, worst-case $O(n^2)$ on sorted arrays, randomized pivot selection. Strassen's matrix multiplication reducing subproblems from 8 to 7: $T(n) = 7T(n/2) + O(n^2) \implies O(n^{2.807})$. Convex Hull divide-and-conquer algorithm.
Unit 3: Greedy Method & Graph Optimization
Greedy choice property and optimal substructure. Fractional Knapsack problem ($O(n \log n)$ by value-to-weight ratio). Minimum Spanning Trees (MST): Kruskal's algorithm using Disjoint Set Union (DSU with path compression and union by rank, $O(E \log V)$) vs. Prim's algorithm using priority queue ($O(E \log V)$). Dijkstra's Single Source Shortest Path on non-negative weighted graphs ($O((V + E) \log V)$). Huffman prefix coding for optimal lossless data compression.
Unit 4: Dynamic Programming
Overlapping subproblems and principle of optimality. 0/1 Knapsack Problem with 2D recurrence table $DP[i][w] = \max(DP[i-1][w], DP[i-1][w-w_i] + v_i)$ running in pseudo-polynomial time $O(nW)$. Longest Common Subsequence (LCS) matrix formulation in $O(mn)$ time. Matrix Chain Multiplication (MCM) parenthesization recurrence $m[i,j] = \min_{i \le k < j} (m[i,k] + m[k+1,j] + p_{i-1}p_k p_j)$ in $O(n^3)$ time. Bellman-Ford shortest paths with negative cycle detection ($O(VE)$) and Floyd-Warshall All-Pairs Shortest Path ($O(V^3)$).
Unit 5: Backtracking, Branch & Bound, and NP-Completeness
State space tree traversal with bounding functions. N-Queens problem ($4$-Queens and $8$-Queens constraint formulation). Graph Coloring and Chromatic Number determination. Hamiltonian Cycle detection. Traveling Salesperson Problem (TSP) using Branch and Bound with lower bound calculations. Computational complexity classes: P (polynomial-time solvable), NP (polynomial-time verifiable), NP-Hard, and NP-Complete. Proof of Cook's Theorem and polynomial-time reductions (3-SAT to Vertex Cover and Clique).
๐ Full Course Outline โ Design & Analysis of Algorithms
Complete topic index for all units. Use the interactive guide above for detailed notes and MCQs.
Unit 1: Algorithm Analysis & Recurrences โ Exam Frequency: Very High
The mathematical foundation of DAA. Every algorithm\
- ๐ด Asymptotic Notations โ O, ฮฉ, ฮ, o, ฯ
- ๐ด Master Theorem โ All Cases with Examples
- ๐ด Substitution Method (Proof by Induction)
- ๐ก Recursion Tree Method
- ๐ก Space Complexity & Best/Worst/Average Cases
Unit 2: Divide & Conquer โ Exam Frequency: Very High
Break the problem into subproblems, solve recursively, combine. Merge Sort and Quick Sort are tested in EVERY paper. Strassen\
- ๐ด Merge Sort โ Full Algorithm & Trace
- ๐ด Quick Sort โ Lomuto & Hoare Partitioning
- ๐ก Binary Search & Divide and Conquer Applications
Unit 3: Greedy Algorithms โ Exam Frequency: Very High
Makes locally optimal choices at each step, expecting global optimality. Works ONLY when two properties hold: Greedy-Choice Property and Optimal Substructure. Dijkstra, Kruskal, Prim, Huffman, and Fractional Knapsack are the core exam algorithms.
- ๐ด Fractional Knapsack โ Greedy Solution
- ๐ก Huffman Coding โ Optimal Prefix Code
Unit 4: Dynamic Programming โ Exam Frequency: Very High
Solves problems with overlapping subproblems by storing intermediate results. LCS and 0/1 Knapsack appear in EVERY paper with full table required. Matrix Chain Multiplication is a classic 15-mark question. Know every step.
- ๐ด 0/1 Knapsack โ Complete DP Table & Traceback
- ๐ด Longest Common Subsequence (LCS) โ Full Matrix
- ๐ก Matrix Chain Multiplication (MCM)
- ๐ก Floyd-Warshall & Bellman-Ford
- ๐ก DP Concepts: Memoization vs Tabulation & Principle of Optimality
Unit 5: Backtracking & NP-Completeness โ Exam Frequency: High
Backtracking systematically explores candidate solutions with early pruning. NP theory defines the boundary of efficient computation and is a guaranteed theory question. Know all four classes (P, NP, NP-Hard, NP-Complete) with examples and Cook\
- ๐ด Backtracking Fundamentals & N-Queens
- ๐ด P, NP, NP-Hard, NP-Complete โ Formal Definitions
- ๐ก Polynomial-Time Reductions & NPC Proof Technique
- ๐ก Subset Sum & Branch and Bound