Cs206 Design and Analysis of Algorithm (Mid - sp23)
Cs206 Design and Analysis of Algorithm (Mid - sp23)
INSTRUCTIONS:
1. The question paper contains 5 questions each of 5 marks and total 25 marks.
2. Attempt all questions.
3. The missing data, if any, may be assumed suitably.
4. Tables/Data handbook/Graph paper etc., if applicable, will be supplied to the candidates
-----------------------------------------------------------------------------------------------------------------------------
CO BL
Q.1(a) How do you measure the efficiency of an Algorithm? [2] CO-1 CO-5 BT-4
Q.1(b) Determine the best and worst conditions for the insertion sort algorithm's [3] CO-1 CO-3 BT-3
complexity?
Q.3(a) Solve using master theorem: T(n) = 4T(n/2) + n2log2n [2] CO-1 BT-2
Q.3(b) Explain quicksort with an example? [3] CO-2 BT-5
Q.4(a) What do you know about the divide-and-conquer algorithm? [2] CO-2 BT-2
Q.4(b) Briefly describe the maximum subarray problem using the divide-and-conquer [3] CO-2 CO-4 BT-3
method.
Q.5(a) What is the main idea of Transform and Conquer? [2] CO-3 BT-3
Q.5(b) Construct an AVL tree having the following elements: [3] CO-2 CO-4 BT-5
H, I, J, B, A, E, C, F, D, G, K, L
::::::28/02/2023::::::M