this post was submitted on 31 Jan 2025
282 points (98.0% liked)

Not The Onion

13000 readers
1875 users here now

Welcome

We're not The Onion! Not affiliated with them in any way! Not operated by them in any way! All the news here is real!

The Rules

Posts must be:

  1. Links to news stories from...
  2. ...credible sources, with...
  3. ...their original headlines, that...
  4. ...would make people who see the headline think, “That has got to be a story from The Onion, America’s Finest News Source.”

Comments must abide by the server rules for Lemmy.world and generally abstain from trollish, bigoted, or otherwise disruptive behavior that makes this community less fun for everyone.

And that’s basically it!

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] lvxferre@mander.xyz 1 points 4 hours ago

No, I only saw it after I solved the problem.

my reasoning / thought processInitially I simplified the problem to one prisoner. The best way to reduce uncertainty was to split the bottles into two sets with 500 bottles each; the prisoner drinks from one, if he dies the poisonous wine is there, otherwise it's in one of the leftover 500 bottles.

Then I added in a second prisoner. The problem doesn't give me enough time to wait for the first prisoner to die, to know which set had the poisonous wine; so I had to have the second prisoner drinking at the same time as the first, from a partially overlapping set. This means splitting the bottles into four sets instead - "both drink", "#1 drinks it", "#2 drinks it", "neither drinks it".

Extending this reasoning further to 10 prisoners, I'd have 2¹⁰=1024 sets. That's enough to uniquely identify which bottle has poison. Then the binary part is just about keeping track of who drinks what.