greedy-algorithms

← ~/visualizations

greedy-algorithms #

Visualizes greedy selection on an interval-scheduling timeline (using argmin(finish)) while showing the feasibility boundary after each choice. A dependency diagram highlights that the greedy-choice property relies on optimal substructure, and that each greedy step must preserve feasibility so the remaining subproblem stays valid.

canvasclick to interact

⏮◀◀▶▶STEP0.25x1xZOOM

t=0s

practical uses #

technical notes #

Time-based cycle animates discrete greedy steps and a feasibility boundary; a second cycle highlights conceptual dependencies with pulsing arrows. All drawing is grid-snapped for a blocky aesthetic and uses only Canvas 2D primitives with GREEN/GREEN_DIM on black.

← approximation-algorithmsindependence →