呵呵,要是100扇门呢,里面加些其他的动物呢,概率很复杂,看你怎么列举,哈哈哈




Share |
Share

TOP

3扇门比较特殊,两种不一样的解法会出来相同的结果
4扇门可以比较一下,看出两种思路的不同
冬冤家,我有心将你打,却一个心儿怕;要不打,只恨你这冤家羞人煞;罢罢罢,低眉红了脸儿帕,嫁了吧!

TOP

明白你的,但是如果一直就留2扇不开,结果确实是啊。教授的答案算是allgemein的吧,呵呵,不过很复杂。




TOP

我在教授那里编过这个程序,要算概率的!!!

TOP

Originally posted by 驴子 at 2005-8-23 21:12:

如果改成4扇门,第一次选择后主持人打开2扇门呢




如果其他条件都不变的话,我觉得结果应该还是更换的几率更大,不更换几率是2/5,更换几率是3/5,不知道对不对。
Debugging is twice as hard as writing the code in the first place. Therefore,if you write the code as cleverly as possible,you are, by definition,not smart enough to debug it.-- Brian W. Kernighan

TOP

Originally posted by Lightningbolt at 2005-8-23 23:55:




如果其他条件都不变的话,我觉得结果应该还是更换的几率更大,不更换几率是2/5,更换几率是3/5,不知道对不对。

1/4,3/4




TOP

恩,刚才按正常算法又算了一下,应该是1/4和3/4。其实按照前面的思维的话,马上就能得到答案,一个概率不变,另一个是它的补。
Debugging is twice as hard as writing the code in the first place. Therefore,if you write the code as cleverly as possible,you are, by definition,not smart enough to debug it.-- Brian W. Kernighan

TOP

Originally posted by levi at 2005-8-24 01:00 AM:

1/4,3/4

yes.gifyes.gifyes.gif
冬冤家,我有心将你打,却一个心儿怕;要不打,只恨你这冤家羞人煞;罢罢罢,低眉红了脸儿帕,嫁了吧!

TOP