The running time of an algorithm T(n), where ‘n’ is the input size, is given by
T(n) = 8T (n/2) + qn, if n > 1
= p, if n = 1
Where p, q are constants. The order of this algorithm is1
n2
2
nn
3
n3
4
n
The running time of an algorithm T(n), where ‘n’ is the input size, is given by
T(n) = 8T (n/2) + qn, if n > 1
= p, if n = 1
Where p, q are constants. The order of this algorithm is