optimization
AI, ML & GenAI interview questions tagged optimization, across every topic.
16 questions · 2 unlocked for you
Concepts behind "optimization"
The curriculum that explains the ideas these questions test.
Foundational
Gradient Descent and OptimizersGradient descent is how models learn: compute the gradient of the loss with respect to the parameters and step opposite it to cut error. Mini-batch SGD (a small batch per step) is the workhorse, trading off stable gradients against speed and GPU parallelism. Momentum smooths the path, and Adam (momentum plus per-parameter adaptive rates) is the default. The learning rate is the most important knob, scheduled with warmup and decay. AI, ML, and GenAI engineer interviews probe it because it underlies all training and the failure modes (divergence, getting stuck) are diagnosable.📊 Evaluation & ML Foundations
Core
Dynamic ProgrammingDynamic programming tackles problems with overlapping subproblems and optimal substructure by defining a state, writing a recurrence, and caching results so each subproblem is computed once. The skill is the framework (state, recurrence, base case, order of evaluation), not memorizing tricks. Applied-AI interviews test it because it screens for whether you can turn a fuzzy optimization into a precise recurrence rather than recalling a pattern you saw before.💻 Coding & Engineering CraftSign in
Core
Greedy AlgorithmsGreedy algorithms construct a solution by always taking the locally best choice and never reconsidering. They are fast and simple, yet correct only when a greedy choice is provably globally optimal, which you back with an exchange argument. Applied-AI interviews test greedy because the screen is whether you can separate when it works (interval scheduling, Huffman) from when it quietly returns a wrong answer, and whether you switch to DP instead.💻 Coding & Engineering CraftSign in
