Skip to content
Related Articles
Open in App
Not now

Related Articles

Algorithms | Analysis of Algorithms | Question 4

Improve Article
Save Article
  • Difficulty Level : Hard
  • Last Updated : 28 Jun, 2021
Improve Article
Save 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? (GATE CS 2012)
(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
Related Articles

Start Your Coding Journey Now!