InterviewStack.io LogoInterviewStack.io

Optimization and Operations Research Methods Questions

Prescriptive analytics: formulating decisions as optimization problems — linear and integer programming, constraint-based modeling, objective functions, and trade-offs between optimality and tractability. Applied to allocation, scheduling, routing, pricing, and supply/demand problems.

HardTechnical
69 practiced

Implement the core step of the Hungarian algorithm in Python to compute min-cost assignment for a small cost matrix (n <= 50). You may provide clear pseudocode and explain time/space complexity and why it's appropriate for offline optimal matching but not for high-frequency real-time decisions at scale.

HardTechnical
129 practiced

Create a plan to evaluate whether a new graph-augmented matching algorithm improves multi-order batching efficiency. Include offline simulation design, metrics (e.g., average delivery time, driver earnings, batching rate), significance testing approach, and steps before an online rollout.

HardTechnical
95 practiced

Design a multi-objective optimization formulation for dispatch that balances (1) minimize customer ETA, (2) maximize driver earnings fairness across neighborhoods, and (3) maximize platform revenue. Specify objective function formulation (weighted sum or constrained optimization), constraints, and an approach to choose weights or constraints in practice.

MediumTechnical
97 practiced

Write pseudocode for a greedy online matching algorithm that assigns incoming orders to nearby available drivers subject to: max_pickup_time_seconds, driver_capacity (orders they can batch), and driver acceptance probability threshold. Discuss cases where greedy fails and a better algorithm could be needed.

MediumTechnical
93 practiced

You must optimize a recommender for both latency and accuracy. Describe how to construct and use Pareto frontiers, design a constrained optimization (e.g., maximize accuracy subject to latency <= X ms), evaluate candidate models, and communicate trade-offs to stakeholders with decision criteria.

That is every published Optimization and Operations Research Methods question for AI Engineer so far. Browse the other topics in this category, or practice this one interactively.