Csit Notes

Design and Analysis of Algorithms (CSC325) 2081 BS Past Questions & Solutions

Tribhuvan University (TU) 2081 BS board exam question paper with verified step-by-step solutions for BSc CSIT Fifth Semester.

  • CSC325
  • Core Course
  • 4 Exam Years

Tribhuvan University

Institute of Science and Technology

2081 B.S.

Bachelor Level:
B.Sc. CSIT
Semester:
Fifth Semester
Subject:
Design and Analysis of Algorithms (CSC325)
Full Marks:
60 / 80
Pass Marks:
24 / 32

Candidates are required to give their answers in their own words as far as practicable.

Group A

Long Answer Questions

Attempt any Two questions.

  1. Question 1
    Differentiate between dynamic programming and memoization. Compute the shortest path between every pair in the graph using Floyd Warshall algorithm. [2+8]
    Design and Analysis of Algorithms 2081 Question 1
  2. Question 2
    What is the worst case of quick sort and how does randomized quick sort handle it? Sort data {-2, 4, -3, 6, 12, 10, 11, 13, 9} using quick sort. [3+7]
  3. Question 3
    Does greedy algorithm guarantee optimal solution? Solve Fractional knapsack to find maximum loot (W=20kg). [2+8]
    Design and Analysis of Algorithms 2081 Question 3

Group B

Short Answer Questions

Attempt any Eight questions.

  1. Question 4
    Given a set $A = \\{5, 7, 10, 12, 15, 18, 20\\}$, find the subset that sum to 35 using backtracking. [5]
  2. Question 5
    Solve the following recurrence relations using master's method: a) $T(n) = 2T\left(\frac{n}{2}\right) + n^3$, for $n > 1$ and $T(1) = 1$ b) $T(n) = 2T\left(\frac{n}{4}\right) + 1$, for $n > 1$ and $T(1) = 1$ $[2.5 + 2.5]$
  3. Question 6
    Write the algorithm to find nth fibonacci number with its time and space complexity. [5]
  4. Question 7
    Define order statistics problem. Find the edit distance between "cat" and "car" using dynamic programming. [1+4]
  5. Question 8
    Discuss about recursion and backtracking. Analyze the complexity of Miller Rabin Randomized Primality test. [1+4]
  6. Question 9
    Solve the linear equations using Chinese Remainder Theorem: $x \equiv 1 \pmod 3, x \equiv 2 \pmod 5, x \equiv 0 \pmod 7$. [5]
  7. Question 10
    Explain the approximation algorithm for vertex cover of a connected graph with an example. [5]
  8. Question 11
    State cooks theorem. discuss about problem reducibility. [2+3]
  9. Question 12
    Write short Notes: [2.5+2.5] a) Asymptotic notations b) Class P, NP and NP-complete

All Design and Analysis of Algorithms past papers