Comment on Programmer tries to explain binary search to the police

<- View Parent
starman2112@sh.itjust.works ⁨11⁩ ⁨months⁩ ago

An event happens in time, that event has a duration, if you can detect that duration then a binary search works perfectly fine.

And even after the duration most times events change the environment around them, which stay statically changed, and are detectable.

Right. And when that happens, it’s covered by the second paragraph of the parent comment:

If there is a long-lasting visual cue that the event has or has not happened yet (e.g. a window is either broken or not), then a binary search is very useful.

Situations where binary searches aren’t useful are covered in the third paragraph of the comment:

If the event lasts only a moment and leaves no visual cue (e.g. an assault), then binary search is practically useless.

You’ve claimed that you disagree with this, but have yet to explain why you disagree beyond saying that there would be visual cues. Except that they’ve already said that binary searches work in situations that leave visual cues. You haven’t explained how a binary search can work in situations that leave no visual cues except by claiming they they would, EXCEPT IF THEY DO, THEN THE PERSON YOU CLAIM TO DISAGREE WITH HAS ALREADY SAID THAT BINARY SEARCHES ARE USEFUL.

source
Sort:hotnewtop