CSC325 · TU past paper
Design and Analysis of Algorithms 2080 question paper
The complete TU 2080 exam paper for Design and Analysis of Algorithms (CSC325), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- Q1.Solving RecurrencesHideAnswer
Recurrence Relations and Solving using Substitution Method
- Q2.10 marksNumericalGreedy Algorithms vs Dynamic Programming, HideAnswer
Write down the advantages of dynamic programming over greedy strategy. Find optimal bracketing to multiply 4 matrices of order $2, 3, 4, 2, 5$. [10]
- Q3.10 marksSorting AlgorithmsHideAnswer
Discuss heapify operation with example. Write down its algorithm and analyze its time and space complexity.[10]
- Q4.5 marksRAM modelHideAnswer
Define RAM model. Write down iterative algorithm for finding factorial and provide its detailed analysis. [5]
- Q5.5 marksSearching AlgorithmsHideAnswer
Write down nimmax algorithm and analyze its complexity. [5]
- Q6.5 marksGreedy AlgorithmsHideAnswer
When greedy strategy provides optimal solution? Write down job sequencing with deadlines algorithm and analyze its complexity. [5]
- Q7.5 marksNumericalHuffman CodingHideAnswer
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 [5]
- Q8.5 marksNumericalBacktracking AlgorithmsHideAnswer
Does backtracking give multiple solution? Trace subset sum algorithm for the set $(3, 5, 2, 4, 1)$ and sum = 8. [5]
- Q9.5 marksNumber Theoretic Notations, Euclid's and EHideAnswer
Why extended euclidean algorithm is used? Write down its algorithm and analyze its complexity. [5]
- Q10.5 marksConcept of Aggregate AnalysisHideAnswer
Write short notes on a) Aggregate Analysis b) Selection problems [5]
- Q11.5 marksSorting AlgorithmsHideAnswer
Write down algorithm of insertion sort and analyze its time and space complexity. [5]
- Q12.5 marksNP Complete Problems, NP Completeness and HideAnswer
Define NP-complete problems with examples. Give brief proof of the statement "SAT is NP-complete". [5]