Cover the show with the fewest clips
transcript
Cameras saved clips of a live show. An editor wants the fewest clips that cover it. A tempting rule gives the wrong count.
Three clips: zero to five, one to six, five to ten. The show lasts ten seconds. The tempting rule takes every clip that extends the reach.
Taking every helpful clip gives three. Zero to five, then five to ten, covers the show.
Find every clip that starts within the reach. A clip may start exactly where the reach ends. Take the one that ends farthest. Repeat from the new reach.
The tempting rule uses three clips. The farthest rule uses two. Both cover the same ten second show.
If no clip extends the reach, a gap blocks the show. Return minus one. Never loop without progress. Stop with a clear answer.
Look at every clip within reach. Do not stop at the first helpful one. Take the one that ends farthest. Full breakdown in the lecture.