
Space Complexity
What is Space complexity? When we design an algorithm to solve a problem, it needs some computer memory to complete its execution. For any algorithm, memory is required for the following purposes… To store program instructions. To store constant values. To store variable values. And for few other things like funcion calls, jumping statements etc,. Space complexity of an algorithm can be defined as follows… Total amount of computer memory required by an algorithm to complete its execution is called as space complexity of that algorithm.
Read more