Csit Notes

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

Tribhuvan University (TU) 2079 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

2079 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
    Explain the divide and conquer strategy for problem solving. Describe the worst-case linear time selection algorithm and analyze its complexity.
  2. Question 2
    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\times10}, B_{10\times15}, C_{15\times20}, D_{20\times30}$.
  3. Question 3
    What do you mean by Backtracking? Explain the backtracking algorithm for solving 0-1 knapsack problem and find the solution for the problem given below: | Items $\to$ | 1 | 2 | 3 | 4 | | :--- | :--- | :--- | :--- | :--- | | Weight (wi) $\to$ | 2 | 3 | 4 | 5 | | Profit (Pi) $\to$ | 3 | 5 | 6 | 10 | and capacity of knapsack = 10 kg

Group B

Short Answer Questions

Attempt any Eight questions.

  1. Question 4
    Explain the iterative algorithm to find the GCD of given two numbers and analyze its complexity
  2. Question 5
    Trace the quick sort algorithm for sorting the array $A[\ ] = \{15, 7, 6, 23, 18, 34, 25\}$ and write it's best and worst complexity
  3. Question 6
    Generate the prefix code for the string " CYBER CRIME" using Huffman algorithm and find the total number of bits required.
  4. Question 7
    Solve the following recurrence relations using masters method a) $T(n)=2T(n/4)+kn^2$, $n>1$ $=1$, $n=1$. b) $T(n)=5T(n/4)+kn$, $n>1$ $=1$, $n=1$.
  5. Question 8
    Find the edit distance between the srtring " ARTIFICIAL" and "NATURAL" Using dynamic programming
  6. Question 9
    Find the MST from following graph using Kruskal's algorithm. [diagram/image to be added manually]
  7. Question 10
    Solve the following linear congruences using Chinese Remainder Theorem. $x\equiv1\pmod{2}$ $x\equiv3\pmod{5}$ $x\equiv6\pmod{7}$
  8. Question 11
    Define tractable and intractable problem. Illustrate vertex cover problem with an example.
  9. Question 12
    Write short notes on: a) Best, Worst and average case complexity b) Greedy Strategy

All Design and Analysis of Algorithms past papers