You are viewing a single thread.
View all comments View context
-31 points
*

How do you binary search for two people arriving, one punches the other, they both leave?

In the same way the OP talks about it …

You don’t watch the whole thing, he said. You use a binary search. You fast forward to halfway, see if the bike is there and, if it is, zoom to three quarters of the way through. But if it wasn’t there at the halfway mark, you rewind to a quarter of the way though. Its very quick. In fact, he had pointed out, if the CCTV footage stretched back to the dawn of humanity it would probably have taken an hour to find the moment of theft.

Instead of a bike, you look for the aftereffects of a fight happening (chairs knocked down, tables turned over, etc.). You can even look at how many people congregate around the location of the fight before and after the video as a ‘marker’ to the point of time the fight was happening/just finished.

Edit: One thing we didn’t even mention, AI can also be used these days to notice subtle changes in the video. If a video is a static image of an alley, then two people walk in the alley and fight, even though they leave no traces behind, that moment of the fight is caught on the video with activity/movement. Motion sensor movement, basically.

permalink
report
parent
reply
25 points

You are seriously confused. OP specifically said that you’re fucked if there is no visual cue.

permalink
report
parent
reply
-31 points
*

You are seriously confused.

And you are seriously trying to kill the messenger.

OP specifically said that you’re fucked if there is no visual cue.

And I’m saying there’s ALWAYS a visual clue/cue, always. Either the bike is there one minute and gone another, or a fight breaks out and trashes the place from the fight. In the vast amount of cases, there’s always a visual difference.

And in this case we’re talking specifically about a bike, going missing.

permalink
report
parent
reply
15 points

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?

permalink
report
parent
reply
8 points

Ok but the text that you replied to, that you quoted, was “If the event lasts only a moment and leaves no visual cue (e.g. an assault), then binary search is practically useless.” Emphasis mine. If you’d started out saying “there’s ALWAYS a visual cue,” then you likely wouldn’t be getting dragged, but you started out arguing from this position without clarifying it, which makes it seem like you didn’t know what you were talking about. You can’t say that you can simply look for visual cues when the other person specified that there were none.

permalink
report
parent
reply
9 points

Your adding things that would allow a binary search work, but the question was in a situation where the only evidence is the conflict itself

2 guys enter one guy punches the other guy they both leave. Nothing is moved no blood was created,

you could not use a binary search effectively to duduce when it occurred.

permalink
report
parent
reply
-19 points
*

Your adding things that would allow a binary search work, but the question was in a situation where the only evidence is the conflict itself

I’m describing the vast majority of fights that happen in the public. Also, you’re trying to move the goalposts by focusing on a fight, when the discussion is about the theft of a bike.

Edit: One thing we didn’t even mention, AI can also be used these days to notice subtle changes in the video. If a video is a static image of an alley, then two people walk in the alley and fight, even though they leave no traces behind, that moment of the fight is caught on the video with activity/movement. Motion sensor movement, basically.

permalink
report
parent
reply
9 points

What does that have to do with a binary search If a camera has AI on it then two things. A you have a system that already would be capturing movement or motion so you already have flags that you can check which would make a binary search mostly unnecessary. and B it’s not binary search. Which is this whole discussion.

Cool you’re adding information to the question to make yourself “right” but even your comment says that’s only the vast majority of fights and also you had to clarify in public so there are edge cases where the situation still stands that binary search wouldn’t work or wouldn’t be feasible.

A solution doesn’t have to work for 100% of things for it to still be a good solution.

permalink
report
parent
reply
6 points
*

I’m describing the vast majority of fights that happen in the public.

But the comment you replied to already addressed those fights, and bike thefts, and the vast majority of cases that you’re talking about, by saying

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.

No one is moving goalposts. The parent comment said that binary search is useful in situations like bike thefts where visual cues are present, and not useful in situations where visual cues are not present.

In your hypothetical situation involving AI, the AI would use visual cues that are present, and so the situation is covered by the parent comment’s second paragraph. In a situation where there are no visual cues for the AI to use, it would be covered by the third paragraph. They still aren’t wrong about anything.

permalink
report
parent
reply
2 points
*

What about this hypothetical scenario:

Suppose the objective is to review highway cam footage of the day to verify that a (non-speeding) car with a particular license plate drove past the area / used this route. The route is used 24/7 by many identical cars throughout the day and night, and that our target car is one such identical car, with the only difference being the license plate. We know on average cars that drive past this camera only appear for 3 seconds on the footage. How can binary search be used to find the car within 24 hours of footage, if the target car only appears for 3 seconds within the 24 hour video?

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

Community stats

  • 7.2K

    Monthly active users

  • 954

    Posts

  • 36K

    Comments