divide-and-conquer

← ~/visualizations

divide-and-conquer #

Animated recursion tree showing the Divide→Conquer→Combine workflow. Blocks represent problem sizes shrinking as they split; highlights and moving flow markers show work moving down the tree (divide), leaf solutions being computed (conquer), and partial results flowing upward to merge into the final answer (combine). A panel ties correctness composition and cost composition to the visual tree via a recurrence.

canvasclick to interact

⏮◀◀▶▶STEP0.25x1xZOOM

t=0s

practical uses #

technical notes #

Pure Canvas2D, time-based 4.2s loop. Uses snapped grid coordinates for a blocky aesthetic; easing for flow markers; stage-driven highlighting to emphasize correctness (combine) and cost recurrence (divide). Responsive scaling via scale = min(w,h)/220.

← cosine-similarityconfidence-intervals →