B.Tech. Degree Examination Cse/It: (Oct-18) (EID-305)
B.Tech. Degree Examination Cse/It: (Oct-18) (EID-305)
B.Tech. Degree Examination Cse/It: (Oct-18) (EID-305)
[EID-305]
B.Tech. Degree Examination
CSE/IT
V SEMESTER
DESIGN AND ANALYSIS OF ALGORITHMS
(Effective from the admitted batch 2015–16)
Time: 3 Hours Max.Marks: 60
--------------------------------------------------------------------------------------- -------------
Instructions: Each module carries 12 marks.
Answer all modules choosing one question from each module.
All parts of the module must be answered in one place only.
Figures in the right hand margin indicate marks allotted.
---------------------------------------------------------------------------------------------------
MODULE-I
1. a) Explain Strassen’s matrix multiplication 6
b) Write an algorithm for merge sort. Sort 52, 61, 77, 23, 32, 44, 32
by using above sorting method 6
OR
2. a) Write down the algorithms for QUICK-SORT and PARTITION
procedure. Specify the best case and worst case time complexity
of quick sort 6
b) Design a divide and conquer algorithm for finding the minimum
and the maximum elements of ‘n’ numbers using not more than
3n/2 comparisons 6
MODULE-II
3. a) Write a short note on “knapsack Problem” 6
b) Solve the following job sequencing with dead lines when n = 6,
(P1 , P2 , P3 , …., P6) = ( 5, 8, 18, 16, 1, 9) and (d1 , d2 , d3 ,…. ,
d6) = ( 1, 3 , 4 , 3, 2, 1) 6
OR
4. a) How the Greedy paradigm of Algorithm differs from that of
Dynamic Programming ? What is Single source shortest path
problem? Suggest the Greedy algorithm to find the shortest path
from the designated vertex start to all the other vertices in a
connected weighted, n vertex graph 8
b) What is spanning tree? Explain 4
MODULE-III
5. a) What is dynamic programming? How it can be applied for
travelling salesman problem ? Explain 7
b) What is multistage graph? Explain the role of multi stage graph
in dynamic programming 5
OR
[3,7/V S/118]