Design and Analysis of Algorithm PDF
Design and Analysis of Algorithm PDF
Question Bank
Design and Analysis of Algorithm (CSE), III Year
Subject Code: CS-502
Section- A
Short Question
1. Determine the asymptotic order of following:
1. F (n) = 3 +
2.F (n) = + +
3. =
11.
12.
13.
Define Backtracking.
14.
15.
16.
17.
Define Traversal of Trees. What are the different ways of traversal of Trees?
18.
19.
20.
21.
Page 1
Section- B
Long Question
1. What is the height of a node, black height of a node in the Red Black Tree?
2. Define the divide and conquer rule with an example of sorting?
3. What is the height of a B-Tree, if there are n nodes in it? What is the maximum
height of a B- Tree with 10, 00,000 keys and having minimum degree 10?
4. Prove that the maximum degree of any node in an n node binomial tree is log n.
5. Write down the algorithm of Quick Sort and perform the algorithm on the following
array: A={10,12,1,7,4,6,9,5,3,11,0}.
6. Discuss any one sorting having linear time complexity.
7. Insert
the
following
keys
into
an
initially
empty
Red
Black
Tree,(4,7,12,15,3,5,14,18,16).
8. Let A= {7,2,4,17,1,11,6,8,15,10,20}. Draw a binomial Heap whose keys are elements
of A. And Insert a new element with key 5 into this Heap.
9. Explain the method of binding the minimum spanning tree for a connected graph
using Prims algorithm.
10. Discuss the design steps in Kruskal algorithm to construct minimum spanning tree
with example.
11. Explain the master theorem and solve the following:
1) =
2) = / +
b) 8-Queens problem
15. Apply Backtracking technique to solve the following instance of the subset sum
problems. [s= (1, 3, 4, 5) & d=11].
16. Discuss the use of greedy method in solving knapsack problem and subset sum
problem.
17. Discuss the solution for knapsack problem using branch bound techniques.
18. Write Short Note on:
a) Fast Fourier Transform.
Page 2
Section- C
Very Long Question
1. Explain the various asymptotic notations with the properties.
2. Explain the Insertion Sorting and analysis of its sorting.
3. How the results inserting the keys F, S, Q, K, C, L, H, T, V, W, M, R, N, P, A, B, X,
Y, D, Z, E, G, I in order into an empty B-Tree only and the minimum degree of BTree is 3. Draw the configuration of some node must split and also draw the final
configuration.
4. Solve the recurrence relation using Master Method:
T () = 3T (1/3 ) +3
5. Illustrate the operation of RADIX-SORT on the following list of English words: COW,
DOG, SEA, ROW, MOB, BOX, TAB, BAR, EAR, BIG, TEA, NOW. Apply BUCKETSORT algorithm on the following array: 0.78, 0.17, 0.39, 0.26, 0.72, 0.94, 0.21, 0.21,
0.12, 0.23, 0.68.
6. Solve the following instance of the single source shortest path problem with vertex
a as the source: write the algorithm for this problem.
Page 3
Page 4