Dynamic Programming Is a Sparse Walk Through a Number Counter
In my last post I made an argument that felt, to me, like stating the obvious — but one I couldn’t find anyone else putting into words: backtracking is just counting. If your search space is a product of small independent choices, a depth‑first walk through it is the same object as incrementing a mixed‑radix number — an odometer. And a “prune” is just you refusing to descend into a number you can already see is doomed. I wrote the full version of that up: backtracking as a bijection to the integers. ...