Define the time complexity of an algorithm.
Answers
Answered by
0
Explanation:
Time complexity of an algorithm quantifies the amount of time taken by an algorithm to run as a function of the length of the input. Similarly, Space complexity of an algorithm quantifies the amount of space or memory taken by an algorithm to run as a function of the length of the input.
Answered by
4
Answer:
In computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Thus, the amount of time taken and the number of elementary operations performed by the algorithm are taken to differ by at most a constant factor.
Similar questions