wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

The asymptotic upper bound solution of the recurrence relation given by

T(n)=2T(n2)+nlogn is

A
O(log log n)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
O(n log n)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
O(n2)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
O(n log log n)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D O(n log log n)
We will apply master theorem in this question:

a = 2, b = 2 and k = 1 and p =-1.
We will compare a and bk
i.e.,

2=21 and we have p = - 1

Then T(n)=(nlog22log log n)

T(n)=(n log log n)

and(n log log n)>O(n log log n)

So, option (C) is correct.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Composite Functions
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon