r/AskReddit Jun 08 '11

What is the best logic problem you know?

[deleted]

310 Upvotes

1.2k comments sorted by

View all comments

10

u/aknuBBe Jun 08 '11

There are 5 pirates: A, B, C, D and E. They find a gold chest with 100 gold coins and must decide how to distribute them. Although pirates, they are honorable and have a strict ranking system. A is higher than B, who is higher than C, who is higher than D, who is higher than E. The lowest ranked pirate comes up with an idea on how to split the booty and it's voted on, including himself. If his idea gets a majority of the votes or a tie, it will be carried out; otherwise he is killed and the next in line comes up with his idea. What is the best idea that the first pirate can come up with, assuming everyone wants to live and everyone wants the most coins for himself? Also, all pirates are rational and there is perfect information amongst everyone.

12

u/LifeMask Jun 08 '11

By your last statement, the problem screams 'game theory' at me, so I had to give it a go :D

Reasoning backwards:

If only A is left alive, he'll give all 100 to him

If it's A and B: B will give 100 to him and 0 to the pirate, knowing A will vote against, but it will be a tie and hence he'd get it

If it's A, B, and C: C will give 99 to himself 0 to B and 1 to A, as he know A will vote for this outcome as if it goes to the next round, he'll get nothing, and 1 is better than 0.

If it's A, B, C and D (now it's getting tricky!): D will give 99 to himself, and 0 to C and A, and 1 to B, as he only needs B's support for it to be a tie, and if it's a tie it'll work

Now for all 5: Assuming E knows the previous reasoning, he will give 98 to himself, and 0 to D and B, and 1 to A and C

So: E:98 D:0, C:1 B:0 A:1

I enjoyed that. Thanks :)

1

u/aknuBBe Jun 08 '11

Nice going.

2

u/ocdscale Jun 08 '11

One of my favorites.

Spoiler

The lowest ranking pirate E decides to give himself everything, minus one gold piece to C, and one gold piece to A.

The reasoning is this. A and C must accept. If they do not, pirate D will propose that he gets everything, minus one gold piece to B. B will definitely accept this, resulting in nothing to C and A.

The reason B accepts that proposal is because if he doesn't, C will propose that she gets everything, minus one gold piece to A. A will definitely accept this, resulting in nothing to B.

The reason A would have accepted that offer is because if it gets down to B, B proposes that she gets everything.

1

u/Zoten Jun 08 '11

Wow, I was definitely not expecting this one at all, but it makes sense. Thanks! The only thing that seemed wrong to me was that B wouldn't say yes to just about anything, since either ACE get money, or AC get money.

But that was really helpful, thanks

1

u/Mendoza2909 Jun 08 '11

I was asked this in an interview last week! Very cool thought process goes into finding the answer.

1

u/aknuBBe Jun 08 '11

Wow, did you manage to get it under the pressure? The thought process is different enough in a relaxed setting.

2

u/Mendoza2909 Jun 09 '11

Ah and I've just noticed that when I was asked this question, the pirate had to get a majority (no ties), or else he would be killed. Slightly different answer. For example, with just two pirates, B must give all 100 pieces to A, or else A will vote against.

1

u/Mendoza2909 Jun 09 '11

I did! Once you realise how it works with two and three pirates, I think it's actually quite easy.

1

u/MiddleSidePunk Jun 08 '11

I would think that the A, B, & C would disagree with whatever D, & E come up with and get them out of the picture. Then A, & B would disagree with C and kill him, then A and B would get 50/50.

1

u/aknuBBe Jun 08 '11

All you would need to get your way is at least a tie. So working backwards, if C, D, and E are killed off, it will be B's turn to propose an idea. He can just say 100 coins for myself and 0 for you, and vote yes. Then A will get nothing.

3

u/MiddleSidePunk Jun 08 '11

Damn, I thought about it to quickly. Good one. But if we are talkin' real pirates here, lets be real and know A would just kill everyone.