Pretty good trolling, not gonna lie.
Comment on Programmer tries to explain binary search to the police
CosmicCleric@lemmy.world 11 months agoCool you’re adding information to the question to make yourself “right”
No, I’m not. Within the moment I’m creating a comment I might save and then edit, because in the past I lost whole comments when I switch tabs in my browser. But when I’m done and hit that save I’m done, and then a few cases when I’m not I add an “Edit:” to it.
but even your comment says that’s only the vast majority of fights and also you had to clarify in public
Well most fights are in public, if a public camera is recording it. If a fight is private then it’s probably not being done where a camera is.
so there are edge cases where the situation still stands that binary search wouldn’t work or wouldn’t be feasible.
The only edge case I could think of would be if something happens in a split second and then the scene is static again, the same before and after that.
But even then if you’re talking about a static scene on the camera AI would probably be able to catch that split second change happening, so binary searching can still be done.
Kialdadial@iusearchlinux.fyi 11 months ago
I have a feeling you just don’t understand how a binary search functions even with AI you wouldn’t be using a binary search at that point
If you have camera footage from 4pm to 8pm with event lasting 1 minute but no changes occur to the background/foreground how exactly are you using recursion to determine which part of the footage even occurred without going through the entire film. Are you picking at random?
The way you’re describing AI is not binary search and so it can’t be used in this example. Also most public cameras are not 8K cameras they don’t contain a lot of detail, so the argument that they could catch something subtle kinda gets blown out of the water. You can’t just use AI as a cop out for not understanding how function behaves or works
CosmicCleric@lemmy.world 11 months ago
I’ve written binary searches before. I understand how they work.