Bachelors Level/Third Year/Fifth Semester/Science csit/fifth semester/design and analysis of algorithms/syllabus wise questions
B.Sc Computer Science and Information Technology
Institute of Science and Technology, TU
Design and Analysis of Algorithms (CSC325)
Year Asked: 2081, syllabus wise question
Backtracking
1.
Given a set A={5,7,10,12,15,18,20}, find the subset that sum to 35 using backtracking.[5]
2.
Discuss about recursion and backtracking. Analyze the complexity of Miller Rabin Randomized Primality test.[5]
Divide and Conquer Algorithms
1.
What is the worst case of quick sort and how does randomize quick sort handle this problem? Sort the data {−2,4,−3,6,12,10,11,13,9} using quick sort.[10]
Dynamic Programming
1.
Differentiate between dynamic programming and memorization. Compute the shortest path between every pairs in the following graphs using Floyd Warshall algorithm.
[10]
2.
Define order statistics problem. Find the edit distance between 'cat' and 'car' using dynamic programming.[5]
Foundation of Algorithm Analysis
1.
Solve the following recurrence relations using master's method.
T(n)=2T(2n)+n3,n>1;T(n)=1,n=1
T(n)=2T(4n)+1,n>1;T(n)=1,n=1
[5]
2.
State cooks theorem. Discuss about problem reducibility.[5]
3.
Write short notes on: a) Big Oh, Big Omega, Big theta b) Class P, Class NP and NP-Complete[5]
Greedy Algorithms
1.
Does greedy algorithm guarantee optimal solution? Solve the Fractional knapsack problem to find maximum loot from given information.