Computer-Organization
March 1, 2025
STQC-NIELIT STA 2021
March 2, 2025
Computer-Organization
March 1, 2025
STQC-NIELIT STA 2021
March 2, 2025

Time-Complexity

Question 33

Suppose T(n) = 2T (n/2) + n, T(0) = T(1) = 1

Which one of the following is FALSE?

A
T(n) = O(n2)
B
T(n) = θ(n log n)
C
T(n) = Ω(n2)
D
T(n) = O(n log n)
Question 33 Explanation: 
Apply masters theorem to the above example,
a=2, b=2, k=1, p=0.
The recurrence relation result will be O(n logn).
Correct Answer: C
Question 33 Explanation: 
Apply masters theorem to the above example,
a=2, b=2, k=1, p=0.
The recurrence relation result will be O(n logn).

Leave a Reply

Your email address will not be published. Required fields are marked *