Back to the 2024 paper

Module 1: Introduction

20242m

Which of the following best describes space complexity?
(i) Time taken by the algorithm
(ii) Memory required to run an algorithm
(iii) Number of recursive calls
(iv) Number of loops used

Worked SolutionAI Assisted

Answer: (ii) Memory required to run an algorithm

Space complexity = total memory (input + auxiliary + program). Time is execution steps.

Similar questions

Budget AppAndroid App

Pocketly on Android

Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.