this post was submitted on 16 Jan 2025
56 points (98.3% liked)

Ask Lemmy

27482 readers
2239 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try [email protected] or [email protected]


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
 

See title

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 12 hours ago* (last edited 12 hours ago) (2 children)

Famously the hardest logic puzzle in the world: Blue Eyes

https://xkcd.com/blue_eyes.html

A group of people with assorted eye colors live on an island. They are all perfect logicians -- if a conclusion can be logically deduced, they will do it instantly. No one knows the color of their eyes. Every night at midnight, a ferry stops at the island. Any islanders who have figured out the color of their own eyes then leave the island, and the rest stay. Everyone can see everyone else at all times and keeps a count of the number of people they see with each eye color (excluding themselves), but they cannot otherwise communicate. Everyone on the island knows all the rules in this paragraph.

On this island there are 100 blue-eyed people, 100 brown-eyed people, and the Guru (she happens to have green eyes). So any given blue-eyed person can see 100 people with brown eyes and 99 people with blue eyes (and one with green), but that does not tell him his own eye color; as far as he knows the totals could be 101 brown and 99 blue. Or 100 brown, 99 blue, and he could have red eyes.

The Guru is allowed to speak once (let's say at noon), on one day in all their endless years on the island. Standing before the islanders, she says the following:

"I can see someone who has blue eyes."

Who leaves the island, and on what night?

There are no mirrors or reflecting surfaces, nothing dumb. It is not a trick question, and the answer is logical. It doesn't depend on tricky wording or anyone lying or guessing, and it doesn't involve people doing something silly like creating a sign language or doing genetics. The Guru is not making eye contact with anyone in particular; she's simply saying "I count at least one blue-eyed person on this island who isn't me."

And lastly, the answer is not "no one leaves."

The answer

The answer is >!the 100 people with blue eyes leave on the 100th night.!< Double spoiler tagged so it hopefully works on every Lemmy client.

For the logic, imagine if it were actually just three people: the guru, one brown eyes, and one blue eyes. For the sake of clarity, I'll speak through the perspective of a blue eyes in these examples. Guru says "I see someone with blue eyes." Brown eyes also sees someone with blue eyes. But I see no one with blue eyes. I deduce that I must have blue eyes, and leave that same night.

Now >!imagine there are two blue eyes, two brown eyes, and the guru. Guru says "I see someone with blue eyes." Brown eyes both see two sets of blue eyes, but I only see one set of blue eyes. I figure if the other person sees no other blue eyes, they'll leave the first night. They don't, which can only mean that they also saw someone with blue eyes, which must be me. We both leave the second night.!<

You >!can expand this logic all the way out to 100, so on the 100th night, all the blue eyes leave.!<

[–] FourPacketsOfPeanuts 6 points 11 hours ago* (last edited 10 hours ago) (1 children)

I can't see how this expands from your last case of 2 blue eyes to any more blue eyes?

When there are two blue eyed people (and you can see one of them) then the guru saying they see a blue eyed person has value because you can wait and see what the only person with blue eyes does. If they do nothing it's because the gurus statement hasn't added anything to them (they already see someone with blue eyes). And this in turn tells you something about what they must see - namely that you have blue eyes.

But how does this work when there are 3 people with blue eyes?

There isn't anyone who might see no blue eyes. And you know this, because you see at least 2 sets of blue eyes. When no-one leaves on day 1 it's because they're still not sure, because there's no circumstance where the gurus statement helped anyone determine anything. So nothing happening on day 1 doesn't add any useful info to day 2.

So the gurus statement doesn't seem to set anything in motion?

[–] davidgro 4 points 10 hours ago* (last edited 10 hours ago) (1 children)

Same way it expands to two: When there are three blue eyes, then each of them guesses they might have brown or something and there could be only two blue on the island, in which case as described those two would have left on the second night.

But they didn't... So there must be three total. Same with 4, the 3 you can see would have left on night 3 if each of them saw the other two not leave on night 2...

Leaving or not is the only communication, and what the guru really did was start a timer. It has to start at 1 even though everyone can see that there's more than one simply due to the constraints of the riddle - if the guru were allowed to say 'I see at least 50 blue eyed people' then it would start at 50 because there's no other fixed reference available. Everyone knows there's either 99 or 100, but they don't know which of those it is, so need a way to count to there. They also think everyone else can see anything from 98 to 101 depending, so it's not as straightforward as thinking the count could start at 99.

[–] FourPacketsOfPeanuts 4 points 6 hours ago (1 children)

Same way it expands to two: When there are three blue eyes, then each of them guesses they might have brown or something and there could be only two blue on the island, in which case as described those two would have left on the second night.

I don't think that's right.

Let's try it out:

Basic case: 1 brown, 1 blue. Day 1. Guru says I see someone with blue eyes, blue eye person immediately leaves. End

Next: 2 brown, 2 blue.
Day 1; Guru speaks. It doesn't help anyone immediately because everyone can see a blue eyed person, so no one leaves first night.
Day 2; The next night, everyone knows this, that everyone else can see a blue eyed person. Which tells the blue eyed people that their eyes are not brown. (They now know no-one is looking at all brown eyes). So the 2 blue eyed people who now realise their eyes aren't brown leave that night on day 2. The end

Next case: 3 brown, 3 blue (I'm arbitrarily making brown = blue, I don't think it actually matters).
Day 1, guru speaks, no-one leaves.
Day 2 everyone now knows no-one is looking at all brown. So if anyone could see only 1 other person with blue eyes at this point, they would conclude they themselves have blue. I suppose if you were one of the three blue eyed people you wouldn't know if the other blue eyed people were looking at 1 blue or more. No-one leaves that night.
Day 3 I suppose now everyone can conclude that no-one was looking at only 1 blue, everyone can see at least two blue. So if the other blue eyed people can see 2 blues that means you must have blue eyes. So all blue eyed people leave Day 3?

Hmm. Maybe I've talked my way round to it. Maybe this keeps going on, each day without departure eliminating anyone seeing that many blue eyes until you get to 100.

It just seems so utterly counterintuitive that everyone sits there for 99 nights unable to conclude anything?

[–] davidgro 2 points 4 hours ago

Yeah. It does seem counterintuitive, but it's a result of the uncertainty that what they see is what others do. So they have to communicate a number, and the only way they can is leaving or not each night to count up to it.

I thought about it more and concluded that if the guru had said "I see only blue and brown eyed people" then everyone (but her) could leave the island using the same logic, regardless of how many of each color there was (greater than zero of course because otherwise she wouldn't see that color). Same for any number of colors too as long as she lists them all and makes it clear that's all of them and doesn't include herself.

[–] [email protected] 2 points 11 hours ago (1 children)

spoilerI think the problem is underspecified: it doesnt define what happens if they get it wrong. If they get it wrong are they barred from exiting? Or can they make a guess every night? Whats stopping them from all saying blue and the boat leaving with 100 blue eyed people on night 1? Or do they only get one guess?

Also it would have saved more people if the guru had simply stated the counts they daw because everyone could count the other people and then see what color was missing (their own eye color) and they could have all left night 1.

[–] Hugin 2 points 8 hours ago* (last edited 7 hours ago)

The everybody is a perfect logician part means no one gets it wrong and no one make a guess.

They also don't say the color of their eyes when they leave. They can just use logic to figure it out.

There are some other problems with this versions wording though. Usually you need to specify that the speaker doesn't lie.