Skip Navigation

Programmer tries to explain binary search to the police

365

You're viewing part of a thread.

Show Context
365 comments
  • Absolutely not true. Guy walks bye and shoots someone well offscreen. Momentary action with no visual cue before or after. Why are you arguing this useless point?

    • Absolutely not true. Guy walks bye and shoots someone well offscreen. Momentary action with no visual cue before or after. Why are you arguing this useless point?

      The person dropping to the ground dead would be the visual cue.

      • ...well offscreen... wow

        • If its all offscreen, then WTF are we bothing to talk about?

          • Is this on purpose?

            The shooter is on screen the victim is not.

            This is on purpose isn't it. You're fucking with me.

            • This is on purpose isn’t it. You’re fucking with me.

              Sorry, I thought you were saying that the guy walking by was off screen, and the person on screen was shot, since the focus of the conversation was about binary search based on what's on the video.

              Guy walks bye and shoots someone well offscreen.

              In that case the shooter, walking up and then holding up a gun and pulling the trigger would be the marker, as well as the puff of smoke, for the binary search, which could be done with AI, if not human eyes.

              Also they would know the approximate time of death, so they can use that to extrapolate a range on the video that they need to binary search on. I'm pretty sure this is normal police work that I'm describing at this point.

              Having said that, that's one hell of a hypothetical you made there. At some point you could definitely come up with an example of when a binary search wouldn't work, but not based on what the OP was discussing, or what others were discussing about two people having a fight on camera.

              • If you skip to after the smoke has dissipated, you cannot gather enough information to know that you need to rewind. A binary search is useless in this scenario.

                • Depends on how long the smoke remains in the air.

                  • If it's not "for the duration of the rest of the video," then binary search would be useless

                    • If it’s not “for the duration of the rest of the video,” then binary search would be useless

                      That's not true. It only has to be long enough to be detectable, by landing on a strip of video that it exists on. It'll be harder, definately, but still doable.

                      • Maybe I have no understanding of what a binary search is. My understanding is that you check halfway through the video, see if the thing has happened yet, then skip halfway to the end if it hasn't. Check again, skip again. When you see the cue that the event has happened, you rewind to halfway between the latest point where the event hadn't happened yet and the earliest point when it has. Keep doing that and you can pinpoint the exact frame where the event happens in a matter of minutes.

                        Binary search would be largely useless in cases where you have a good chance of skipping right past the event. If the video is an hour long, and the event happens 34 minutes in and leaves a visual cue that lasts less than 11 minutes, then binary search does not find the event. At that point, watching the video fast forwarded would be the way to go, and that's not a binary search, that's just watching the video.

                        So I should correct myself: the visual cue doesn't have to last the remainder of the video, it just needs to last until one of the points that you check. Which still makes it not useful for things that don't leave visual cues that last more than a few minutes, because it cannot find most of those events if they happen at a random time in an hour+ video.

              • You are trying really hard for some reason to fit a binary search into a discussion about a situation where it clearly does not belong. Very weird but very passionate I applaud you.

                • You are trying really hard for some reason to fit a binary search into a discussion about a situation where it clearly does not belong. Very weird but very passionate I applaud you.

                  The actual/origiinal OP talks about a binary search.

                  Changing the focal point of discussion to fit your narration is not intellectually honest.

                  You're trying to change the discussion focus point to kill the messenger.

                  • Seriously, my guy. Are you having a mental breakdown or what? You're accusing rational people trying to correct you of being botnet responses, you're constantly moving your goal posts and accusing everyone else of doing it, you're being intellectually dishonest and accusing everyone else of doing it.

                    You are being transparently and irrationally defensive all because you can't admit you made a mistake. Surely you can see this is no way to go through life and no way to spend your time, right? I'm worried about you.

                    • Seriously, my guy. Are you having a mental breakdown or what?

                      Because you can judge that from tax off of an Internet comment, right? Don't be insulted, I've at least treated everyone here with enough respect when I've conversed with them not to accuse them of being mentally ill.

                      You’re accusing rational people trying to correct you of being botnet responses,

                      Go find my conversation with others about the Falkland Islands and you'll see the quote that I'm speaking about, that made me make that statement.

                      you’re constantly moving your goal posts and accusing everyone else of doing it,

                      No, I haven't, and others have. I stand by what I've said.

                      you’re being intellectually dishonest and accusing everyone else of doing it.

                      My own words phrase exactly the same way coming right back at me. Hmm, I wonder where I've seen that before?

                      You are being transparently and irrationally defensive all because you can’t admit you made a mistake.

                      What mistake, exactly? That a binary search never works? I've never said that. That a binary search works 100% of the time? I've never said that either. What I've stated is that the majority of the time a binary search would work.

                      Are you advocating that a binary search never works?

                      Surely you can see this is no way to go through life and no way to spend your time, right? I’m worried about you.

                      I'm retired, I have time on my hands, and I'm a computer nerd, so I spend that time on the Internet, like I suspect many other people do as well. And I enjoy arguing a point when I feel I'm right, I enjoy a good discussion, though these days that rarely ever happens on the Internet.

                      Why are you trying so hard to discredit me, to kill the messenger? I appreciate your concerns, but I'm doing just fine, we're just arguing a point on the Internet.

                      • Ok. I initially responded that I didn't even read your response, because I didn't, and I just asked again if you are OK. And I really meant it.

                        But that seemed rude, so I deleted it, and I read your comment. I'm going to skip over the earlier parts and move to the end of your comment.

                        Ok! That makes me feel better. If you're just mixing it up and having fun arguing on the internet, I get it. You've got time and you're having fun. That's cool, man. It just comes off a little weird to people, I feel.

                        I, while I respect what you're saying, don't want to spend time arguing the point. If I could, I would just like to explain to you what my understanding of the situation is, and then, if you disagree, I'll respect that.

                        Binary search is effective for many things. However: imagine a camera on a blank white wall that was recorded for 24 hours.

                        At some point during that 24 hours, two people crossed in front of the wall that was being recorded, and one punched the other and then ran out of frame, and the other person ran after them out of frame. The entire exchange was on screen for only a few seconds. The wall was completely unchanged by the encounter.

                        In that very particular instance, rare as it might seem, binary search will not be more efficient for locating the footage. Does that make sense?

      • Not if he's off screen. It's only a visual cue if it's captured by the video.

        If you have a separate video of the guy falling over dead, you can use that video to get a window of time to view in the other video, but one video that captures only parts of the scene can easily leave you with no visual cues.

365 comments