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

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.