Design and Analysis of Algorithms
Design and Analysis of Algorithms
8L
4L
4L
4L
Reference Books
3. J.Kleinberg and E.Tardos, Algorithm Design, First Edition, Pearson, 2012.
4. S.Dasgupta, C.Papadimitriou, U.Vazirani, Algorithms, First Edition, Tata McGraw Hill,
2013.
S. No.
1.
Practical Title
i.
ii.
2.
3.
4.
5.
6.
7.
8.
9.
For the algorithms at S.No 1 to 3 test run the algorithm on 100 different inputs of sizes varying
from 30 to 1000. Count the number of comparisons and draw the graph. Compare it with a
graph of nlogn.
For the algorithms at S.No 4 test run the algorithm on 100 different inputs of sizes
varying from 30 to 1000. Count the number of operations and draw the graph.
For plotting the above mentioned graphs, on x axis plot different values of n(input size)
and on y axis plot corresponding number of comparisons.