PCCST502Semester 5

Design and Analysis of Algorithms

Computer Science and Engineering

Earlier codes: CST306, CS302

Exam over

Exam over: how the forecast did (Nov 2026)

We said: study the top 20 topics, about 45/60. The real paper gave 51/60 for those 20 topics (random picks: 36/60).

Rebuilt on 29 Nov 2026 from papers up to Jan 2024, without the Nov 2026 paper, by the automatic pipeline. Scored against the real paper. It is a past result, not a promise.

This run would not have passed our live quality check (71% of questions flagged as garbled (max 20%); its practice paper could not be filled with clean question wordings). It is shown as a record, not as a forecast to study from.

Share of the real paper's marks a student could answer, by share of the 41 syllabus topics studied (top-ranked first)
StudiedTopicsForecastRandom
20%750%27%
30%1173%38%
40%1478%50%
50%2085%61%
60%2690%70%

18 of the 41 forecast topics came in the real paper. Part B counts the better question of each pair.

Topics, ranked

The forecast's topics in ranked order, each marked with whether it came in the real paper.

  1. 1

    Solving Recurrences: Master Theorem, Recursion Tree & Substitution Methods

    Came: 14 marksModule 1asked in 5 of 5 papersModule 1 notes (opens in a new tab)

  2. 2

    Complexity Theory: P, NP, NP-Complete, Reductions & Cook's Theorem

    Came: 9 marksModule 4asked in 5 of 5 papersModule 4 notes (opens in a new tab)

  3. 3

    Shortest Path Algorithms: Dijkstra & Bellman-Ford

    Came: 4 marksModule 3asked in 5 of 5 papersModule 3 notes (opens in a new tab)

    2 past questions
    1. May 2023, 7 marks6a) Write Dijkstra's algorithm for single sounce shortest path. Perform its complexity analysis.
    2. May 2023, 5 marksWrite Floyd Warshall algorithm for all pair shortest path problem and perform its complexity analysis.
  4. 4

    Connected Components & Strongly Connected Components (Kosaraju's Algorithm)

    Didn't comeModule 2asked in 2 of 5 papersModule 2 notes (opens in a new tab)

  5. 5

    Dynamic Programming: Principle of Optimality, 0/1 Knapsack, Floyd-Warshall & LCS

    Came: 4 marksModule 3asked in 5 of 5 papersModule 3 notes (opens in a new tab)

    1 past question
    1. May 2023, 3 marksApply greedy algorithm for fractional knapsack to find the optimal ordering for loading the items in the knapsack. Let the knapsack capacity, M:I5 Items Weight Profit I 8 24 2 9 t8 3 5 20
  6. 6

    Divide and Conquer: Quick Sort, Merge Sort & Strassen's Matrix Multiplication

    Came: 9 marksModule 1asked in 5 of 5 papersModule 1 notes (opens in a new tab)

    1 past question
    1. May 2023, 7 markswrite a divide and conquer algorithm for 2-way merge sort and perform its complexity analysis.
  7. 7

    Branch and Bound: Traveling Salesperson Problem & 0/1 Knapsack

    Came: 3 marksModule 4asked in 5 of 5 papersModule 4 notes (opens in a new tab)

    1 past question
    1. May 2023, 9 marksDefine Travelling Salesman Problem. Solve the following instance ofTSP using branch and bound technique. The cost matrix is given below: A l0 8 9 7 B l0 l0 5 6 C 8 l0 8 9
  8. 8

    Greedy Strategy & Applications: Fractional Knapsack & Activity Selection Problem

    Came: 5 marksModule 2asked in 5 of 5 papersModule 2 notes (opens in a new tab)

    2 past questions
    1. May 2023, 3 marksGive the control abstraction of Divide and Conquer algorithm design strategy.
    2. May 2023, 7 marksWrite the control abstraction for Gieedf design technique. Give a greedy algorithm for fractional knapsack problem.
  9. 9

    Asymptotic Notations: Big-O, Big-Omega, Big-Theta, Little-o & Little-omega

    Came: 3 marksModule 1asked in 5 of 5 papersModule 1 notes (opens in a new tab)

    1 past question
    1. May 2023, 6 marksDefine the asymptotic notations: Big Oh, Big Omega, Theta, little oh and little omega.
  10. 10

    Minimum Spanning Trees: Kruskal's & Prim's Algorithms

    Came: 3 marksModule 3asked in 5 of 5 papersModule 3 notes (opens in a new tab)

    1 past question
    1. May 2023, 7 marksGive Kruskal's algorithm for minimum cost spanning tree computation. Apply the algorithm to find the minimum cost spanning tree for the following graph
  11. 11

    Backtracking: N-Queens, Sum of Subsets & Hamiltonian Circuit

    Came: 3 marksModule 4asked in 3 of 5 papersModule 4 notes (opens in a new tab)

    2 past questions
    1. May 2023, 3 marksDistinguish the branch-and-bound technique from the backtracking technique.
    2. May 2023, 6 marksDefine nqueens problem. Draw the state space tree for 4-queens problem using backtracking method.
  12. 12

    Topological Sorting (DFS Finish Times & Kahn's Indegree Algorithm)

    Came: 3 marksModule 2asked in 4 of 5 papersModule 2 notes (opens in a new tab)

  13. 13

    Analysis of Non-Recursive & Recursive Algorithms: Lower Bounds & Order Statistics

    Didn't comeModule 1asked in 4 of 5 papersModule 1 notes (opens in a new tab)

    2 of 3 past questions (others unreadable)
    1. May 2023, 8 marksDiscuss the concept of best case, worst case and average case complexity of an algorithm with linear search algorithm.
    2. May 2023, 7 marksGive a randomized version of quicksort algorithm and perform its expected running time analysis.
  14. 14

    Approximation Algorithms: Vertex Cover & Traveling Salesperson Problem (TSP)

    Didn't comeModule 4asked in 3 of 5 papersModule 4 notes (opens in a new tab)

    2 past questions
    1. May 2023, 3 marksalgorithm. Discuss the need for approximation
    2. May 2023, 7 marksDefine bin packing problem. Discuss the first fit strategy for solving it. State the approximation ratio of the algorithm.
  15. 15

    Graph Traversals (DFS & BFS) & Edge Classification: traversal, first, breadth

    Came: 9 marksModule 2asked in 3 of 5 papersModule 2 notes (opens in a new tab)

  16. 16

    Dynamic Programming: Matrix Chain Multiplication & Optimal Binary Search Trees (OBST): sequence, whose, dimensions

    Came: 5 marksModule 3asked in 2 of 5 papersModule 3 notes (opens in a new tab)

  17. 17

    Graph Traversals (DFS & BFS) & Edge Classification: problem, colouring, graph

    Didn't comeModule 2asked in 3 of 5 papersModule 2 notes (opens in a new tab)

    1 past question
    1. May 2023, 3 marksDefine graph colouring problem.
  18. 18

    Dynamic Programming: Matrix Chain Multiplication & Optimal Binary Search Trees (OBST): required, a2, optimum

    Didn't comeModule 3asked in 1 of 5 papersModule 3 notes (opens in a new tab)

  19. 19

    Recurrence Equations, Solution of Recurrence Equations: Iteration Method

    Came: 4 marksModule 1asked in 5 of 5 papersModule 1 notes (opens in a new tab)

  20. 20

    Classes: Randomized Algorithms

    Didn't comeModule 4asked in 3 of 5 papersModule 4 notes (opens in a new tab)

    1 past question
    1. May 2023, 7 marksExplain the benefits of randomized algorithm over deterministic algorithm. Discuss briefly the major categories ofrandomized algorithms. Give example for each category.
  21. Your 20 topics end here: 51/60 of the real Nov 2026 paper
  22. 21

    Graph Traversals (DFS & BFS) & Edge Classification: vertex, set, let

    Didn't comeModule 2asked in 1 of 5 papersModule 2 notes (opens in a new tab)

  23. 22

    Dynamic Programming: Matrix Chain Multiplication & Optimal Binary Search Trees (OBST): dynamic, matrix, programming

    Didn't comeModule 3asked in 2 of 5 papersModule 3 notes (opens in a new tab)

    2 past questions
    1. May 2023, 3 marksExplain about the structure of an optimal paranthesization of matrix-chain multiplication problem.
    2. May 2023, 8 marksConsider the following four matrices and perform chain matrix multiplication using the dynamic programming approach. Finally give the optimal cost of multiplication and optimal parenthesization. ABCD 4x5 5x3 3x2 2x7
  24. 23

    AVL Property

    Came: 3 marksModule 1asked in 4 of 5 papersModule 1 notes (opens in a new tab)

    1 past question
    1. May 2023, 7 marksIllustrate the advantage of AVL trees with a suitable example. Discuss the various rotations required to balance the height of AVL tree during insertion and deletion.
  25. 24

    Classes: Bin Packing

    Came: 9 marksModule 4asked in 2 of 5 papersModule 4 notes (opens in a new tab)

    1 past question
    1. May 2023, 7 marksDefine bin packing problem. Discuss the first fit strategy for solving it. State the approximation ratio of the algorithm.
  26. 25

    Graph Traversals (DFS & BFS) & Edge Classification: category, starting, order

    Didn't comeModule 2asked in 1 of 5 papersModule 2 notes (opens in a new tab)

  27. 26

    Clearitt Learning

    Didn't comeModule 1asked in 4 of 5 papersModule 1 notes (opens in a new tab)

    1 past question
    1. May 2023, 7 marksIllustrate the advantage of AVL trees with a suitable example. Discuss the various rotations required to balance the height of AVL tree during insertion and deletion.
  28. 27

    Definitions of Monte Carlo and Las Vegas algorithms

    Came: 3 marksModule 4asked in 3 of 5 papersModule 4 notes (opens in a new tab)

  29. 28

    Dynamic Programming: Matrix Chain Multiplication & Optimal Binary Search Trees (OBST) (other)

    Didn't comeModule 3asked in 2 of 5 papersModule 3 notes (opens in a new tab)

  30. 29

    Graph Traversals (DFS & BFS) & Edge Classification (other)

    Didn't comeModule 2asked in 3 of 5 papersModule 2 notes (opens in a new tab)

  31. 30

    Algorithms: Characteristics

    Didn't comeModule 1asked in 1 of 5 papersModule 1 notes (opens in a new tab)

  32. 31

    Clearitt Learning

    Didn't comeModule 3asked in 2 of 5 papersModule 3 notes (opens in a new tab)

    1 past question
    1. May 2023, 6 marksDefine nqueens problem. Draw the state space tree for 4-queens problem using backtracking method.
  33. 32

    Clearitt Learning

    Didn't comeModule 4asked in 0 of 5 papersModule 4 notes (opens in a new tab)

  34. 33

    Clearitt Learning

    Didn't comeModule 2asked in 3 of 5 papersModule 2 notes (opens in a new tab)

  35. 34

    Why it matters?

    Didn't comeModule 1asked in 2 of 5 papersModule 1 notes (opens in a new tab)

  36. 35

    Algorithm FirstFit(s[1..n])

    Didn't comeModule 4asked in 0 of 5 papersModule 4 notes (opens in a new tab)

  37. 36

    Disjoint set operations

    Came: 3 marksModule 2asked in 2 of 5 papersModule 2 notes (opens in a new tab)

    3 past questions
    1. May 2023, 3 marksDefine MAKE-SET(x), UNIoN(x,y) and FIND_sET(x) operations of disjoint set data structure with a suitable example.
    2. May 2023, 7 marksWhat are the operations supported by Disjoint Data Structure? Explain the working of Disjoint Set Data Structure for computing Connected Components of an undirected graph given in the following Figure. r
    3. May 2023, 7 marksPerform the following operations in the given AVL trees. I ) Insert 54 in Tree I 2) Delete 15 from Tree2.
  38. 37

    Property 3: Transitive Property

    Didn't comeModule 1asked in 0 of 5 papersModule 1 notes (opens in a new tab)

  39. 38

    Clearitt Learning

    Didn't comeModule 2asked in 1 of 5 papersModule 2 notes (opens in a new tab)

  40. 39

    Comparing Polynomial Functions

    Didn't comeModule 1asked in 0 of 5 papersModule 1 notes (opens in a new tab)

  41. 40

    Union and find algorithms

    Didn't comeModule 2asked in 1 of 5 papersModule 2 notes (opens in a new tab)

  42. 41

    Criteria for Analysing Algorithms

    Didn't comeModule 1asked in 0 of 5 papersModule 1 notes (opens in a new tab)

The real paper (Nov 2026)

Each question with the topic the forecast had for it. Marks are as printed; in Part B a student answers one question from each pair.

  1. A1

    Define Big-O, Big-Omega, Big-Theta with examples and graphs.

    3 marksforecast topic 9: Asymptotic Notations: Big-O, Big-Omega, Big-Theta, Little-o & Little-omega

  2. A2

    Construct AVL tree inserting 1,2,3,4,5,6; state rotation at each insertion.

    3 marksforecast topic 23: AVL Property

  3. A3

    Linked-list representation of UNION(5,9) for S1={2,5,7,10}, S2={3,6,9}.

    3 marksforecast topic 36: Disjoint set operations

  4. A4

    Topological sort of DAG on A..I with intermediate steps.

    3 marksforecast topic 12: Topological Sorting (DFS Finish Times & Kahn's Indegree Algorithm)

  5. A5

    Apply Kruskal's algorithm to find MST of given graph.

    3 marksforecast topic 10: Minimum Spanning Trees: Kruskal's & Prim's Algorithms

  6. A6

    Write the control abstraction of backtracking.

    3 marksforecast topic 11: Backtracking: N-Queens, Sum of Subsets & Hamiltonian Circuit

  7. A7

    Define Travelling Salesman Problem. Give an example.

    3 marksforecast topic 7: Branch and Bound: Traveling Salesperson Problem & 0/1 Knapsack

  8. A8

    Differentiate Las Vegas and Monte Carlo algorithms with one example each.

    3 marksforecast topic 27: Definitions of Monte Carlo and Las Vegas algorithms

  9. B9a
  10. B9b
  11. B10a
  12. B10b
  13. B11a
  14. B11b

    Explain Strassen's matrix multiplication with example; analyse complexity.

    5 marksforecast topic 6: Divide and Conquer: Quick Sort, Merge Sort & Strassen's Matrix Multiplication

  15. B12a

    DFS algorithm; analyse time complexity with adjacency list.

    5 marksforecast topic 15: Graph Traversals (DFS & BFS) & Edge Classification: traversal, first, breadth

  16. B12b

    2-way merge sort on [24,18,21,15,30,12,27,9]; recurrence and complexity.

    4 marksforecast topic 6: Divide and Conquer: Quick Sort, Merge Sort & Strassen's Matrix Multiplication

  17. B13a

    Dijkstra from A on given directed graph.

    4 marksforecast topic 3: Shortest Path Algorithms: Dijkstra & Bellman-Ford

  18. B13b

    Fractional knapsack n=4, m=25, W=(20,15,10,5), P=(40,30,25,10).

    5 marksforecast topic 8: Greedy Strategy & Applications: Fractional Knapsack & Activity Selection Problem

  19. B14a
  20. B14b
  21. B15a

    Define Bin Packing formally: objective and constraints.

    3 marksforecast topic 24: Classes: Bin Packing

  22. B15b

    Items 4,8,2,6,5 (cap 10): FF, BF, FFD; compare; optimal bins.

    6 marksforecast topic 24: Classes: Bin Packing

  23. B16a

    Minimum vertex cover and maximum clique of given 5-vertex graph.

    3 marksforecast topic 2: Complexity Theory: P, NP, NP-Complete, Reductions & Cook's Theorem

  24. B16b

    Define NP-Complete; prove Vertex Cover is NP-Complete.

    6 marksforecast topic 2: Complexity Theory: P, NP, NP-Complete, Reductions & Cook's Theorem