Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Algorithms | Analysis of Algorithms | Question 4

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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) = \\Omega(W(n))
(B) A(n) = \\Theta(W(n))
(C) A(n) = O(W(n))
(D) A(n) = o(W(n))

(A)

A

(B)

B

(C)

C

(D)

D


Answer: (C)

Explanation:

The worst case time complexity is always greater than or same as the average case time complexity.


Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads