Professional Documents
Culture Documents
INSTRUCTION TO CANDIDATES :
1. SECTION-A is COMPULSORY consisting of TEN questions carrying T WO marks
m
14555 14555
each. 14555 14555 14555 14555 14555 14555 14555
2. SECTION-B contains FIVE questions carrying FIVE marks each and students
has to attempt any FOUR questions.
o
.r c
3. SECTION-C contains T HREE questions carrying T EN marks each and students
14555 14555 14555
has to attempt any T14555 14555
WO questions. 14555 14555 14555 14555
pe
14555
SECTION-A
14555 14555
o m
14555 14555 14555
a .r c
1. Write briefly :
r p
14555 time complexity
14555 and space complexity of
14555 an algorithm.14555
14555
e
14555 14555
14555 14555
b
14555 14555 14555
a p
b. List various applications of BFS and DFS algorithms.
14555 14555 14555 14555
rp
c. What is the advantage of using merge-sort algorithm over quick-sort algorithm?
b
d. What would be the running time of radix sort on an array of n integers in the range
5
14555 14555 0..n14555
– 1 when base –10 representation
14555 14555 is used?14555 14555 14555 14555
14555 14555
j. Define
14555
Algorithm14555
Validation. 14555 14555 14555 14555 14555
14555 1 | M-70536
14555 14555 14555 14555 14555 14555 (S2)-745
14555 14555
SECTION-B
14555 14555 14555 14555 14555 14555 14555 14555 14555
2. What are asymptotic notations? Describe with the help of examples various commonly
used asymptotic notations.
14555 14555 14555 14555 14555 14555 14555 14555 14555
m
14555 14555 its time14555
complexity? 14555 14555 14555 14555 14555 14555
6.
o
Describe how polynomial-time reductions are used to prove that a problem is NP-
.r c
14555 14555
complete.
14555 14555 14555 14555 14555 14555 14555
pe
14555 14555
SECTION-C 14555
o m
14555 14555 14555
7.
a .r c
Define spanning tree. Write Kruskal’s algorithm for finding minimum spanning tree.
p
r
Using Kruskal’s algorithm, find minimum spanning tree for the graph
14555 given below
14555:
e
14555 14555 14555 14555 14555 14555 14555
14555 14555
b
14555 14555 14555
a p
14555 14555 14555 14555
b
14555 rp 14555 14555 14555 14555
14555 8.
14555 Describe how an array
14555 of elements 14555
14555 can be sorted using
14555 Quick Sort
14555algorithm. Show
14555 that 14555
2
the running time of Quick Sort is 0(n ) when the array A contains distinct elements and is
sorted in decreasing order.
14555 14555 14555 14555 14555 14555 14555 14555 14555
9. Describe in detail Knuth-Morris-Pratt string matching algorithm.
14555 2 | M-70536
14555 14555 14555 14555 14555 14555 (S2)-745
14555 14555