The time complexity of an algorithm is determined by

2025

The time complexity of an algorithm is determined by

  1. A.

    The number of inputs

  2. B.

    The number of operations executed

  3. C.

    The type of hardware

  4. D.

    The type of programming language used

Attempted by 227 students.

Show answer & explanation

Correct answer: B

Time complexity measures how an algorithm's runtime grows relative to input size. It focuses on the dominant term in operation counts as input approaches infinity, typically expressed using Big O notation.

Explore the full course: Tpsc Assistant Technical Officer