Animate DP table fills for Fibonacci, LCS, 0-1 Knapsack, Coin Change and Edit Distance. Heat-map coloring, TSV copy, and custom blank tables.
Most DP tutorials show a completed grid with arrows drawn on a whiteboard. Watching it build cell by cell is a different experience: you see exactly which previous cells each entry reads, and the recurrence relation stops being an equation on paper and becomes a visible row-by-row sweep. DP Table Builder fills five canonical algorithms (Fibonacci, Coin Change, LCS, 0-1 Knapsack and Edit Distance) one cell at a time, 80 ms per step.
Heat-map shading makes the structure legible at a glance. Cells containing zero stay white; cells near the maximum value deepen toward terracotta orange. In the Edit Distance table between "HORSE" and "ROS", the gradient traces the diagonal path a backtracker would follow to the answer.
Every computed value is correct against the standard recurrence, not a lookup or hard-coded demo. The copy button exports the full table as tab-separated values that paste directly into Excel or Google Sheets for further analysis.
F[c] = F[c-1] + F[c-2], base cases F[0]=0, F[1]=1, computed for n=0..10.{1,3,4}. Returns -1 (shown as ∞) when an amount cannot be reached. The set {1,3,4} is the standard example where greedy fails at amount 6."ABCBDAB" and "BDCAB". The answer is in cell [5][7]. Row and column headers spell out both strings so diagonal match events are visible in the grid.[2,3,4], values [3,4,5], capacity 0..5. The entry in the last row and last column is the maximum achievable value of 7 (items 1 and 2)."HORSE" and "ROS". The answer of 3 sits in cell [3][5]. The first row and column are base cases: transforming any prefix to or from the empty string costs exactly its length.Every cell value is computed from the recurrence with no lookup tables and no hard-coded answers. The tool does not render the backtracking path, optimal solution decomposition, or memoisation traces; it shows only the completed value table, which is the artefact most DP explanations draw first. Custom blank tables accept up to 12 rows and 16 columns; above those limits the grid overflows the viewport on most phone screens.
Fibonacci — F(n) = F(n-1) + F(n-2), F(0)=0, F(1)=1
n = 0..10