by d1sxeyes · 2y ago · 0 comments
For some reason though, some idiot designer who never actually thought about how these would be used in reality, decided to make it so that the other half of the time it immediately stops all scanning until someone comes to fix it.
In the first case, basically I waste no time. In the second, I lose however long it takes for the cashier to come.
It is always optimal to scan these first. You have two cases:
Blocking: scan 1 + wait for attendant + scan rest
Non-blocking: scan 1 + max(wait for attendant, scan rest)
However if you scan these items last the wait is always the same:
scan rest + scan 1 + wait for attendant
This is never shorter than either of the previous two. It is equivalent to the blocking case and almost always longer than the non-blocking case.