PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Machine Learning/Rippling

Find minimum of unknown convex function

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's understanding of convex optimization and zeroth-order (query-based) algorithm design, including reasoning about sample complexity, interval-reduction strategies, and robustness to noisy function evaluations.

  • medium
  • Rippling
  • Machine Learning
  • Software Engineer

Find minimum of unknown convex function

Company: Rippling

Role: Software Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Technical Screen

You are given access to an **unknown univariate convex function** \(f(x)\) defined on a closed interval \([L, R]\) on the real line. - You cannot see the analytical form of \(f(x)\). - You are allowed to **query** the function at any point \(x \in [L, R]\) and obtain the value \(f(x)\). - You are told that \(f(x)\) is convex and has a **unique global minimum** within \([L, R]\). - You have a strict budget of at most \(K\) function evaluations (queries) and want to find the location of the minimum as accurately as possible. **Tasks:** 1. Describe an algorithm that uses **only function evaluations** (no gradient information) to find the point where \(f(x)\) attains its minimum on \([L, R]\), under the convexity assumption. 2. Explain why gradient descent is not directly applicable when gradients or subgradients are not available, and why your proposed algorithm is suitable. 3. Analyze the time complexity in terms of the number of function evaluations needed to achieve an interval of uncertainty of length at most \(\varepsilon\) containing the minimum. 4. Discuss how noise in the function evaluations (i.e., you observe \(f(x) + \epsilon\) where \(\epsilon\) is small random noise) would affect your method and what modifications, if any, you would make. Clearly explain the intuition, the step-by-step procedure (including how you shrink the search interval each iteration), and provide pseudocode.

Quick Answer: This question evaluates a candidate's understanding of convex optimization and zeroth-order (query-based) algorithm design, including reasoning about sample complexity, interval-reduction strategies, and robustness to noisy function evaluations.

Rippling logo
Rippling
Dec 8, 2025, 6:38 PM
Software Engineer
Technical Screen
Machine Learning
3
0

You are given access to an unknown univariate convex function f(x)f(x)f(x) defined on a closed interval [L,R][L, R][L,R] on the real line.

  • You cannot see the analytical form of f(x)f(x)f(x) .
  • You are allowed to query the function at any point x∈[L,R]x \in [L, R]x∈[L,R] and obtain the value f(x)f(x)f(x) .
  • You are told that f(x)f(x)f(x) is convex and has a unique global minimum within [L,R][L, R][L,R] .
  • You have a strict budget of at most KKK function evaluations (queries) and want to find the location of the minimum as accurately as possible.

Tasks:

  1. Describe an algorithm that uses only function evaluations (no gradient information) to find the point where f(x)f(x)f(x) attains its minimum on [L,R][L, R][L,R] , under the convexity assumption.
  2. Explain why gradient descent is not directly applicable when gradients or subgradients are not available, and why your proposed algorithm is suitable.
  3. Analyze the time complexity in terms of the number of function evaluations needed to achieve an interval of uncertainty of length at most ε\varepsilonε containing the minimum.
  4. Discuss how noise in the function evaluations (i.e., you observe f(x)+ϵf(x) + \epsilonf(x)+ϵ where ϵ\epsilonϵ is small random noise) would affect your method and what modifications, if any, you would make.

Clearly explain the intuition, the step-by-step procedure (including how you shrink the search interval each iteration), and provide pseudocode.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Rippling•More Software Engineer•Rippling Software Engineer•Rippling Machine Learning•Software Engineer Machine Learning
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.