Question 97Asked in BPSC TRE 3.0 (2024) Computer Science Class 11-12Which of the following statements is true about Big-O notation?
- AIt represents the lower bound of an algorithm’s runtime.
- BIt represents the upper bound of an algorithm’s runtime
- CIt represents the average runtime of an algorithm.
- DMore than one of the above
- ENone of the above
Show answerHide answer
Correct answer: (B) It represents the upper bound of an algorithm’s runtime
Explanation
Big-O gives an asymptotic upper bound on the growth of an algorithm's running time, usually used for the worst case. Big-Omega gives the lower bound.