CSC314 Design and Analysis of Algorithms

Design and Analysis of Algorithms: most repeated questions

Questions that have come up in more than one paper, matched by what they ask rather than exact wording. Most repeated first.

  1. 5×Asked in 2080, 2078, 2076, Model question
    Discuss heapify operation with example. Write down its algorithm and analyze its time and space complexity.Answer coming10
    See the wording in each paper
  2. 5×Asked in 2082, 2081, 2079, 2078, 2076
    Solve the recurrence relation T(n) = 2T(n/2) + n using recursion tree method.Answer coming5
    See the wording in each paper
  3. 3×Asked in 2078, 2076, Model question
    Explain in brief about the complexity classes P, NP and NP Complete.Answer coming5
    See the wording in each paper
  4. 2×Asked in 2079, Model question
    Find the MST from following graph using Kruskal's algorithm. [figure in the original paper]Answer coming5
    See the wording in each paper
  5. 2×Asked in 2078, 2076
    Explain about the divide and conquer paradigm for algorithm design with suitable example. Write the Quick sort algorithm using randomized approach and explain its time complexity.Answer coming10
    See the wording in each paper
  6. 2×Asked in 2076, Model question
    What do you mean by the complexity of an algorithm? Explain the asymptotic notations used to describe the time/space complexity of any algorithm with their geometrical interpretation and example.Answer coming10
    See the wording in each paper
  7. 2×Asked in 2079, Model question
    Write the dynamic programming algorithm for matrix chain multiplication. Find the optimal parenthesization for the matrix chain product ABCD with size of each is given as A 5×10 , B 10×15 , C 15×20 , D 20×30Answer coming10
    See the wording in each paper
  8. 2×Asked in 2081, Model question
    Given a set A=(5,7,10,12,15,18,20, find the subset that sum to 35 using backtracking.Answer coming5
    See the wording in each paper
  9. 2×Asked in 2081, 2079
    Solve the following linear equation using Chinese Remainder Theorem. x = 1 MOD 3 x = 2 MOD 5 x = 0 MOD 7Answer coming5
    See the wording in each paper
  10. 2×Asked in 2076, Model question
    Trace heap sort algorithm for the following data: 2, 9, 3, 12, 15, 8, 11Answer coming5
    See the wording in each paper
  11. 2×Asked in 2079, Model question
    Write short notes on: a) Best, Worst and average case complexity b) Greedy StrategyAnswer coming5
    See the wording in each paper