Explanation
In a recursive implementation of Binary Search, the algorithm repeatedly divides the search space into half (N/2,N/4,N/8,…).
Call Stack Space:
Each recursive call is stored in the function call stack until the base case is reached or the target element is found.
The maximum depth of the call stack corresponds to the maximum number of times N can be divided by 2 before reaching 1.
Maximum recursion depth =⌊log2N⌋+1.
Space Requirement:
(Note: While iterative Binary Search requires O(1) auxiliary space, recursive Binary Search requires O(logN) auxiliary space due to the recursion call stack.)