...
Asymptotic-Complexity
October 26, 2023
UGC NET CS 2018 JUNE Paper-2
October 26, 2023
Asymptotic-Complexity
October 26, 2023
UGC NET CS 2018 JUNE Paper-2
October 26, 2023

Asymptotic-Complexity

Question 26
What is the solution to the recurrence T(n)=T(n/2)+n?
A
O(log n)
B
O(n)
C
O(n logn)
D
None of these
Question 26 Explanation: 
The above recurrence is in the form of masters theorem.
a=1,b=2,k=1,p=0
=a<b​ k
=O(n)
Correct Answer: B
Question 26 Explanation: 
The above recurrence is in the form of masters theorem.
a=1,b=2,k=1,p=0
=a<b​ k
=O(n)
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!