News for hackers. Stuff that matters.
Re:When Is Cheryl's Birthday? by codeulike on Saturday April 25, 2015 @03:14AM (#9437546)
Its understanding what the question actually means when it says things like 'Bernard: At first I don't know when Cheryl's birthday is, but I know now.' ... this is actually a cryptic coding of the rules of the puzzle.

If you properly understand those rules and convert them to code (as in the OP) then searching the possible answers for a match is trivial.

Re:When Is Cheryl's Birthday? by userbinator on Saturday April 25, 2015 @09:29AM (#9438257)
I think one of the things that trips people up with puzzles like this (including the one mentioned in https://news.ycombinator.com/item?id=9437483 ) is that knowledge of lack of information is itself information, a point that isn't used very often; if someone tells you they don't know something, you are likely to see it as simply a lack of knowledge, and not as a piece of information that could be combined with the information you have. It somewhat reminds me of that quote about "known knowns" and "known unknowns"...
Re:When Is Cheryl's Birthday? by jfroma on Saturday April 25, 2015 @11:04AM (#9438486)
Well put! and for me that's the trick in this puzzle, once you understand that everything else is trivial.
Re:When Is Cheryl's Birthday? by cynicalkane on Saturday April 25, 2015 @11:28AM (#9438552)
It's Singapore English. Instead of using tenses, you put a phrase expressing time at the beginning of a clause, a feature borrowed from Chinese. "At first" sets the time and topic of the following clause. Having spent some time in Singapore and HK, I found the Chinese-flavored English to be immediately clear. Actually, if you just guess to substitute the correct verb tense (don't -> didn't), it seems clear to me in ordinary English as well, and I'm not sure where the confusion lies.

The Singaporean government doesn't think Singapore English is a valid thing and wants everyone to learn "good" English. The Singaporean upper class is, as usual, on the government's side, and will complain about the poor English education in their country. That's fine for them, but please be aware that when you say "this is bad English" you are making a cultural and class-based judgment. What you really mean is the math question uses a way of expressing time that is familiar to them but not familiar to you.

Re:When Is Cheryl's Birthday? by MrBuddyCasino on Saturday April 25, 2015 @06:39AM (#9437940)
Exactly. Only after reading the paraphrased version did it become clear to me, but then I'm not a native speaker.
Re:When Is Cheryl's Birthday? by baddox on Saturday April 25, 2015 @03:34AM (#9437578)
Why do you say that is cryptic? I can't think of a clearer or plainer way to express that fact.
Re:When Is Cheryl's Birthday? by mseebach on Saturday April 25, 2015 @05:48AM (#9437839)
For outsiders, there are two elements to the puzzle: the encoding of the logic problem and the logic problem itself.

People might very well be able to solve even fairly complex logic problems without having been exposed to this tradition of encoding such problems.

The problem is stated as three persons having an odd, but casual conversation. To outsider that's all they're doing and to those the problem is impenetrable. Insiders, however, immediately recognise the informal protocol of logic quizzes that this is not a random casual conversation, it is carefully written to encode just enough information to be solvable as a logic problem. These insiders know to carefully extract (decode) this information. Only then do they solve the logic problem.

The "dishonesty" of the problem, which is confusing to people expecting the problem to be stated honestly, is that the conversation in the problem is entirely contrived, there is no way is would ever happened as part of a real world exchange about birthdays. This is fine for the intendeded reader, school kids trained in this protocol, but in "going viral" it went to a lot of unintended recipients.

Re:When Is Cheryl's Birthday? by codeulike on Saturday April 25, 2015 @05:51AM (#9437845)
Yep, exactly.
Re:When Is Cheryl's Birthday? by s_kilk on Saturday April 25, 2015 @10:11AM (#9438344)
This is exactly why I find these kinds of puzzles infuriating. It always hinges on some contrived, bullshit "trick" which has nothing to do with solving real problems.
Re:When Is Cheryl's Birthday? by Nursie on Saturday April 25, 2015 @10:56AM (#9438465)
It's really not a trick. You simply take all the knowledge you are given and (this is important) don't make any additional assumptions or guesses or even really think of the participants as human, and.solve it like a math problem.
Re:When Is Cheryl's Birthday? by TillE on Saturday April 25, 2015 @11:33AM (#9438569)
Yeah. I'm completely unable to do any of the stereotypical interview question puzzles which hinge on an "outside the box" trick, but I had no trouble recognizing this as a straightforward problem that you just work through.
Re:When Is Cheryl's Birthday? by jmilloy on Saturday April 25, 2015 @11:49AM (#9438626)
I think if you were actually tasked with finding a plainer way to express the fact, you would have no trouble.

When Albert says I don't know when Cheryl's birthday is, but I know that Bernard does not know too, consider There are no unique days in the month I was told.

Informally, note the difference of order. If Albert said "I was told the Birthday is in July", that would be, say, first order. The plain version I provide is a logical statement about the months and dates, a second order statement. But the cryptic version is a statement about what (second-order) statements Bernard can make, so third order. Hence, cryptic.

Re:When Is Cheryl's Birthday? by codeulike on Saturday April 25, 2015 @03:57AM (#9437611)
Trust me, its cryptic to most people, and that's why this puzzle has gone viral round the world in an omg-singapore-schoolkids-can-do-this-insane-puzzle kind of way.
Re:When Is Cheryl's Birthday? by baddox on Saturday April 25, 2015 @04:49AM (#9437707)
Why do you suspect the crypticness of the puzzle's language is the problem, rather than the fact that a large portion of people haven't studied basic logic and are thus unable to complete basic logic puzzles?
Re:When Is Cheryl's Birthday? by fr0styMatt2 on Saturday April 25, 2015 @07:52AM (#9438056)
It's not just a basic logic problem - it's a language translation into a logic problem problem. You have to 'get' that is what you're dealing with.

Incidentally, I get a similar feeling from these puzzles that I get from code questions or examples where every variable or function is named 'a' or 'b' or 'foo' or 'bar'.

(aaand I just had a mini-epiphany of sorts that when I see those types of programming puzzles I should probably write them out and substitute the variable names as I go....)

Re:When Is Cheryl's Birthday? by andrewprock on Saturday April 25, 2015 @10:51AM (#9438447)
Actually, it's the opposite. It's a translation of a pure logic puzzle into natural language.
Re:When Is Cheryl's Birthday? by codeulike on Saturday April 25, 2015 @05:35AM (#9437811)
Firstly, someone reading the puzzle needs to grok that some of the day-numbers are unique across the months (e.g 18) and some are not (14). Then they need to grasp the basic dynamic on the situation, e.g. that if Cheryl's birthday had been May 19 then Bernard would have known straight away.

If you dont initially grasp the above then Albert's initial declaration "I don't know when Cheryl's birthday is" just seems to be a redundant statement that doesn't offer any information. And thats just the first hurdle of the puzzle.

A lot of people hate maths-questions-stated-as-stories, even simple ones ("There are several chickens and rabbits in a cage (with no other types of animals). There are 72 heads and 200 feet inside the cage. How many chickens are there, and how many rabbits?" etc etc) so to people like that, this Cheryl-birthday problem initialy presents as hopelessly cryptic.

Re:When Is Cheryl's Birthday? by gurkendoktor on Saturday April 25, 2015 @05:06AM (#9437749)
Not a native speaker, but just the fact that the first half of the sentence is written in the present tense made my brain stumble.

Which is probably intended, as otherwise I would have thought he meant to say "before Cheryl had told me, I didn't know".

Re:When Is Cheryl's Birthday? by stephen_g on Saturday April 25, 2015 @05:41AM (#9437821)
Interesting. As a native English speaker, I didn't even consider "before Cheryl had told me, I did not know" as a possible interpretation, just from the way the conversation flows but also because it goes without saying and wouldn't add anything.

In the context of Albert's statement though, it couldn't mean that - Albert's statement is saying that Bernard does not have enough information to determine the date just based on what Cheryl told him, so in saying "at first I did not know, but now I know", the only difference between "at first" and "now" is Albert speaking.

So Bernard's comment could only mean, "Based on what Cheryl told me, I did not know what the birthday was, but given the extra information I have as a result of Albert's statement, now I know"

Re:When Is Cheryl's Birthday? by stbtrax on Saturday April 25, 2015 @04:21AM (#9437654)
For me the confusing part was when Albert knew that Bernard didn't know. I initially thought that he inferred this from Bernard telling him.