Ada 2023
Ada 2023
Subject Code--13074
B.Tech. (CSE/IT) EXAMINATION
(Batch 2018 Onwards)
(Fourth Semester)
ANALYSIS AND DESIGN OF ALGORITHMS
PCC-CSE-208-T/PCC-IT-208-T
(Compulsory Question)
1. (a) What is an algorithm and what are the
criteria it must satisfy ? 2
worst-case computing time for the (b) Write the algorithm for merging two
sorted subarrays using auxiliary storage.
backtracking procedure that finds all
Hamiltonian cycles. 2
() Use backtracking to show that there is Unit II
no solution for 3-queen problem. 2 4. (a) Write an algorithm to delete the element
(g) How NP-hard problems are different from in position iof a max heap sort. The
NP-complete ? 2 complexity of the algorithm should be
O (log ). 7
Unit I (b) What is red-black tree? Discuss the
deletion operation on red-black tree.
2. (a) What do you mean by analysis of
algorithms ? Discuss the analysis of 5. (a) Discuss the Kruskal's algorithm for
insertion sort algorithm. Also give its minimum spanning tree and explain the
running time of algorithm. 7
complexity. 7
(b) Explain recursive binary search algorithm (b) Discuss the algorithm to find single
source shortest path for directed acylic
using suitable exarmple. graphs using an example. 7
J-13074 3
2 (3-26-4-0523) J-13074 P.T.0.
9. (a) Prove that the Hamiltonian cycle problem
is NP-Complete. 7
Unit III
(b) Prove that Satisfiability of Boolean
6. (a) What is longest common subsequence formulas is NP-complete. 7
problem ? How dynamic programming
can be useful for longest common
subsequence problem ? 10
(b) Find an optimal parenthesization of a
matrix chain product whose sequences
of dimension are (5, 10, 3, 12, 5, 50, 6).
4
Unit IV
8. (a)
Discuss the travelling salesman problem
usng branch and bound method. 7
(b) Write a branch and bound algorithm for
the job
Use the sequenc cing with deadline problem.
fixed tuple size formulation. 7 (3-26-5-0523) J-13074
26
J-13074 4