1506
Binary search (slrpnk.net)
submitted 7 months ago by ByteOnBikes@slrpnk.net to c/memes@sopuli.xyz
you are viewing a single comment's thread
view the rest of the comments
[-] Ephera@lemmy.ml 53 points 7 months ago* (last edited 7 months ago)

My dad once told me that he had to find the circuit breaker that corresponded to a particular wire and because we have around 60 circuit breakers in our house, he had to flick one off, run down and check the wire, run back up, flick the next circuit breaker off, and do that quite a lot of times.

In that moment, I got to explain binary search to him and he was genuinely interested. 🙃

[-] jol@discuss.tchncs.de 2 points 7 months ago

Binary search only works if the fuses were correctly sorted in the same order as the houses though.

[-] domdanial@reddthat.com 22 points 7 months ago* (last edited 7 months ago)

I don't think that's true, it's more of a set problem. If you pull half the fuses, and the thing is still on, then you've ruled out that half. Then you pull half the remaining fuses, and if it turns off it was one of the new half you pulled. Then you put another half back in, ect .

[-] jol@discuss.tchncs.de 6 points 7 months ago

Ah, I didn't think of it that way. That indeed would work.

load more comments (2 replies)
load more comments (21 replies)
this post was submitted on 02 Dec 2024
1506 points (99.3% liked)

Memes

11073 readers
951 users here now

Post memes here.

A meme is an idea, behavior, or style that spreads by means of imitation from person to person within a culture and often carries symbolic meaning representing a particular phenomenon or theme.

An Internet meme or meme, is a cultural item that is spread via the Internet, often through social media platforms. The name is by the concept of memes proposed by Richard Dawkins in 1972. Internet memes can take various forms, such as images, videos, GIFs, and various other viral sensations.


Laittakaa meemejÀ tÀnne.

founded 2 years ago
MODERATORS