a)Unit 1Solve T(n)=1 for n≤4, T(n)=2T(√n)+log n for n>4 using substitution method.
Solve T(n)=1 for n≤4, T(n)=2T(√n)+log n for n>4 using substitution method.
b)Unit 1The worst case of merge sort is O(n log n). What is its best case? Can we say merge sort is O(n log n)?
The worst case of merge sort is O(n log n). What is its best case? Can we say merge sort is O(n log n)?