Keep only what matters
transcript
A table needs a state. Too little, and it is wrong. Too much, and it is slow. One question finds the balance.
Ask what the future needs to know. Ask it step by step. Keep exactly that, and nothing more, in the state itself. Drop everything else from the state, because it only slows the table.
Without a lockout, you are free or holding. With a lockout, you can also be locked.
A hundred ads and two budgets give about a million cells. Without a table there are two to the hundred subsets. Try them one by one.
Budgets: take the ad or skip it. Trading: buy, sell or wait. Strings: use the letter or not.
A free day may buy a unit. A holding day may sell its unit. A locked day may only wait for the pause to end.
Keep what the future needs. Drop everything else. Full breakdown in the lecture.