ES-CS401,2022-23
ES-CS401,2022-23
TECH(N)/EVEN/SEM-4/4416/2022-2023/I016
MAULANA ABUL KALAM AZAD UNIVERSITY OF TECHNOLOGY, WEST BENGAL
Paper Code : ES-CS401/PCC-CS 404/PCC-CS404/PCC-CSD 402/PCCCS404 Design & Analysis of Algorithms
UPID : 004416
4. Write down an algorithm in Greedy method to find the minimum spanning tree by Prim’s algorithm. What [5]
is the time complexity of your algorithm?
5. (a) State Cook’s Theorem. [5]
(b) Define Clique with example.
(b) Write an algorithm to find all solutions of N-Queens problem using backtracking. [4]
(c) What is the time complexity of your algorithm? [1]
(d) Write an algorithm to find all pairs shortest path using Floyd’s method. [4]
8. (a) Write down an algorithm of Quick Sort. [5]
(b) Derive the best, worst and average case time complexity of your algorithm. [ 2+3+5 ]
9. (a) Find the minimum number of scalar operation needed to multiply the matrices A1, A2, A3 and A4 [5]
having dimensions 30×35, 35×15, 15×5 and 5×10 respectively.
(b) Write down an algorithm using Greedy method to find minimum spanning tree by Krushkal’s [5]
algorithm.
(c) Find the time complexity of your algorithm. [3]
(d) Differentiate between Backtracking and Branch and Bound. [2]
10. (a) Find the transitive closure of vertex A from the following graph: [3]
(ii)
(c) (c) Define little omega notation. Explain with an example. [ 2+2 ]
3/3