Rippling · Data Structures & Algorithms
Find minimum of unknown convex function
TrueInterview
October 7, 2026 · 1 min read
You are provided with an unknown univariate convex function whose domain is a closed interval on the real line.
- The analytical expression for is hidden from you.
- You may evaluate the function at any point and receive the value .
- You are also told that is convex and has a unique global minimum inside .
- Your budget is limited to at most function evaluations, and the goal is to locate the minimum as accurately as possible. Tasks:
- Describe an algorithm that relies only on function evaluations (no gradient information) to find the point at which reaches its minimum on , assuming convexity.
- Explain why gradient descent cannot be applied directly when gradients or subgradients are unavailable, and why the algorithm you propose is appropriate.
- Analyze the time complexity, expressed as the number of function evaluations required to reduce the uncertainty interval containing the minimum to length at most .
- Discuss how noisy function evaluations (that is, observing where is small random noise) would affect your method, and what modifications, if any, you would introduce. Clearly explain the intuition, the step-by-step procedure (including how the search interval is shrunk in each iteration), and provide pseudocode. Overview: This question tests a candidate's grasp of convex optimization and zeroth-order (query-based) algorithm design, including reasoning about sample complexity, interval-reduction strategies, and robustness to noisy function evaluations.
Loading comments…