Csit Notes

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

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

2080 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
    What is recurrence relation? How it can be solved? Show that time complenity of the recurrence relation $T(n)=2T(n/2)+1$ is $O(n)$ using substitution method.
  2. Question 2
    Write down advantages of dynamic programming over greedy, strategy. Find optimal bracketing to multiply 4 matrices of order {2,3,4,2,5}.
  3. Question 3
    Discuss heapify operation with example. Write down its algorithm and analyze its time and space complexity.

Group B

Short Answer Questions

Attempt any Eight questions.

  1. Question 4
    Define RAM model. Write down iterative algorithm for finding factorial and provide its detailed analysis.
  2. Question 5
    Write down algorithm of insertion sort and analyze its time and space complexity.
  3. Question 6
    Write down minmax algorithm and analyze its complexity.
  4. Question 7
    When greedy strategy provides optimal solution? Write down job sequencing with deadlines algorithm and analyze its complexity.
  5. Question 8
    Suppose that a message contains alphabet frequencies as given below and find Huffman codes for each alphabet. | Symbol | Frequency | | :--- | :--- | | a | 30 | | b | 20 | | c | 25 | | d | 15 | | e | 35 |
  6. Question 9
    Does backtracking give multiple solution? Trace the subset sum algorithm for the set {3,5,2,4,1} and sum=8
  7. Question 10
    Why extended Euclidean algorithm is used? Write down its algorithm and analyze its complexity.
  8. Question 11
    Define NP-complete problems with examples. Give brief proof of the statement "SAT is NP-complete".
  9. Question 12
    Write short Notes on a) Aggregate Analysis b) Selection problems

All Design and Analysis of Algorithms past papers