Name the smallest summary
transcript
A release has eighteen steps in it. Some steps must come before others. Count the valid orders of all steps. There are quadrillions of orders.
Eighteen steps. They have six point four quadrillion orders. But only two hundred sixty-two thousand subsets. Count the subsets instead.
What does the future need to know? Only which steps are already done. Not the order they were done in. So merge all those pasts together.
The empty set has one order. Each single step has one order. Two steps add up from the smaller masks. So walk the masks upwards.
Name the smallest summary of the past. Count the states and the work per state. Only then write the recurrence.
There are two to the eighteen masks. Each has eighteen choices of next step. That is under five million steps.
The state decides the problem. A set becomes a bit mask. Quadrillions become thousands. Count before you code. Full breakdown in the lecture.