Professional Documents
Culture Documents
1-030080503 (2013-14) Summer 2017
1-030080503 (2013-14) Summer 2017
1-030080503 (2013-14) Summer 2017
II) Find the asymptotic tight bound for f(n)=27n2+16n+25. Also compute c and n .
0
II) Write the recurrence relation for Strassen’s matrix multiplication using divide and conquer approach and
also find the time complexity.
Q 2 B) Sort the list using quick sort algorithm: 9,6,5,0,8,2,4,7 (pivot: last element). [5]
OR
Q 2 B) Explain how divide and conquer method helps in multiplying two large integers and also find its run time
complexity.
II) Differentiate knapsack problem solving using greedy method and dynamic programming.
III) Generate minimum spanning tree for the following graph using Prim’s algorithm. Starting vertex is 1.
SECTION - 2
Q 4 A) Answer the following in brief. (Any 2) [4]
I) Draw finite automata for pattern "abab" and input alphabet ∑={a,b}.
Q 4 B) Solve the following instance of the assignment problem using branch and bound algorithm. [5]
OR
Q 4 B) Write a short note on finite automata for string matching with an example.
Q 5 B) Illustrate the progress of depth-first search on the graph given below. Here, 1 is the starting vertex. [5]
OR
Q 5 B) Explain how knapsack problem can be solved using backtracking with an example.