this post was submitted on 30 Nov 2023
88 points (100.0% liked)
Programmer Humor
20763 readers
1831 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Not with a binary search.
Edit: just collapse this thread and move on. Cosmic Cleric is an obvious troll.
Yes you will.
A binary search is just what it says, it's just for searching only.
When you find that moment in time where the bike was there one moment, and then the next moment the bike's not there, then you view at regular or even slow-mo at those few seconds of the bike in the middle of disappearing, and see the perpetrator, and hopefully can identify them.
Binary search only works on sorted data, i.e. you know which side of the mid point is pointing towards the incident. If the incident leaves no trail, you can't know whether you can discard the left side or the right side, making it a complicated linear search at that moment.
You either don't know what binary search is or you completely missed the context of this conversation
I'm a computer programmer. I know exactly what a binary search is. I've written binary searches before.
The search is to get you to the point where you can watch the video to see the crime happening, in hopes of indentifying the perpretrator.
Then you missed the point of this conversation
That doesn't apply to the comment you replied to.
Yes, it does...
How?