prev1 / prev2 [terminology]
Terminology¶
Usage¶
- Use for dynamic programming states one and two positions back.
- The suffix should describe distance from the current state:
prev1: one position backprev2: two positions back
- Update them so their meaning remains stable after every iteration.
- Prefer more semantic names when the recurrence does not naturally use relative positions.