17YCS601 - Design and Analysis of Algorithm - Set-1
17YCS601 - Design and Analysis of Algorithm - Set-1
No: 225052/55/57/61
PRN
strategy.
6. State the various application of Greedy method. (2) K2 CO3
programming.
8. Compare the greedy strategy and dynamic strategy. (2) K1 CO4
Page 1 of 4
PART B - (4 x 15 = 60 Marks)
11. (a) (i) Explain Merge sort algorithm with example. (8) K1 CO1
(OR)
(b) (i) Illustrate Divide and Conquer strategy with (8) K3 CO1
algorithm.
(ii) Given the jobs, their deadlines and associated (7) K2 CO1
Jobs J1 J2 J3 J4 J5 J6
Deadlines 5 3 3 2 4 2
Profits 200 180 190 300 120 100
Page 2 of 4
minimum spanning tree of the following
graph
13. (a) (i) Obtain the solution to knapsack problem by (8) K2 CO3
14. (a) (i) What is the optimal binary search tree (8) K2 CO4
Approach.
Page 3 of 4
(OR)
(b) (i) Write Dijkstra's algorithm and apply the same (8) K4 CO4
15. (i) Solve the 4-queen problem and draw its state (10) K1 CO5
space tree.
(ii) Explain LC Search, LIFO and FIFO branch and (10) K1 CO5
bound strategy.
Page 4 of 4