A floor is not a promise.
transcript
A thousand photos need eight thousand five hundred thirty comparisons. At least. Or so the floor says. Yet one run used only nine hundred ninety nine. Did the floor break?
The list was already in order. Linear insertion compared each photo once. That makes nine hundred ninety nine. It is far below the floor.
The same method on a random list used two hundred fifty thousand. On the reverse order it used almost five hundred thousand. Inputs differ a lot. One lucky input says little.
The floor is about the worst input. Some input needs at least eight thousand five hundred thirty comparisons. This holds for every method that compares. It does not say that every input does.
State the floor as a worst case. Say that it holds for methods that compare. Counting sort does not compare, so it can beat it. Never say that every input needs it.
A floor is about the worst input. Full breakdown in the lecture.