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

Let W(n) and A(n) denote respectively, the worst case and average case running time of an algorithm executed on an input of size n. Which of the following is ALWAYS TRUE?

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

The correct option is D A(n) = O(W(n))
A(n) Average case complexity
W(n) Worst case complexity
We know
Best case Average case complexity Worst case complexity
and always A(n) k. W(n) A(n) = O(W(n))

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