Back to the 2023 paper

Module 1: Introduction and Complexity Analysis

20232m

An algorithm is made up of two independent time complexities f(n)f(n) and g(n)g(n). Then the complexity of the algorithm is in order of:

  • (i) f(n)×g(n)f(n) \times g(n)
  • (ii) max(f(n),g(n))\max(f(n), g(n))
  • (iii) min(f(n),g(n))\min(f(n), g(n))
  • (iv) f(n)+g(n)f(n) + g(n)

Similar questions