Comment on Programmer tries to explain binary search to the police
systemglitch@lemmy.world 11 months agoHonestly you probably do it already without thinking about it when trying to figure out where you left off a video that you never paused.
Or if you ever had VHS tapes, or so e from of disc media… perhaps a cassette when looking for a particular part of a song.
Maybe not as methodical as perfectly breaking it down into halves of halves, but xlos enough to help you pin point what part you are looking for.
Pamasich@kbin.social 11 months ago
I'm pretty sure they were using sarcasm.
Kalkaline@leminal.space 11 months ago
I’m pretty sure I was serious. I don’t know how people can be that clever. It seems simple once it’s explained, sure, but I wouldn’t be able to come up with that on my own without someone else giving me a problem that points me in that direction.
khannie@lemmy.world 11 months ago
Studied this in computer science algorithms class waaaaayyy back in 1996 and by golly this one stuck with me. It’s so simple and so effective.