Design and Analysis of Algorithms
Design and Analysis of Algorithms
Reg. No.
III Semester B.C.A.5 Degree (CBCS)
Examination, April-2023
DESIGN AND ANALYSIS OF ALGORITHM (Theory)
(Repeaters)
SECTION-A
Answer any ten questions. (10×2-20)
1. a) Define algorithm.
b) Write apseudo code convention for while loop.
c) Define space and time complexity of an algorithm.
d) Define divide and conquer method.
e) Write the differences between straightmaxmin and recursive maxmin algorithm.
Define feasible and optimai solution.
Differentiate betwecn dynamic programming and greedy method.
h) What do you mean by two way merge pattern?
i) Define tree traversal.
|P.T.O.
SECTION-B
Answer any four questions. (4x5=20)
2. Explain characteristics of analgorithm.
3. Explain asymptotic notations.
4. Explain Binary search algorithm in detail.
5. Using the greedy knapsack algorithm find optimalsolution for following, n=7,m=20
P, to P,) = (10,5,15,7,6,18,3)
(W, to W,) - (2,3,5,7,1,4, 1).
6. Write a algorithm to find all pairs of shortest path.
7 Write a note on sum of sub set problem.
SECTION -C
Answer any four full questions. (4×10=40)
8. Explain the various pseudo code conventions for specifying algorithm. (4+6)
9. a) Write a note on strassen's matrix multiplication.
b) Sortthefollowing array using quick sort a{1:8} 5,3,1,4,8,2,9,7.
10. a) Find shortest path and its length from source vertex l toall the destinations for the
given graph.
14
(3) 44673/CO230