Live online classes · Mon–Sat · India-wide

Design and Analysis of Algorithm (BCS503) Important Questions

AKTU B.Tech · 3rd Year · Exam 2026-27. Worked out from 10 real papers, 2018-19 to 2025-26.

  • 10AKTU papers analysed
  • 24must-do topics
  • 19repeated 2-mark questions
Share on WhatsApp

The PDF has every topic with the years it came, a unit-wise plan and the sources. Free. Share it with your class.

Most likely question in each unit

UnitMost likelyBackup topics
1Introduction: analysing algorithms, growth of functions, recurrences; Shell, quick, merge, heap sort; sorting in linear timeMerge sort / quick sort trace + complexity (7/10, 5/10)Recurrence by recursion tree or iteration (7/10) · Counting sort · Heap sort · Asymptotic bounds of f(n)
2Advanced data structures: Red-Black trees, B-trees, binomial heaps, Fibonacci heaps, tries, skip listRed-Black tree insertion (9/10)Binomial heap union / build (7/10) · B-tree insertion with t = 3 (6/10) · Fibonacci heap · Trie / skip list
3Divide & conquer (sorting, matrix multiplication, convex hull, searching); greedy: knapsack, MST (Prim, Kruskal), Dijkstra, Bellman-FordKruskal / Prim MST (10/10)Dijkstra or Bellman-Ford (9/10) · Fractional knapsack · Convex hull · D&C matrix multiplication
4Dynamic programming: knapsack, Floyd-Warshall, resource allocation; backtracking & branch and bound: TSP, graph colouring, n-queens, Hamiltonian cycles, sum of subsets0/1 knapsack by DP (5/10, all 3 latest) or N-queens (6/10)TSP branch & bound (5/10) · Floyd-Warshall (7/10) · Sum of subsets · LCS / matrix-chain
5Selected topics: algebraic computation, FFT, string matching, NP-completeness, approximation and randomized algorithmsP, NP, NP-hard, NP-complete (10/10)KMP prefix function (6/10) · Rabin-Karp / Boyer-Moore (7/10) · Approx vertex cover (9/10) · Randomized algorithms

Must-do topics

These came in most of the 10 papers. Prepare them first.

  • Minimum spanning tree: Kruskal's & Prim's algorithms

    came in 10 of 10 papers

    Unit 3 · 2018-19 to 2025-26 · HOT: in all 10 papers

    How to answer: Write both algorithms. Kruskal: sort edges, add if no cycle (union-find), O(E log E). Prim: grow from a vertex using min-priority queue, O(E log V). Show the MST step by step on the given graph with total weight. Know: distinct edge weights ⇒ unique MST (cut property proof).

    Last asked (2025-26 (carry-over), Section C): Explain Greedy Method with Prim's and Kruskal's algorithms.

  • NP-completeness (P, NP, NP-hard, NP-complete, reductions, proofs)

    came in 10 of 10 papers

    Unit 5 · 2018-19 to 2025-26 · HOT: in all 10 papers

    How to answer: Define P, NP (polynomial-time verifiable), NP-hard, NP-complete and draw the Venn diagram (assuming P ≠ NP). Polynomial-time reduction A ≤p B. Steps to prove NPC: show in NP + reduce a known NPC problem to it (e.g. Hamiltonian cycle ≤p TSP, 3-SAT ≤p clique). List known NPC problems.

    Last asked (2025-26 (carry-over), Section C): Explain NP-Completeness and polynomial time reduction.

  • Red-Black trees (insertion & deletion cases, rotations, height bound 2 lg n+1)

    came in 9 of 10 papers

    Unit 2 · 2018-19 to 2025-26

    How to answer: List the 5 RB properties. Insert as in BST (colour red), then fix: Case 1 uncle red → recolour; Case 2/3 uncle black → rotate + recolour. Draw the tree after EVERY insertion of the given keys. Know left rotation, deletion cases (double black) and the proof height ≤ 2 lg(n+1).

    Last asked (2025-26 (carry-over), Section B): Explain Red-Black Trees and their properties.

  • Single-source shortest paths: Dijkstra & Bellman-Ford

    came in 9 of 10 papers

    Unit 3 · 2018-19 to 2025-26

    How to answer: Dijkstra: initialise d = ∞, relax edges of the min vertex; make a table of d[] after each step; O((V+E) log V). Show with a small graph that it fails with negative edges. Bellman-Ford: relax all edges V-1 times, one more pass detects negative cycles; O(VE).

    Last asked (2025-26 (carry-over), Section C): Explain Dijkstra's and Bellman-Ford algorithms.

  • Approximation algorithms (vertex cover, set cover, approximate TSP)

    came in 9 of 10 papers

    Unit 5 · 2018-19 to 2025-26

    How to answer: Approximation ratio ρ(n): C/C* ≤ ρ(n). APPROX-VERTEX-COVER: pick any edge, add both ends, delete incident edges; prove it is a 2-approximation (picked edges form a matching). Greedy set cover (ln n ratio). Approx-TSP via MST preorder walk (ratio 2 with triangle inequality).

    Last asked (2025-26 (carry-over), Section C): Discuss Approximation and Randomized Algorithms.

  • Algorithm basics & performance analysis (definition, characteristics, design steps, best/worst/average case)

    came in 8 of 10 papers

    Unit 1 · 2019-20 to 2025-26

    How to answer: Define algorithm + 5 characteristics (input, output, definiteness, finiteness, effectiveness). Steps: problem definition → design → correctness → analysis → implementation → testing. Analysis = time & space, best / worst / average case with linear search or insertion sort as the example.

    Last asked (2025-26 (carry-over), Section A): Define an algorithm / What is time complexity? / Differentiate between best case and worst case analysis.

  • Asymptotic notations & growth of functions (O, Ω, Θ; ranking functions, bounds)

    came in 8 of 10 papers

    Unit 1 · 2018-19 to 2025-26

    How to answer: Write formal definitions of O, Ω, Θ (with constants c, n₀) and a graph for each. To rank functions take logs or ratio limits: log log n < log n < (log n)² < n < n log n < n² < 2ⁿ < n!. For f(n) = 3n+2 show 3n ≤ 3n+2 ≤ 4n for n ≥ 2, so it is Θ(n).

    Last asked (2025-26 (carry-over), Section B): Explain growth of functions and asymptotic notations with examples.

  • Recurrence relations (master theorem, recursion tree, iteration, substitution)

    came in 7 of 10 papers

    Unit 1 · 2018-19 to 2025-26

    How to answer: State the 3 cases of the master theorem and apply to T(n) = aT(n/b) + f(n). For uneven splits like T(n/2)+T(n/4)+T(n/8)+n or T(n/4)+T(n/2)+n² draw the recursion tree, sum each level (geometric series). For T(n) = 2T(n-1)+n or T(n-1)+n⁴ use back-substitution (iteration).

    Last asked (2025-26, Section B): Compute the time complexity of T(n) = 2T(n-1) + n for n > 1, T(1) = 1.

  • Merge sort (trace + n log n derivation)

    came in 7 of 10 papers

    Unit 1 · 2019-20 to 2025-26

    How to answer: Write MERGE-SORT and MERGE pseudo code, trace the given array as a split/merge tree, then derive T(n) = 2T(n/2) + n = Θ(n log n) (master case 2). Mention: stable, needs O(n) extra space.

    Last asked (2025-26 (carry-over), Section B): Explain Merge Sort and compare it with Heap Sort.

  • Insertion sort, Shell sort, stability & comparison of sorting algorithms

    came in 7 of 10 papers

    Unit 1 · 2018-19 to 2025-26

    How to answer: Insertion sort pseudo code; best O(n) (sorted: n-1 comparisons), worst O(n²). Stable sort keeps equal keys in order: insertion, merge, counting are stable; quick, heap, shell, selection are not. Shell sort = insertion sort on gap sequences (n/2, n/4, ... 1). Comparison table of all sorts (best/avg/worst, space, stable).

    Last asked (2025-26 (carry-over), Section A): What is Shell Sort?

  • Binomial heaps (properties of binomial trees, union, build, decrease-key, delete)

    came in 7 of 10 papers

    Unit 2 · 2018-19 to 2024-25

    How to answer: Binomial tree Bk: 2^k nodes, height k, C(k,i) nodes at depth i, root degree k. Union = merge root lists by degree then link equal-degree trees (3 cases + case of 3 equal degrees). Build a heap by inserting keys one by one. Decrease-key bubbles up; delete = decrease to -∞ then extract-min. All O(log n).

    Last asked (2024-25, Section C): Design a Binomial Heap for A = {7, 2, 4, 17, 1, 11, 6, 8, 15, 10, 20}.

  • Skip list, tries & other new BCS503 structures (compressed trie, BST, persistent DS)

    came in 7 of 10 papers

    Unit 2 · 2020-21 to 2025-26

    How to answer: Skip list: layered sorted linked lists, node promoted with p = 1/2; search right-then-down; insert at level 0 and flip coins; expected nodes at level i = n/2^i, search O(log n). Trie: one edge per character, mark word ends, draw it for the given words; compressed trie merges single-child chains. Persistent DS = old versions kept after updates.

    Last asked (2025-26, Section C): Skip list with promotion probability 1/2: expected number of nodes at the second level if the base level has 100 nodes?

  • Divide & conquer and greedy basics (binary search, matrix multiplication, xⁿ, activity selection, paradigm comparison)

    came in 7 of 10 papers

    Unit 3 · 2018-19 to 2025-26

    How to answer: D&C = divide, conquer, combine; examples: binary search O(log n), Strassen 7 multiplications → O(n^2.81), xⁿ by squaring O(log n). Greedy = locally best choice + greedy-choice property + optimal substructure; activity selection: sort by finish time and pick compatible ones. Table comparing D&C vs DP vs greedy.

    Last asked (2025-26 (carry-over), Section C): Explain Divide and Conquer strategy with matrix multiplication example.

  • Dynamic programming basics & 0/1 knapsack (principle of optimality, DP table)

    came in 7 of 10 papers

    Unit 4 · 2018-19 to 2025-26 · HOT: in 3 straight papers

    How to answer: Principle of optimality + elements (optimal substructure, overlapping sub-problems, tabulation); DP vs recursion with Fibonacci. 0/1 knapsack: K[i][w] = max(K[i-1][w], pᵢ + K[i-1][w-wᵢ]); fill the (n+1)×(m+1) table, trace back the chosen items, O(nm). Show greedy-by-ratio is not optimal for 0/1.

    Last asked (2025-26 (carry-over), Section C): Explain Dynamic Programming using 0/1 Knapsack problem.

  • All-pairs shortest paths: Floyd-Warshall (and Warshall's transitive closure)

    came in 7 of 10 papers

    Unit 4 · 2018-19 to 2025-26

    How to answer: D⁽ᵏ⁾[i][j] = min(D⁽ᵏ⁻¹⁾[i][j], D⁽ᵏ⁻¹⁾[i][k] + D⁽ᵏ⁻¹⁾[k][j]); write D⁰ from the graph and show every D⁽ᵏ⁾ matrix. Time Θ(n³), space Θ(n²). Warshall = same with OR/AND on the adjacency matrix for transitive closure.

    Last asked (2025-26 (carry-over), Section C): Explain Floyd's and Warshall's algorithms for all-pairs shortest paths.

  • Naive, Rabin-Karp & Boyer-Moore string matching

    came in 7 of 10 papers

    Unit 5 · 2018-19 to 2025-26

    How to answer: Naive: try all n-m+1 shifts, O((n-m+1)m). Rabin-Karp: rolling hash mod q, check on hash match; count valid matches and spurious hits (e.g. T = 3141592653589793, P = 26, q = 11); n-m+1 hash values. Boyer-Moore: compare right to left; bad-character and good-suffix shift rules.

    Last asked (2025-26, Section C): Describe the Boyer-Moore algorithm. How do the 'bad character' and 'good suffix' heuristics work?

  • B-Trees (insertion with minimum degree t, deletion cases, height)

    came in 6 of 10 papers

    Unit 2 · 2018-19 to 2025-26

    How to answer: Properties for minimum degree t: every node has t-1 to 2t-1 keys, root ≥ 1. Insert top-down, splitting full nodes (2t-1 keys) on the way; count the splits. Deletion: 3 cases (leaf, internal with predecessor/successor, merge/borrow). Height h ≤ log_t((n+1)/2).

    Last asked (2025-26 (carry-over), Section B): Explain B-Trees and their applications.

  • N-Queens problem (4-queens state-space tree)

    came in 6 of 10 papers

    Unit 4 · 2020-21 to 2025-26

    How to answer: Place queens row by row; check column and both diagonals (|i-k| = |j-l|). Draw the state-space tree for 4 queens showing backtracks; solutions (2,4,1,3) and (3,1,4,2). Write PLACE and NQUEENS pseudo code.

    Last asked (2025-26 (carry-over), Section C): Explain Backtracking technique with N-Queen problem.

  • KMP string matching (prefix function π)

    came in 6 of 10 papers

    Unit 5 · 2019-20 to 2024-25

    How to answer: Write COMPUTE-PREFIX-FUNCTION and KMP-MATCHER. Make the π table for the given pattern (e.g. ababbabbabbababbabb) step by step, then trace the matcher on the text and report shifts. Time O(m + n).

    Last asked (2024-25, Section C): Write the KMP algorithm. Compute the prefix function π for the pattern ababbabbabbababbabb over {a, b}.

  • Randomized algorithms (Las Vegas / Monte Carlo, randomized quick sort)

    came in 6 of 10 papers

    Unit 5 · 2020-21 to 2025-26

    How to answer: Definition: uses random numbers in its logic. Las Vegas (always correct, random time, e.g. randomized quick sort) vs Monte Carlo (fixed time, may be wrong, e.g. Miller-Rabin primality). Write RANDOMIZED-PARTITION; expected O(n log n).

    Last asked (2025-26 (carry-over), Section C): Discuss Approximation and Randomized Algorithms.

  • Quick sort (partition, best/worst case, comparisons)

    came in 5 of 10 papers

    Unit 1 · 2021-22 to 2025-26

    How to answer: Write PARTITION (last or first element as pivot) and QUICKSORT, trace the given list. Best/average: T(n) = 2T(n/2) + n = O(n log n); worst (sorted input): T(n) = T(n-1) + n = O(n²). Be able to count comparisons for a sorted input (n(n-1)/2).

    Last asked (2025-26 (carry-over), Section B): Explain Quick Sort algorithm and analyze its time complexity.

  • Sorting in linear time & comparison-sort lower bound (counting sort, Ω of n log n)

    came in 5 of 10 papers

    Unit 1 · 2019-20 to 2023-24

    How to answer: Counting sort: build count array C, take prefix sums, place elements from right to left (stable); show arrays C and B. Time O(n + k). Lower bound: decision tree with n! leaves has height ≥ log(n!) = Ω(n log n).

    Last asked (2023-24, Section B): Sort the array A = {2,5,3,0,2,3,0,3} by counting sort.

  • Backtracking vs branch & bound (concepts, state-space tree)

    came in 5 of 10 papers

    Unit 4 · 2020-21 to 2024-25

    How to answer: Backtracking: DFS of the state-space tree with a bounding (feasibility) function, finds all/any solutions. Branch & bound: BFS/least-cost search with lower bounds, for optimisation problems. Give a 4-row difference table with N-queens vs TSP as examples.

    Last asked (2024-25, Section A): With a suitable example explain 'Branch and Bound'.

  • Travelling salesman problem (branch & bound reduced cost matrix; DP)

    came in 5 of 10 papers

    Unit 4 · 2020-21 to 2025-26

    How to answer: Branch & bound: reduce rows then columns, lower bound = sum of reductions; for each child set row i, column j to ∞ and A[j][1] = ∞, reduce again, cost = parent + A[i][j] + reduction. Expand the least-cost node; draw the tree and give the tour and cost. DP form: g(i, S) = min(c_ij + g(j, S - {j})).

    Last asked (2025-26 (carry-over), Section C): Explain Branch and Bound technique with Travelling Salesman Problem.

High-chance topics

  • Other backtracking problems: sum of subsets, graph colouring, Hamiltonian cyclesUnit 4 · came in 6 of 10 papers
  • Convex hull (Graham scan / divide & conquer)Unit 3 · came in 5 of 10 papers
  • Fast Fourier Transform & algebraic computationUnit 5 · came in 5 of 10 papers
  • Heap sort (build-heap trace, n log n analysis)Unit 1 · came in 4 of 10 papers
  • Fibonacci heaps (properties, operations, binomial vs Fibonacci)Unit 2 · came in 4 of 10 papers
  • Fractional knapsack (greedy by profit/weight)Unit 3 · came in 4 of 10 papers
  • LCS & matrix-chain multiplication (DP)Unit 4 · came in 3 of 10 papers

Repeated 2-mark questions (Section A)

  1. Asymptotic notation / order functions by growth rate (e.g. show 10n² + 9 = O(n²))asked 6 times
  2. P, NP, NP-hard, NP-complete / polynomial-time reduction or verifiabilityasked 6 times
  3. Differentiate backtracking and branch & boundasked 5 times
  4. Define algorithm and write its characteristicsasked 4 times
  5. How is the performance of an algorithm analysed / compared (best, worst, average case)?asked 4 times
  6. Principle of optimality / elements of dynamic programmingasked 4 times
  7. Fast Fourier Transform and its applicationsasked 4 times
  8. Derive the time complexity of merge sort / quick sort / heap sortasked 3 times
  9. Properties of binomial trees / binomial heapasked 3 times
  10. Skip list: what it is / how to insert a nodeasked 3 times
  11. Red-Black tree (left rotation / black height / definition)asked 3 times
  12. What are greedy algorithms? Characteristicsasked 3 times
  13. Graph colouring: definition and applicationsasked 3 times
  14. Randomized algorithmsasked 3 times
  15. Basic steps in designing / developing an algorithmasked 2 times
  16. Solve a recurrence (master theorem), e.g. T(n) = 4T(n/2) + n²asked 2 times
  17. Properties / short note on Fibonacci heapasked 2 times
  18. What is convex hull?asked 2 times
  19. Naive string matcher / Boyer-Moore algorithmasked 2 times

The 10 problem types to practise by hand

  1. Recursion tree for T(n) = 3T(n/4) + cn² and T(n) = T(n/2) + T(n/4) + T(n/8) + n; iteration for T(n) = 2T(n-1) + n
  2. Merge sort and quick sort traces (count comparisons on a sorted input)
  3. Counting sort and heap sort traces on a given array
  4. Red-Black tree: insert a list of keys, then delete two keys
  5. B-tree insertion with t = 3 (count splits) and binomial heap union / build from a list
  6. Kruskal and Prim on the same weighted graph; Dijkstra table; Bellman-Ford with a negative edge
  7. Fractional knapsack (greedy) and 0/1 knapsack (DP table) with 4-7 items
  8. Floyd-Warshall D⁰ … D⁴ matrices; LCS table; matrix-chain m and s tables
  9. 4-queens and sum-of-subsets state-space trees; TSP branch & bound with a reduced cost matrix
  10. KMP prefix function for ababbabbabbababbabb; Rabin-Karp spurious hits for T = 3141592653589793, P = 26, q = 11

Get the Design and Analysis of Algorithm PDF

Share on WhatsApp

Not official AKTU material. The important questions are based on 10 previous year papers (2018-19 to 2025-26). The real paper can differ. Syllabus cross-checked with the official AKTU 3rd-year CSE scheme (BCS503, effective 2024-25). Research date: 20 Nov 2026.

More subjects: all B.Tech papers. Practise coding for free on Kinetic CodeGuide.

Every course is taught live online.We do not operate any offline centre — join from anywhere in India.Live online only · no offline centreFormerly Easy Coders