a)Unit 1Solve the recurrence relation T(n)=1 for n≤4, T(n)=T(√n)+C for n>4 using substitution method.
Solve the recurrence relation T(n)=1 for n≤4, T(n)=T(√n)+C for n>4 using substitution method.
b)Unit 1Give an algorithm for quick sort and analyze the algorithm.
Give an algorithm for quick sort and analyze the algorithm.