可预测年薪超过8万美金的“趣味数学题”你能解吗?

最初由 fishman 发布


Yes

无论#5愿不愿意踢#4下海,#4在受益同样为0的情况下,肯定不会把自己小命放在别人手里 :D
 
最初由 Leo1976 发布
#1要利益最大化,就意味风险最大化,只要2345相互有一点信任或者仇恨,或者其他影响因素,#1死定了,无论怎么分配都不安全。

如果在现实生活中,不能完全把握关系和信息,如果#1能保持沉默或者弃权,最佳选择就是不表态了,等#2上来表演,等#2犯傻找死,或者看出2345之间的关系。如果#2也聪明,弃权,直到#5弃权,最后结果也就是都不愿意先表态,只好平均分配了。 好像目前中国的权利分配就是如此阿 :D

You got my point.

It is a kind of wisdom to give up something.

要想得大便宜,必须要做好吃亏的准备。 :lol: :lol: :lol: :lol:
 
>50%的解法

100 0 0 0 0

because even numbered must die if they don't agree!
 
这个题目其实有一个社会问题:如果只有3个人,你是5,你会情愿把3号扔进大海,从而导致4号分配时,自己一个子也得不到,还是接受受了你恩惠的3号得99颗,而自己只有一颗这样一个分配方案?
 
最初由 qlgc 发布
这个题目其实有一个社会问题:如果只有3个人,你是5,你会情愿把3号扔进大海,从而导致4号分配时,自己一个子也得不到,还是接受受了你恩惠的3号得99颗,而自己只有一颗这样一个分配方案?

假设所有人都利益为先的嘛
 
应该是2号对。

典型的西方经济学问题。
每个人都理智的追求自己利益的最大化。
这题应这么想。
如果前4个海盗都死了,5号的分配方案是100个给自己。他希望前4个都死了才好。
如果前3个海盗都死了,4号的分配方案是都给5号,因为他不同意自己得死。
如果前2个海盗都死了,3号的分配方案是给4号1个,要好过自己死了,他1个都拿不着。不给5号,不怕他反对,给自己99个。
如果第1个海盗死了,2号的分配方案是先杀1个,当然是最富有的3号,1个都不给。
给5号1个,给4号2个,他们2个会同意,97个给自己。
所以头号海盗的分配方案是:97,0,1,0,2
给下一方案中最富有的2个(2号4号)0,
另外2个,稍微贿赂一下,每人加一个,免的他们算不清楚,5号2个,3号1个,
97个给自己。数数的时候要小心2号和4号,他们会造反。
对不对呀,8万快不要紧,命要紧。
 
so easy a problem, you guys should try 100 pirates, a little bit more interesting.
 
最初由 Rock2008sz 发布
第一个应该提这个方案:

他自己------------0
其它人每人--------25


从理论上讲,只有在第一个说他什么都不拿,他才有可能活下去,最后可以分点利益。

保存生命是最大的利益。
您老兄很笨,但是没有把你的笨思路解释清楚。俺觉得老兄的解至少可以骗骗人的无数的解之中的一个。俺自己和老兄笨的相似(还有师长),所以越俎代庖帮你解释。

俺也没把这个问题当作纯数学题。不过如果把他当数学题做的的话,用以下这种繁琐罗嗦的方法来思考,可以使得所有的笨蛋包括俺都能懂:
1.假定俺是1号海盗,想要找到一种方案,使得俺的到的利益最大。

2.判定利益的大小看来是这样的:俺得100颗>得99>...1>0>死亡。(注:有少数聪明人认为死亡不在“利益”的可能性当中)

3.先定义死亡为-1(其实定义为任何负数实质都一样)。在从-1到100的可能值当中不管俺主观上希望得到多大的值,俺实际可能得到只有-1和0,这是因为:
a.其他4个海盗都没有感情而只又冷冰冰的理性的算计,试图通过各种手段使他们的利益最大化。俺知道这一点,这也是俺对他们的算计。
b.俺选任何除了0以外的其他期望值比如10颗,其他人投票让俺喂鱼就能使他们的利益更大一点点。换句话说,如果俺的方案中俺的所得不是0的话,俺实际能得的只会是-1。

4.俺也是个只懂得冷冰冰的算计的海盗,俺不在乎别人得到多少利益,只想让自己得益最多。在0和-1之中,不太显而易见的是,0要大一点。

所以出于追求俺的最大利益考虑,俺要选你的这种方案。聪明人会问即使得0,他们也可能投票要俺死。俺天真地认为他们只在乎自己的利益而没有感情(包括友情和仇恨)。俺已经得0了,他们无法通过让俺死来得到更大的利益。至于他们是否残忍仇恨俺是否要向先帝学习之类,都是另外的可以越扯越远的话题。无论如何即使有可能死,和必定死相比前者更好些。

师长,我们的差别在于:俺没有无我境界,只有出于理性的自私。以上3b是唯一还有漏洞的一条,但是解释起来太罗嗦没人要看
 
ORINGINAL TEXT








(This is the original text before it was edited by Scientific American)

The logic of mathematics sometimes leads to apparently bizarre conclusions. The rule here is that provided the logicdoesn't have holes in it, then the conclusions are sound. If they conflict with your intuition, then either your intuition is okay in a different context --- but not the one underconsideration --- or you need to refine your intuition.In September 1998 Stephen M. Omohundro sent me a puzzle that falls into exactly this category. The puzzle was invented by Steven Landsberg (U Illinois, Urbana-Champaign) ,and Omohundro came up with a variant in which the logic becomes surprisingly convoluted and the conclusions are remarkable.

First, the original version of the puzzle.

Ten pirates have got their hands on a hoard of 100 goldpieces, and wish to divide the loot between them. They are democratic pirates, in their own way, and it is their custom to make such divisions in the following manner. The fiercest pirate makes a proposal about the division, and everybody votes --- one vote each including the proposer. If 50% or more are in favour, the proposal passes and is implemented forthwith. Otherwise the proposer is thrown overboard and the procedure is repeated with the next fiercest pirate.

All the pirates enjoy throwing people overboard, but given the choice they prefer hard cash. They dislike being thrown overboard themselves. All pirates are rational, know that the other pirates are rational, know that they know that... and so on. Unlike other puzzles with an apparently similar form (see Monks, blobs, and common knowledge, Scientific American August 1998, 96-97), this one does not hinge upon the revelation of some piece of 'common knowledge'. Any common knowledge is already commonly known. Moreover, no two pirates are equally fierce, so there is a precise 'pecking order' --- and it is known to them all. Finally: gold pieces are indivisible and arrangements to share pieces are not permitted (since no pirate trusts his fellows to stick to such an arrangement). It's every man for himself.

Which proposal will maximise the fiercest pirate's gain?

Omohundro's contribution is to ask the same question, but with 500 pirates instead of 10. (Still 100 gold pieces.) For convenience, number the pirates from 1 upwards in order of meekness, so that the least fierce is number 1, the next least fierce number 2, and so on. The fiercest pirate thus gets the biggest number, and proposals proceed in reverse numerical order from the top down.

Following Omohundro, I'm going to try to convince you that the answer to the 10-pirate version of the problem is this: Pirate 10 proposes to keep 96 gold pieces for himself, to give one gold piece to each of pirates 8, 6, 4, and 2, and none to the odd-numbered pirates.

In contrast, the answer to the 500-pirate version involves the first 44 pirates being thrown overboard, after which pirate number 456... but I'm in danger of giving too much away, so you'll have to wait for the rest.

The secret to analysing all such games of strategy is to work backwards from the end. At the end, you know which decisions are good and which bad. Having established that, you can transfer that knowledge to the next-to-last decision, then the next-to-next-to-last, and so on. Starting from the front, in the order in which the decisions are actually taken, doesn't get you very far. The reason is that strategic decisions are all about 'What will the next person do if I do this...?' so the decisions that follow yours are important. The ones that come before yours aren't, because you can't do anything about them anyway.

Bearing this in mind, the place to start is when (if!) the game gets down to just two pirates, P1 and P2. The fiercest pirate is P2, and (if the game ever gets this far) his optimal decision is obvious: propose 100 pieces for himself and none for P1. His own vote is 50% of the total, so it wins.

Now add in pirate P3. Pirate P1 knows --- and P3 knows that he knows --- that if P3's proposal is voted down, P1 will get nothing. So P1 will therefore vote in favour of anything that P3 proposes, provided it yields him more than nothing. P3 therefore uses as little as possible of the gold to bribe P1,leading to the following proposal: 99 to P3, 0 to P2, and 1 to P1. Let's write it out like this:

P1 P2 P3

1 0 99

The thought-processes of P4 are similar. He needs 50% of the vote, so again he needs to bring exactly one other pirate on board. The minimum bribe he can use is one gold piece, and he can offer this to P2 since P2 will get nothing if P4's proposal fails and P3's is voted on. So the proposed allocation here becomes

P1 P2 P3 P4

0 1 0 99

The thought-processes of P5 are slightly more subtle. He needs to bribe two pirates. The minimum bribe he can use is two gold pieces, and the unique way he can succeed with this number is to propose the allocation

P1 P2 P3 P4 P5

1 0 1 0 98

The analysis proceeds in the same manner, with each proposal being uniquely prescribed by giving the proposer the maximum possible subject to ensuring a favourable vote, until we get to the tenth pirate and find the allocation

P1 P2 P3 P4 P5 P6 P7 P8 P9 P10

0 1 0 1 0 1 0 1 0 96

This is the proposal I indicated earlier, and it solves the 10-pirate puzzle.

Now comes Omohundro's twist: what if there are (a lot) more pirates? Clearly the same pattern persists --- for a while. In fact it persists up to the 200th pirate. P200 will offer nothing to the odd numbered pirates P1-P199, and one gold piece to each of the even-numbered pirates P2-P198, leaving one for himself.

However, we're trying to find the strategy for P500. At first sight, the argument breaks down at P200, because P201 has run out of bribes. However, he still has a vested interest in not being thrown overboard, so he can propose to take nothing himself:

P1 P2 P3 P4 ... P197 P198 P199 P200 P201

1 0 1 0 ... 1 0 1 0 0

This opens up a new phase of the strategy, because pirate P202 knows that P201 has to accept nothing, or be thrown overboard. So he can count on P201's vote. However, P202 also is forced to accept nothing. He must use the entire 100 gold pieces to bribe 100 pirates --- and these must be among those who would get zero according to P201's proposal. Since there are 101 such pirates, P202's proposal is no longer unique. Let's use a star * to mark pirates who might get something from P202's proposal:

P1 P2 P3 P4 ... P197 P198 P199 P200 P201 P202

0 * 0 * ... 0 * 0 * * 0

At this point a further consideration comes into force. Pirates have to think about how a pirate who has some chance of receiving a gold piece will react if he is definitely offered a gold piece. This depends on how much money, on average, he is willing to sacrifice for the fun of throwing somebody overboard. The puzzle doesn't specify this, so it is reasonable to assume that the pirates don't know it. This means that the bribe might succeed, so it is rational to offer a definite piece to a pirate who only has a chance of one later. As it turns out, things are more satisfactory: there are enough definite 0's in each round for pirates from now on to offer the bribes only to them. Indeed, as Peter Norvig pointed out, there will always be 100 allocations of 0 among pirates P1-P200, so we may describe a solution in which bribes are offered only to (some of) them.

You may wonder why I'm bothering about all this, since clearly pirate 203 doesn't have enough cash available to bribe enough pirates to vote for his proposal, whatever it is. This is true, and P203 goes overboard whatever he proposes --- a result that we symbolize by a cross X. We write ? to show that his choices are irrelevant, giving the situation:

P1 P2 P3 P4 ... P197 P198 P199 P200 P201 P202 P203

? ? ? ? ... ? ? ? ? ? ? X

Even though P203 is destined to walk the plank, this doesn't mean that he plays no part in the proceedings. On the contrary, P204 now knows that P203's sole aim in life is to avoid having to propose a division of the spoils. So P204 can count on P203's vote, whatever P204 proposes. Now P204 just squeaks home --- he can count on his own vote, P203's vote, and 100 others from bribes of one gold coin: 102 votes in all, the necessary 50%. So P204 will propose

P1 P2 P3 P4 ... P197 P198 P199 P200 P201 P202 P203 P204

* 0 * 0 ... * 0 * 0 * * 0 0

What of P205? He is not so fortunate! He cannot count on the votes of P203 or P204: if they vote against him they have the fun of throwing him overboard and can still save themselves. So P205 gets a X. So does P206 --- he can be sure of P205's vote, but that's not enough. In the same way, P207 needs 104 votes --- 3 plus his own plus 100 from bribes. He can get the votes of P205 and P206, but he needs one more and it's not available. So P207 gets a X as well.

P208 is more fortunate. He also needs 104 votes, but P205, P206, and P207 will vote for him! Add in his own vote and 100 bribes and he's in business. He must offer bribes to those pirates that would get 0 according to P204's proposal:

P1 P2 P3 P4 ... P198 P199 P200 P201 P202 P203 P204 P205 P206 P207 P208

0 * 0 * ... * 0 * 0 0 * * 0 0 0 0

Now a new pattern has set in, and it continues indefinitely. Pirates who make proposals (always to give themselves nothing and to bribe 100 of the first 200 pirates) are separated from each other by ever-longer sequences of pirates who will be thrown overboard no matter what proposal they make --- and whose vote is therefore ensured for any fiercer pirate's proposal. The pirates who avoid this fate are numbers P201, P202, P204, P208, P216, P232, P264, P328, P456,... and so on --- 200 plus a power of 2.

It remains to work out who are the lucky recipients of the bribes, just to make sure they will accept them. As I said, the solution is not unique, but one way to do this is for P201 to offer bribes to the odd-numbered pirates P1-P199, for P2 to offer bribes to the even-numbered pirates P2-P200, then P204 to the odd numbers, P208 to the evens, and so on, alternating from odd to even and back.

At any rate, we conclude that with 500 pirates and optimal strategy, the first 44 pirates are thrown overboard, and then P456 offers one gold piece to each of P1, P3, P5 ..., P199. Thanks to their democratic system, the pirates have arranged their affairs so that the very fierce ones mostly get thrown overboard, and at best can consider themselves lucky to escape with none of the loot. Only the 200 meekest pirates can expect anything, and only half of them.

Truly, the meek shall inherit the worth.
 
我的答案是
32 33 33 1 1

题目问的是第一个海盗
所以他必须能活着
只要能收买其中2个人的心,加上他自己,就能满足大于2.5个的底线要求
题目说了1个和100没什么区别,他自己少拿一个,没什么坏处

要想不死,必须满足其它4个人之间的2个,给他们一样的数目就是最好的
但是如果自己拿多了的话,其他几个人一定不会同意,所以,我们只要维持比最多的少1个就可以了
其他2个就算不同意,不过按照规则,也只有遵守,更何况按照我的分配方法,他们也一个拿到一个宝石了
 
一号的方案应该是:99 0 0 1 0
因为 5号无论如何要投反对票.
2号无论如何要投赞成票.因为如果1号死了,2号没有机会生存
3号无论如何要投反对票 因为如果1号2号都死了对他最有利(那时,4号无论如何要投赞成票)
4号会投战成票,1颗钻石是他的最好机会
 
最初由 天才 发布
一号的方案应该是:99 0 0 1 0
因为 5号无论如何要投反对票.
2号无论如何要投赞成票.因为如果1号死了,2号没有机会生存
3号无论如何要投反对票 因为如果1号2号都死了对他最有利(那时,4号无论如何要投赞成票)
4号会投战成票,1颗钻石是他的最好机会
按中文版本的题的话,我也这么认为

两个版本差太远了
 
qlgc的答案相当全面,涵盖了多个版本,
遗憾的是里面有一点一瑕疵,我稍作修改
当作标准答案公布,希望qlgc不要介意。

最初由 qlgc 发布
http://www.personal.psu.edu/users/c/a/cac989/Pirates.shtml

原来这个题目不是这样的。不知道是变种还是中文翻译有误。这道题的复杂性远远超出通常人的想象。中文版题目有两大漏洞:1)此轮利益和以后可能的最大利益比,一样就赞成,还是要多出才投赞成票?2)得到50%的支持算不算通过。英文题说算,中文说不算。

这两个变数对结果的影响十分巨大。

假设A:
1)要超过半数,2)此轮利益不比以后可能的最大利益差,就一定投赞成票:3) 也就是前提中加入“尽可能少杀人”

100,0,0,0,0
4号会无条件支持3号,因为只有两个人剩下时他自己肯定死
3号会给自己100颗,因为4号肯定支持自己
2号仍然会给自己100颗,因为4号和5号在3号的方案里也是什么都没有
1号还是会给自己100颗,因为4号和5号在2号的方案里也是什么都没有

假设B:
1)半数就可以通过,2)此轮利益不比以后可能的最大利益差,就一定投赞成票:3) 也就是前提中加入“尽可能少杀人”

100,0,0,0,0
4号会给自己100颗,因为只有两个人时半数肯定可以确保
3号仍会给自己100颗,5号在4号的方案里也是什么都没有
2号仍然会给自己100颗,因为至少5号在3号的方案里也是什么都没有
1号还是会给自己100颗,因为4号和5号在2号的方案里也是什么都没有

假设C:
1)半数就可以通过,2)此轮利益必须比下一轮利益好才投赞成票:
3) 也就是前提中加入“尽可能多杀人”

98,0,1,1,0 98,0, 1, 0, 1
4号会给自己100颗,因为只有两个人时半数肯定可以确保
3号会给自己99颗,给一颗5号来保证5号分得的比在4号的方案里多
2号会给自己98颗,给两颗5号来保证5号分得的比在3号的方案里多
用不着2颗,给4号一颗即可
1号还是会给自己98颗,给4号和3号各一颗,因为4号和3号在2号的方案里是什么都没有
根据2号的方案,一号会给3号,5号各一颗

假设D:
1)超过半数才可以通过,2)此轮利益必须比下一轮利益好才投赞成票:
3) 也就是前提中加入“尽可能多杀人”

97,0,1,0 ,2
97,0,1,2,0

4号会无条件支持3号,因为只有两个人剩下时他自己肯定死
3号会给自己100颗,因为4号肯定支持自己
2号会给自己98颗,4,5 各一颗以确保他们比3号的方案获利多
1号选择比较多,给自己97颗,舍弃4号或者5号,拉拢3号


这道题目里还有深远的社会意义,教导人们如何在谈判中争取最大利益而不是意气用事。象5号,虽然没有性命之虞,并且时时操纵着别人的性命,但他自己并不能获得多少利益。他必须接受只有一颗或者没有宝石的命运,并且眼睁睁看着被自己救了命的人拿得更多。
 
我犯了我给LOVEBABY指出的同样错误。这道题要在20分钟内就一次完全作对,不要说80K,200k都没有问题。 :D
 
最初由 qlgc 发布
我犯了我给LOVEBABY指出的同样错误。这道题要在20分钟内就一次完全作对,不要说80K,200k都没有问题。 :D

这道题并不复杂,这里弄的乱七八糟是因为规则不清晰,导致混乱。
3年以前我做英文版那题才用了不到10分钟,那时我还在国内上高2。
 
后退
顶部