starman2112, (edited )
@starman2112@sh.itjust.works avatar

I never said they work 100% of the time. I said they work most of the time, which is a true statement.

That’s also what the comment you claim to disagree with said, so why are you even arguing?

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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmer_humor@programming.dev
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #