# Thread: pirates of the caribbean

1. ## pirates of the caribbean

Five pirates discover a chest full of 100 gold coins. The pirates are ranked by their ages. Pirate 5 is 50 years old, Pirate 4 is 49, and so on down to Pirate 1. To divide up the loot, they agree on the following:
The most senior pirate will propose a distribution of the booty. All pirates will then vote, including the most senior pirate, and if at least 50% of the pirates on board accept the proposal, the gold is divided as proposed. If not, the most senior pirate is murdered. Then the process starts over with the next most senior pirate until a plan is approved.
All Pirates are equally intelligent and selfish. Their preference is first to remain alive, and next to get as much gold as possible and finally, if given a choice between otherwise equal outcomes, to have fewer pirates on the boat.
Assume you are the senior most pirate in the group. Come up with a plan that maximizes your gold, and others will accept. How will you divide the coins? Can you generalize ..

2. ## Re: pirates of the caribbean

Here is the answer for your question...

Pirates1= 1
Pirates2= 0
Pirates3= 1
Pirates4= 0
Pirates5(me) = 98

we already discuss this problem in our brainteasers forum. Here is the reference link...

Thiefs

---------------------
suresh

3. ## Re: pirates of the caribbean

Actually i asked dis question!!

4. ## Re: pirates of the caribbean

Originally Posted by smart_coder
Actually i asked dis question!!
can anyone plz describe me the solution..
m not able to get the logic...

5. ## Re: pirates of the caribbean

My solution is:

Pirate 5 (Me): 25
Pirate 4 : 25
Pirate 3 : 25
Pirate 2 : 13
Pirate 1 : 12

Here Pirate 4 and 3 will vote for me. I have my own vote at my side. This will keep me in majority. Pirate 4 and 3 will think that if they do not accept my solution then they will murder me but 100 coins will be then distributed among them. Probably they will get 25 only which anyway they are getting. So why not accept my solution?

Pirate 1 and 2 will not accept. But they what will happen? Nothing. They constitute lesser than 50 &#37; in the total quorum. So anyway I will get more than others and I will remain alive.

Correct me if I am wrong.

6. ## Re: pirates of the caribbean

pirate 5 = 22
pirate 4 = 21
pirate 3 = 20
pirate 2 = 19
pirate 1 = 18

7. ## Re: pirates of the caribbean

Suresh got the answer correct. But My question has two parts, one part is to answer this question and the second part is to derive a generalized solution for N number of pirates

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•
###### About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.