Professional Documents
Culture Documents
ADAMODELPAPER2
ADAMODELPAPER2
April -2021
II B.Tech II Semester Regular Examinations
Algorithms Design And Analysis
3 a) Generate the algorithm to compute 0/1 Knapsack problem using dynamic [8M]
programming and solve n = 3; (W1, W2, W3) = (3, 5, 7); (P1, P2, P3) =
(3, 7, 12); M = 4.
b) Compare Greedy vs Dynamic programming [4M]
4 a) What is a Hamiltonian Cycle? Explain how to find Hamiltonian path and [6M]
cycle using backtracking algorithm.
1
b) Explain Travelling sales person person problem LCBB procedure with the [6M]
following instance and draw the portion of the state space tree and find an
optimal tour.
OR
5 a) Give the statement of sum of subsets problem. Find all sum of subsets for [8M]
n=4, (w1, w2, w3, w4) = (11, 13, 24, 7) and M=31.Draw the portion of
the state space tree
b) What is LC – Search? Discuss LC – Search algorithm. [4M]
9 a) By using NP complete solve the sum of subset problem with one example [6M]
b) Explain formula satisfiability and 3CNF satisfiability . [6M]