DAA(5th)Dec2020
DAA(5th)Dec2020
of Pages : 02
Total No. of Questions : 18
B.Tech. (CSE) (2012 to 2017) (Sem.–5)
DESIGN & ANALYSIS OF ALGORITHMS
Subject Code : BTCS-503
M.Code : 70536
Time : 3 Hrs. Max. Marks : 60
SECTION-A
r r
4)
b
What are the applications of Fast Fourier transform?
p e
5)
a
How the Prim’s algorithm is better in finding the Minimal spanning tree in comparison to
the Kruskal’s method?
p
6)
b r
What is the time complexity of the algorithm for finding all-pairs-shortest-path problem?
1 | M-70536 (S2)-1117
SECTION-B
11) What is the relationship between the classes P and NP? Explain. (5)
12) Explain the Big -Oh computation for each of the following control structures : (5)
13) What do you analyze in an algorithm? What is the basis of analysis? Explain. (5)
15) What are greedy algorithms? What are their characteristics? Explain any greedy
algorithm with example. (5)
o m
SECTION-C
r. c
16) Explain the KMP algorithm in detail with an illustrative example. (10)
e m
17) Explain in detail quick sorting method. Provide a complete analysis of quick sort.
p
(10)
a o
18) Order the following functions by growth rate: N, N1.5, N2, N log log N, N log2 N, N log
p c
r .
(N2), 2/N, 2 N, 2 N/2 , 37, N2 log N, N3 Indicate which functions grow at the same rate. (10)
r
b p e
p a
b r
2 | M-70536 (S2)-1117