Btech Cse 5 Sem Design and Analysis of Algorithm 2012
Btech Cse 5 Sem Design and Analysis of Algorithm 2012
com
http://www.makaut.com
Name : ……………………………………………………………
Roll No. : ……………………………………………..…………..
Invigilator’s Signature : ………………………………………..
CS/B.TECH(CSE)(N)/SEM-5/CS-501/2012-13
2012
DESIGN AND ANALYSIS OF ALGORITHM
Time Allotted : 3 Hours Full Marks : 70
GROUP – A
( Multiple Choice Type Questions )
1. Choose the correct alternatives for the following : 10 × 1 = 10
i) The Big O Notation of the expression
n
f (n) = n log 2 n + n 2 + e og2 is
a) O (n log n) b) O (n 2 )
2
log n
2
c) O(n) d) O (e ).
ii) Traveling Sa esman Problem is
a) NP Hard b) NP
c) NP Complete d) none of these.
iii) o ( g ( n ) ) is [ Read as small oh of g ( n ) ] is
a) asymptotically loose b) asymptotically tight
c) same as Big Oh d) None of these.
"n %
iv) Complexity the recurrence relation T(n) = 8T $ ' + n 2 is
#2&
a) O (n) b) O (n 2 )
c) O ( log 2 n) d) O (n 3 ).
http://www.makaut.com
www.makaut.com
http://www.makaut.com
CS/B.TECH(CSE)(N)/SEM-5/CS-501/2012-13
GROUP – B
( Short Answer Type Questions )
Answer any three of the following. 3 × 5 = 15
2. Find the best and worst case time complexity of quick sort.
3. State Master's theorem and find out the time complexity for
the recurrence T (n) = T ( 2n/3) + 1.
5002(N) 2
http://www.makaut.com
www.makaut.com
http://www.makaut.com
CS/B.TECH(CSE)(N)/SEM-5/CS-501/2012-13
http://www.makaut.com
www.makaut.com
http://www.makaut.com
CS/B.TECH(CSE)(N)/SEM-5/CS-501/2012-13
5002(N) 4
http://www.makaut.com