Interactive Algorithms
AUG 2026

The Algorithms Lab

Deconstructing the mathematical engines of modern computation. Interactive explorations of foundational algorithms, stripped of abstraction.

Volume I — Roots & Convergence

Algorithms emerged naturally from the historical need to solve concrete problems. We begin with the oldest known numerical method—designed simply to approximate a root—and trace its mathematical evolution all the way to fixed-point iteration. These are the foundational engines behind inference and optimization; the exact same mathematics, regardless of what you call the discipline.

Volume II — Optimization & Learning

A direct continuation of the first volume. Here, we bridge the gap between root-finding and gradient descent, shifting our objective from finding a zero to finding a minimum. We follow the progression through stochasticity, adaptive learning rates, and momentum, ultimately culminating in Adam—the workhorse of modern machine learning.

ALG_06
Ref: 2026-GD

Gradient Descent

First-Order Optimization

The workhorse of machine learning. A first-order optimization algorithm that takes steps proportional to the negative of the gradient of a function at the current point.

θt+1=θtηJ(θt)\theta_{t+1} = \theta_t - \eta \nabla J(\theta_t)
ALG_07
Ref: 2026-SGD

Stochastic Gradient Descent

Noisy Optimization

An iterative method for optimizing an objective function with suitable smoothness properties (e.g. differentiable or subdifferentiable).

θt+1=θtηJi(θt)\theta_{t+1} = \theta_t - \eta \nabla J_i(\theta_t)
ALG_08
Ref: 2026-AG

AdaGrad

Adaptive Gradients

An optimization algorithm with parameter-specific learning rates, adapting to the geometry of the data. Ideal for sparse features, but suffers from premature freezing.

θt+1=θtηGt+ϵgt\theta_{t+1} = \theta_t - \frac{\eta}{\sqrt{G_t + \epsilon}} g_t
ALG_09

RMSProp

Root Mean Square Propagation

An optimization algorithm that resolves AdaGrad's radically diminishing learning rates by using a moving average of the squared gradients.

E[g2]t=βE[g2]t1+(1β)gt2E[g^2]_t = \beta E[g^2]_{t-1} + (1-\beta)g_t^2
ALG_10
Ref: 2026-A

Adam Optimizer

Adaptive Moment Estimation

An optimization algorithm that combines the best properties of the AdaGrad and RMSProp algorithms to provide an optimization heuristic for noisy, sparse gradients.

θt+1=θtηv^t+ϵm^t\theta_{t+1} = \theta_t - \frac{\eta}{\sqrt{\hat{v}_t} + \epsilon} \hat{m}_t