Concept
Tabulation fills a table from the smallest subproblems up, with a loop instead of recursion. It avoids stack depth limits and often lets you keep only the last few rows.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Tabulation doing its job.
def min_coins(coins, amount):
INF = float("inf")
best = [0] + [INF] * amount
for total in range(1, amount + 1):
for c in coins:
if c <= total and best[total - c] + 1 < best[total]:
best[total] = best[total - c] + 1
return best[amount] if best[amount] != INF else -1
min_coins([1, 5, 6], 11) # 2 (5 + 6)Filling the table in an order that reads cells not yet computed. The loop order must guarantee every subproblem a cell depends on is already final.
Your roadmap puts these before Tabulation, unless you already know them.
Once a session shows you understand Tabulation, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.
Topics that build on Tabulation.