CS402
CS402
B.TECH./CSE/EVEN/SEM-IV/R18/ CS402/2021-2022
YEAR: 2022
d) O(g1(n)*g2(n))
b) O(log n)
c) O(n 4)
d) O(n log n)
Page 2 of 4
Even semester theory examination 2022 under autonomy, 25-Jun-22
NARULA INSTITUTE OF TECHNOLOGY
An Autonomous Institute under MAKAUT
GROUP – B
(Short Answer Type Questions)
(Answer any three of the following) 3 x 5 = 15
GROUP – C
(Long Answer Type Questions)
(Answer any three of the following) 3 x 15 = 45
SL Question Marks Co Blooms
Taxonomy
Level
7. (i) State the general Knapsack problem. Write greedy 4 2 2
algorithm and find the complexity of this algorithm.
Page 3 of 4
Even semester theory examination 2022 under autonomy, 25-Jun-22
NARULA INSTITUTE OF TECHNOLOGY
An Autonomous Institute under MAKAUT
Algorithm .
9. (i) Write the algorithm of quick sort and find the best case, 5 3 4
worst case and average case time complexity of this
algorithm.
Page 4 of 4
Even semester theory examination 2022 under autonomy, 25-Jun-22