You are on page 1of 1

CS345 : Design and Analysis of Algorithms

Spring 2014
Programming Assignment 1
Bhupendra Kastore 11204
Chandramauli Singh 11214
Problem 2
(a)
Processor -Intel Core i5-2450M, 2.5GHz upto 3.1GHz
RAM- 4GB
For n< 5000, number of times execution was repeated 200 times
For n>5000 and n<10000, number of times execution was repeated 100 times
for n>10000, number of times execution was repeated 10 times
(b) Comparison between O(n
2
) and O(nlog(n)) algoritms
(c) Largest values of N for the two algorithms for a runtime of 1sec, 10 sec and 1 min
Time O(n
2
) O(nlog(n))
1 sec 7500 150000
10 sec 25000 1200000
1 min 750000 6400000
*For O(nlog(n)) values were found by extrapolation
1

You might also like