Professional Documents
Culture Documents
Daa 2013 JE 932
Daa 2013 JE 932
Instruction : Answer any five complete questions selecting atleast two from
each Part.
PART – A
1. a) What is an Algorithm ? Explain the various stages in the Design and Analysis
Process. 10
b) Write a recursive algorithm to find the number of binary digits in the binary
representation of a positive decimal integer. Derive its time complexity. 10
2. a) Write an algorithm for brute-force string matching. Give its time complexity. 10
b) Give the solutions for the following traveling salesman problem using exhaustive
search technique. 10
3. a) State Master Theorem. Give the complexity of the following recurrence relations.
1) T (n) = 4T (n/2) + n
2) T (n) = 2T n( 2 ) + 1. 6
P.T.O.
JE – 932 -2- *JE932*
PART – B
⎡0 2 ∞ 1 8⎤
⎢6 0 3 2 ∞⎥
⎢ ⎥
⎢∞ ∞ 0 4 ∞⎥
⎢ ⎥
⎢∞ ∞ 2 0 3⎥
⎢⎣ 3 ∞ ∞ ∞ 0 ⎥⎦
b) Write an algorithm for the Knapsack problem. Give its time complexity. 10
*JE932* -3- JE – 932