197k views
17 votes
How long does algorithm take to run how muh memory space does it require?​

1 Answer

9 votes

Answer:

The running time of an algorithm for a specific input depends on the number of operations executed. The greater the number of operations, the longer the running time of an algorithm.Space complexity is the total amount of memory space used by an algorithm/program including the space of input values for execution. So to find space-complexity, it is enough to calculate the space occupied by the variables used in an algorithm/program.

Step-by-step explanation:

User Kev
by
6.5k points