Computer Science, asked by bhoomika6513, 11 months ago

The complexity of three algorithms is given as: o(n), o(n2) and o(n3). Which should execute slowest for large value of n?

Answers

Answered by Anonymous
95

Answer:

The complexity of three algorithms is given as: O(n), O(n2) and O(n3). Which should execute slowest for large value of n?

Answered by SaurabhJacob
1

O(n³) should execute the slowest for a large value of 'n'.

  • The time complexity of the algorithm is measured in the terms of Big O Notation.
  • The time complexity increases with the increase in the term 'n'.
  • The same can be seen in the above-given algorithm complexities,                the largest value of 'n' is in the third multiple of n.                                       So, the slowest execution of the algorithm will be for the O(n³).
Similar questions