What is the purpose of a base case in recursion?
To increase the speed of the algorithm
To provide a stopping condition to prevent infinite loops
To reduce space complexity
To allow the function to return a value