Skip sides with equal room
transcript
A frame has four sides. A square is only one kind of frame. Strips go on the sides. Two sides have equal room. Do you try both?
Equal room, equal outcome. The strip fits both sides the same way. Try the strip on one side. Skip the other.
Place the longest strip first. Do this in every call. Overflow shows up early. Dead branches end sooner.
No help: 86,713 calls. Count the calls on one example. Skip equal sides: 3,445. Skipping helps a lot. Both ideas: 17.
Batches use the same idea. Memory helps here too. A set of used payouts fixes the future. A failed set never succeeds. So remember it.
The answer never changes. Only dead branches go. Nothing useful is lost. That is a safe prune.
Equal room, equal outcome. Try one, skip the rest. Nothing about the answer changes. Longest strips first. Full breakdown in the lecture.