Set-2 - ESE - Dec22 - B TECH (CSE+AI&ML) - B TECH (CSE+AI&ML) - (Hons.) - III - CSEG2021 - Design and Analysis of Algorithm
Set-2 - ESE - Dec22 - B TECH (CSE+AI&ML) - B TECH (CSE+AI&ML) - (Hons.) - III - CSEG2021 - Design and Analysis of Algorithm
Enrolment No:
Instructions: All questions of the section A is mandatory. In section B, attempt any one of the Q 9 and Q 10.
In section C, attempt either Q 12 or Q 13. Remaining questions from sections B and C are mandatory.
SECTION A
(5Qx4M=20Marks)
S. No. Marks CO
Q1 What is an algorithm and how it is different from a program? 3+1 CO1
Q2 Solve the recurrence relation using Master Theorem T(n) = 4T(n/3) + n2 4 CO2
Q3 Find the solution to the following recurrence equation
4 CO1
T(n)=T(n/2)+1 with the base condition as T(1)=1
Q4 Derive the time complexity of Quick sort algorithm for worst case. 4 CO2
Q5 Distinguish between Dynamic Programming and Greedy method. 4 CO3
SECTION B
(4Qx10M= 40 Marks)
Q6 What is a Spanning tree? Explain Prim’s Minimum cost spanning tree
2+6+2 CO3
algorithm with suitable example
Q7 Describe asymptotic notations? Illustrate any three notations with
2+8 CO1
diagrams. How the performance can be analyzed with these notations?
Q8 Explain Activity Selection problem in detail with suitable example? 10 CO2
Q9 Explain Task Scheduling Problem with deadline and Penalty.
OR 10 CO4