These notes cover the full Design and Analysis of Algorithms course for BCA Semester IV 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: Analysis of Algorithms and Recursion
- Define an algorithm and state its properties and the criteria for judging it.
- Compute time and space complexity by counting basic operations.
- Use O, Ω and Θ notation and compare growth rates of functions.
- Analyse sequential search, bubble, selection and insertion sort and matrix multiplication.
- Write and solve recurrences for recursive algorithms.
- Apply the Master theorem to divide and conquer recurrences.
Unit II: Divide and Conquer and the Greedy Technique
- Explain the general divide and conquer method and write its recurrence.
- Analyse binary search, finding maximum and minimum, merge sort and quick sort.
- Multiply matrices using Strassen's method and state its complexity.
- Prove the n log n lower bound for comparison-based sorting.
- Explain the greedy method and solve the fractional knapsack problem.
- Apply Prim's, Kruskal's and Dijkstra's algorithms and analyse them.
Unit III: Dynamic Programming and Graph Algorithms
- Explain dynamic programming and when it applies.
- Compute Fibonacci numbers and binomial coefficients by tabulation.
- Apply the Floyd-Warshall algorithm to find all-pairs shortest paths.
- Solve the 0/1 knapsack problem with a dynamic programming table.
- Perform breadth first and depth first search and analyse them.
- Find connected components and a topological ordering of a directed acyclic graph.
Unit IV: Backtracking and Computational Intractability
- Explain the limits of algorithmic power and the idea of backtracking.
- Solve the n-Queen problem by backtracking and state its complexity.
- Solve sum of subsets using a state-space tree with pruning.
- Find Hamiltonian circuits and vertex covers and explain their difficulty.
- Explain non-deterministic algorithms and the classes P and NP.
- Distinguish NP-complete from NP-hard problems and describe reductions.
Who this is for
BCA Semester IV students studying Design and Analysis of Algorithms (course code 26BCA404DS03), 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: Analysis of Algorithms and Recursion
Unit II: Divide and Conquer and the Greedy Technique
Unit III: Dynamic Programming and Graph Algorithms
Unit IV: Backtracking and Computational Intractability
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 Design and Analysis of Algorithms, course code 26BCA404DS03
