HomeAlgorithms & AIDynamic Programming: Coin Change Simulator

Dynamic Programming: Coin Change

Interactive dynamic-programming simulation: watch the minimum-coin-change DP table fill cell by cell (unbounded knapsack recurrence), backtrack the optimal coin multiset, and compare it with the greedy heuristic.

Algorithms & AI3DAdvanced60 FPS
dynamic-programming ↗ Open standalone
⚙ Under the hood

Interactive minimum-coin-change dynamic programming simulation: edit coin denominations, watch the unbounded-knapsack DP table fill cell by cell in 3D with the real dp[i][a] = min(dp[i-1][a], dp[i][a-coin]+1) recurrence, backtrack the optimal coin multiset, and compare it against the greedy heuristic on the classic counterexample where greedy fails.

Three.jsdynamic programmingcoin changeunbounded knapsackInstancedMeshgreedy algorithm

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)