Let’s use the example of a bike theft. We enter into evidence a 4-hour security cam video that shows the thief with the bike.
Scenario A: The camera can directly see the bike rack, and the bike in question is visible at the beginning of the video, and not visible at the end. Somewhere in this 4-hour video, someone walks up to the bike and takes it out of the bike rack. You can use a binary search to find the moment that happens in this video because you can pick a frame and say “Ah, this was before the theft; the bike is still there” or “ah, this was after the theft; the bike is gone.”
Scenario B: The camera can’t directly see the bike rack, but can see the doorway you have to walk through to get to the bike rack. So somewhere in 4 hours of doorway footage, someone walks through the door, then a short time later walks back through the door with the bike. A binary search won’t help here because the door looks the same at the beginning or end of the video. A simple binary search won’t work here because the door looks the same before and after.
null@slrpnk.net 11 months ago
Not with a binary search.
CosmicCleric@lemmy.world 11 months ago
Yes you will.
A binary search is just what it says it’s for searching only.
When you find that moment in time where the bike was there 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.
Azzu@lemm.ee 11 months ago
You didn’t get what was talked about here. Re-read the topmost parent comment.
CosmicCleric@lemmy.world 11 months ago
I was responding to this …
CosmicCleric@lemmy.world 11 months ago
In the same way the OP talks about it …
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.
ShrimpsIsBugs@programming.dev 11 months ago
You either don’t know what binary search is or you completely missed the context of this conversation
CosmicCleric@lemmy.world 11 months ago
I’m a computer programmer. I know exactly what a binary search is.
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.
lustyargonian@lemm.ee 11 months ago
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.
CosmicCleric@lemmy.world 11 months ago
There’s a moment where the bike is there, then another when its not. The whole video, either way, will either from the beginning up to the point of theft have the bike there, or NOT have the bike there from the point of theft to the end of the video. The marker is the removal of the bike from the video lens.
null@slrpnk.net 11 months ago
That doesn’t apply to the comment you replied to.
CosmicCleric@lemmy.world 11 months ago
Yes, it does.
CosmicCleric@lemmy.world 11 months ago
Screw you, and your gatekeeping censoring.
I’m replied, saying the comment is not correct, and I gave reason why, which are valid reasons.
starman2112@sh.itjust.works 11 months ago
Your reasons for why they were incorrect about a binary search being useless in situations that don’t leave visual cues is that you can simply look for the visual cues lmao, that’s not valid at all
CosmicCleric@lemmy.world 11 months ago
I never said they work 100% of the time. I said they work most of the time, which is a true statement.
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.
So much work to try to Kill the Messenger. Maybe organizations don’t want people to think they work so people won’t demand that they be used, causing more work for them.