QB-2 BCS401 4th Sem
QB-2 BCS401 4th Sem
3 Give the general divide and conquer recurrence and explain the same.
5 Discuss how quick sort works to sort an array. Trace quick sort algorithm for the following data set 65, 70, 75, 80,
85, 60, 55, 50, 45
Consider the numbers given below. Show how partitioning algorithm of quick sort will place 106 in its correct
6 position. Show all the steps clearly. “106 117 128 134 141 91 84 63 42”
Write the merge sort algorithm and Sort the list E, X, A, M, P, L, E in alphabetical order using merge sort and
7 discuss the efficiency of merge sort.
8 Trace the merge sort algorithm for the data set 8, 4, 1, 6, 7, 2, 3, 9.
Write the merge sort algorithm and Sort the list Q,U,E,S,T,I,O,N in alphabetical order using merge sort and discuss
9 the efficiency of merge sort.
10 Construct an algorithm for Quick sort. Analyze its efficiency.
11 Explain the Multiplication of large integers algorithm with its time complexity.
12 Explai the advantage of Strassen’s Matrix Multiplication. How it is proved .
13 Write the algorithm for Insertion sort.calculate its effeciency.
14 Sort the list using Insertion sort 89, 45, 68, 90, 29, 34, 17
Explain DFS based and source Removal algorithm for topological Sort
1 2
15
3 4
16
1
Obtain topological sorting for the given diagraph using source removal method
0 2
17 3 5
1
18 Write the algorithm for DFS and explain how it canbe used to solve the topological sorting problem with one
example