<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>阅微堂 &#187; 概率</title>
	<atom:link href="http://zhiqiang.org/blog/tag/%e6%a6%82%e7%8e%87/feed" rel="self" type="application/rss+xml" />
	<link>http://zhiqiang.org/blog</link>
	<description>数学、金融、计算机</description>
	<lastBuildDate>Sat, 19 May 2012 13:47:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>换还是不换？</title>
		<link>http://zhiqiang.org/blog/science/change-or-not-change.html</link>
		<comments>http://zhiqiang.org/blog/science/change-or-not-change.html#comments</comments>
		<pubDate>Sat, 31 Mar 2012 23:00:00 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[自然科学]]></category>
		<category><![CDATA[悖论]]></category>
		<category><![CDATA[概率]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/?p=4961</guid>
		<description><![CDATA[博客 » 自然科学 » 悖论，概率 » 最有名的关于换还是不换的问题是三门问题，已经被研究得比较透彻。这里想说的是另外一个悖论。 换还是不换(一) 我以前提到过这个问题。 假设你碰到一个精灵。精灵拿出两个钱袋，并告诉你其中一个钱袋的钱数是另外一个钱袋的两倍。 你随机挑选了一个钱袋，发现其中有块钱。接下来，精灵给你一个换钱袋的机会。你会想，另外一个钱...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/science">自然科学</a> » <a href="http://zhiqiang.org/blog/tag/%e6%82%96%e8%ae%ba" rel="tag">悖论</a>，<a href="http://zhiqiang.org/blog/tag/%e6%a6%82%e7%8e%87" rel="tag">概率</a> » </p><p>最有名的关于换还是不换的问题是<a href="http://zhiqiang.org/blog/science/three-doors-related-problems.html">三门问题</a>，已经<a href="http://zhiqiang.org/blog/science/three-doors-related-problems.html">被研究得比较透彻</a>。这里想说的是另外一个悖论。</p>
<h3>换还是不换(一)</h3>
<p>我以前<a href="http://zhiqiang.org/blog/science/to-active-the-brain-active.html">提到过这个问题</a>。</p>
<p>假设你碰到一个精灵。精灵拿出两个钱袋，并告诉你其中一个钱袋的钱数是另外一个钱袋的两倍。</p>
<p>你随机挑选了一个钱袋，发现其中有<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_9dd4e461268c8034f5c8564e155c67a6.gif' style='vertical-align: middle; border: none; padding-bottom:2px;' class='tex' alt="x" /></span><script type='math/tex'>x</script>块钱。接下来，精灵给你一个换钱袋的机会。你会想，另外一个钱袋的钱要么是<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_41e4eeeeffc63436aa240249fc78b9a1.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\frac{x}{2}" /></span><script type='math/tex'>\frac{x}{2}</script>块钱，要么是<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_2204c2b4d60ae2fd5279ec54cfaed2a4.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="2x" /></span><script type='math/tex'>2x</script>块钱，平均看是<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_a77090c455b0c9c4c66777ef0fc261cc.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\frac12\frac{x}{2}+\frac122x = \frac{5x}{4}" /></span><script type='math/tex'>\frac12\frac{x}{2}+\frac122x = \frac{5x}{4}</script>块钱。显然，换成另外一个钱袋会更划算一些。</p>
<p>但问题是，如果你一开始就选择了另外一个钱袋，你会使用一样的逻辑，发现换成现在这个钱袋更划算一些。问题出在哪里呢？</p>
<p>我之前给出的解释是：假设<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_fe74d6e8e594cfef5b7ea9e2332a5148.gif' style='vertical-align: middle; border: none; ' class='tex' alt="P(a)" /></span><script type='math/tex'>P(a)</script>为两个钱袋的钱为<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_0cc175b9c0f1b6a831c399e269772661.gif' style='vertical-align: middle; border: none; padding-bottom:2px;' class='tex' alt="a" /></span><script type='math/tex'>a</script>和<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_e36314e624d2b2ca257e1f1ecb381f93.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="2a" /></span><script type='math/tex'>2a</script>的概率。那么上面推理中，另外一个钱袋的期望钱数是<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_a77090c455b0c9c4c66777ef0fc261cc.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\frac12\frac{x}{2}+\frac122x = \frac{5x}{4}" /></span><script type='math/tex'>\frac12\frac{x}{2}+\frac122x = \frac{5x}{4}</script>，当且经当<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_87dce1ad77e3c89c5b8a159ec2620136.gif' style='vertical-align: middle; border: none; ' class='tex' alt="P(x)=P(2x)" /></span><script type='math/tex'>P(x)=P(2x)</script>。而对任意<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_9dd4e461268c8034f5c8564e155c67a6.gif' style='vertical-align: middle; border: none; padding-bottom:2px;' class='tex' alt="x" /></span><script type='math/tex'>x</script>都满足该式的概率分布并不存在，否则选择一个<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_0cc175b9c0f1b6a831c399e269772661.gif' style='vertical-align: middle; border: none; padding-bottom:2px;' class='tex' alt="a" /></span><script type='math/tex'>a</script>使得<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_404800db22e1d7114b39dde6f92dc1b6.gif' style='vertical-align: middle; border: none; ' class='tex' alt="P(a)\neq 0" /></span><script type='math/tex'>P(a)\neq 0</script>，则</p>
<p><p style='text-align:center;'><span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_c5b05498cb497d6e94b649e1825016a2.gif' style='vertical-align: middle; border: none;' class='tex' alt="1\geq P(a)+P(2a)+P(4a)+\cdots = P(a)\times\infty = \infty" /></span><script type='math/tex;  mode=display'>1\geq P(a)+P(2a)+P(4a)+\cdots = P(a)\times\infty = \infty</script></p></p>
<p>矛盾。</p>
<h3>换还是不换(二)</h3>
<p>我以前以为，上面这个问题已经被彻底解决。但最近阅读的《蚁迹寻踪及其他数学探索》提到了一个类似的问题，这个问题说明上面的答案还不是问题的本质。</p>
<p>假设这次换了一个精灵，这个精灵给的两个钱袋，其中一个钱袋钱数是另外一个钱袋的三倍。并且，精灵按照确定的概率分布来放钱，其中钱较多的钱袋钱数为<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_c40ad22eb2dcc7c64f22ca55a5f872b9.gif' style='vertical-align: middle; border: none; ' class='tex' alt="3^k" /></span><script type='math/tex'>3^k</script>的概率恰好是<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_eb7f0e98d7d1fa05eaa5e105c5151b18.gif' style='vertical-align: middle; border: none; ' class='tex' alt="2^{-k}" /></span><script type='math/tex'>2^{-k}</script>，其中<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_552c868b2949249a8d88aed2352cc9d7.gif' style='vertical-align: middle; border: none; ' class='tex' alt="k=1,2,3,\cdots" /></span><script type='math/tex'>k=1,2,3,\cdots</script>。</p>
<p>同样，你选择了一个钱袋，然后精灵给了你一个选择换另外一个钱袋。如果你拿到的钱袋里只有1块钱，另外一个钱袋里肯定是3块钱，你必然会选择换成另外一个钱袋。假设你的钱袋里有<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_9dd4e461268c8034f5c8564e155c67a6.gif' style='vertical-align: middle; border: none; padding-bottom:2px;' class='tex' alt="x" /></span><script type='math/tex'>x</script>块钱，且<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_f314738fa705e0d45b90ef70be5d859c.gif' style='vertical-align: middle; border: none; ' class='tex' alt="x>1" /></span><script type='math/tex'>x>1</script>。那么根据精灵放钱的概率分布，另外一个钱袋有<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_2ebf69e748bb627d0b9ff88348e50231.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\frac23" /></span><script type='math/tex'>\frac23</script>的概率为<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_d6bd4e0152a8ac6ea029a4a169dc9b0a.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\frac{x}{3}" /></span><script type='math/tex'>\frac{x}{3}</script>，有<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_d956cdb7499333e9019ab551b9d8d803.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\frac13" /></span><script type='math/tex'>\frac13</script>的概率为<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_c68ebab7a1e74618506a0a1fabe54186.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="3x" /></span><script type='math/tex'>3x</script>，也就是说，期望值是<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_957fb571360f5d988daf3b103782c6e6.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\frac{11x}{9}" /></span><script type='math/tex'>\frac{11x}{9}</script>。</p>
<p>这样，你会发现，无论如何，你都应该换成另外一个钱袋。</p>
<p>但问题是，如果你一开始就选择了另外一个钱袋，你会使用一样的逻辑，发现换成现在这个钱袋更划算一些。问题出在哪里呢？</p>
<p>【悲剧了，原来我以前就写到过这个问题，而且写得更清楚，见<a href="http://zhiqiang.org/blog/science/two-envelopes-problem-and-siege-effect.html">双信封悖论和围城效应</a>。】</p>
<p>&nbsp;</p>
<div><h4>相关文章</h4><ul><li ><a href="http://zhiqiang.org/blog/science/to-active-the-brain-active.html">来活跃活跃大脑</a></li><li class='currentpost'><a href="http://zhiqiang.org/blog/science/change-or-not-change.html">换还是不换？</a></li><li ><a href="http://zhiqiang.org/blog/science/two-envelopes-problem-and-siege-effect.html">双信封悖论和围城效应</a></li><li ><a href="http://zhiqiang.org/blog/science/googles-crazy-face-questions.html">Google的疯狂面试题</a></li><li ><a href="http://zhiqiang.org/blog/science/theoritical-analysis-marfia-game.html">杀人的理论分析</a></li><li ><a href="http://zhiqiang.org/blog/science/three-doors-related-problems.html">三门问题及相关</a></li><li ><a href="http://zhiqiang.org/blog/science/computer-science/boxes-problem-on-static-data-structure-problems.html">摸箱子问题以及应用</a></li><li ><a href="http://zhiqiang.org/blog/review/fooled-by-randomnes.html">《随机致富的傻瓜》</a></li><li ><a href="http://zhiqiang.org/blog/science/when-to-stop.html">何时适可而止?</a></li><li ><a href="http://zhiqiang.org/blog/science/buy-car-in-beijing.html">北京摇中号有多难</a></li></ul></div>    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2012. | <a href="http://zhiqiang.org/blog/science/change-or-not-change.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/science/change-or-not-change.html#comments">14 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/science/change-or-not-change.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>北京摇中号有多难</title>
		<link>http://zhiqiang.org/blog/science/buy-car-in-beijing.html</link>
		<comments>http://zhiqiang.org/blog/science/buy-car-in-beijing.html#comments</comments>
		<pubDate>Sat, 14 May 2011 13:06:05 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[自然科学]]></category>
		<category><![CDATA[概率]]></category>
		<category><![CDATA[生活中的数学]]></category>
		<category><![CDATA[车牌摇号]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/?p=2206</guid>
		<description><![CDATA[博客 » 自然科学 » 概率，生活中的数学，车牌摇号 » 系列：生活中的数学 查看该系列所有文章 今天一个朋友向我提起他参与北京买车摇号，他自己和周围十来人都没有摇中的事情，我关注了一下摇号的一些数据。 目前为止已经有四期摇号，第一期到第四期参与摇号的人数分别为187420、292280、397543、476861，每期摇中17600个号【数据来源】。 1 假设在未来各轮中参与人数不变...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/science">自然科学</a> » <a href="http://zhiqiang.org/blog/tag/%e6%a6%82%e7%8e%87" rel="tag">概率</a>，<a href="http://zhiqiang.org/blog/tag/%e7%94%9f%e6%b4%bb%e4%b8%ad%e7%9a%84%e6%95%b0%e5%ad%a6" rel="tag">生活中的数学</a>，<a href="http://zhiqiang.org/blog/tag/%e8%bd%a6%e7%89%8c%e6%91%87%e5%8f%b7" rel="tag">车牌摇号</a> » </p><div class="series"><span>系列：<b>生活中的数学</b></span><br/>
<a href="http://zhiqiang.org/blog/tag/%e7%94%9f%e6%b4%bb%e4%b8%ad%e7%9a%84%e6%95%b0%e5%ad%a6">查看该系列所有文章</a>
<div id='series'></div>
</div>  <p>今天一个朋友向我提起他参与北京买车摇号，他自己和周围十来人都没有摇中的事情，我关注了一下摇号的一些数据。</p>
<p>目前为止已经有四期摇号，第一期到第四期参与摇号的人数分别为187420、292280、397543、476861，每期摇中17600个号【<a href="http://www.bjhjyd.gov.cn/jggb/index.html">数据来源</a>】。</p>
<p>1</p>
<p>假设在未来各轮中参与人数不变，稳定在50万人左右。那么平均看，一个申请者可以在28个月摇中，如果家庭里夫妻双方都参与摇号，预期中奖时间为14个月。</p>
<p>注意，这个预期中奖时间并不是说能保证你在28个月内一定会摇中，而是说平均看，会需要28个月，有些人低于28个月，有些人长于28个月。</p>
<p>2</p>
<p>从过去四期的数据上看，每期申请者人数上次较快。先考虑一个虚拟的数学问题，如果每期申请人数增加5万，效果怎么样？</p>
<p>事实上，<strong>当每期申请人数增加的量超过中奖数量时，预期中奖时间达到无穷大</strong>。</p>
<p>3</p>
<p>上面的假设不能应用到实际中，因为申请人数不可能永远增长下去。假设北京市的总申请人数封底100万，即每个月申请人数新增5万，但增到100万就不继续增加。</p>
<p>此时，<strong>一个申请者的摇中所需的平均期数为54个月，大约4年半。如果家庭两夫妻都参与摇号，可以将这个时间缩短到25个月</strong>。</p>
<p>4</p>
<p>最终结论：<strong>要想摇到号，不如坐等下一次经济危机来的快</strong>，到时不但可以买车，买房贷款利率还能打七折。</p>
<div><h4>相关文章</h4><ul><li class='currentpost'><a href="http://zhiqiang.org/blog/science/buy-car-in-beijing.html">北京摇中号有多难</a></li><li ><a href="http://zhiqiang.org/blog/science/theoritical-analysis-marfia-game.html">杀人的理论分析</a></li><li ><a href="http://zhiqiang.org/blog/scribble/buttocks-decision-brain-on-beijing-car-policy.html">屁股决定脑袋之北京车牌政策</a></li><li ><a href="http://zhiqiang.org/blog/science/how-should-the-money.html">钱应该怎么分？</a></li><li ><a href="http://zhiqiang.org/blog/science/tcs-classroom-notes-the-best-dating-strategy.html">最佳约会策略</a></li><li ><a href="http://zhiqiang.org/blog/science/from-the-nash-equilibrium-of-the-bystander-effect.html">从纳什均衡看旁观者效应</a></li><li ><a href="http://zhiqiang.org/blog/science/how-to-gamble-optimally.html">赌博的最优策略</a></li><li ><a href="http://zhiqiang.org/blog/science/two-envelopes-problem-and-siege-effect.html">双信封悖论和围城效应</a></li><li ><a href="http://zhiqiang.org/blog/science/image-mirrors.html">镜子的映像</a></li><li ><a href="http://zhiqiang.org/blog/science/how-to-gamble-if-you-in-hurry.html">赌博的最优策略(II)</a></li></ul></div>    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2011. | <a href="http://zhiqiang.org/blog/science/buy-car-in-beijing.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/science/buy-car-in-beijing.html#comments">5 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/science/buy-car-in-beijing.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>何时适可而止?</title>
		<link>http://zhiqiang.org/blog/science/when-to-stop.html</link>
		<comments>http://zhiqiang.org/blog/science/when-to-stop.html#comments</comments>
		<pubDate>Sun, 21 Nov 2010 03:40:53 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[自然科学]]></category>
		<category><![CDATA[头脑风暴]]></category>
		<category><![CDATA[概率]]></category>
		<category><![CDATA[随机游走]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/?p=1549</guid>
		<description><![CDATA[博客 » 自然科学 » 头脑风暴，概率，随机游走 » 系列：头脑风暴 查看该系列所有文章 最近看到一个有趣的问题： 我们可以连续抛一枚均匀的硬币，并且随时可停下，在停下后可获得的回报为（正面出现次数/抛硬币的次数）。如果希望获得的回报越大越好，我们应该采取什么样的停止策略？ 在第一次抛硬币时，如果出现正面时立即停止，此时获得一个最大的回报1，如果出...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/science">自然科学</a> » <a href="http://zhiqiang.org/blog/tag/%e5%a4%b4%e8%84%91%e9%a3%8e%e6%9a%b4" rel="tag">头脑风暴</a>，<a href="http://zhiqiang.org/blog/tag/%e6%a6%82%e7%8e%87" rel="tag">概率</a>，<a href="http://zhiqiang.org/blog/tag/%e9%9a%8f%e6%9c%ba%e6%b8%b8%e8%b5%b0" rel="tag">随机游走</a> » </p><div class="series"><span>系列：<b>头脑风暴</b></span><br/>
<a href="http://zhiqiang.org/blog/tag/%e5%a4%b4%e8%84%91%e9%a3%8e%e6%9a%b4">查看该系列所有文章</a>
<div id='series'></div>
</div>  <p>最近看到一个有趣的问题：</p>
<blockquote><p>我们可以连续抛一枚均匀的硬币，并且随时可停下，在停下后可获得的回报为（正面出现次数/抛硬币的次数）。如果希望获得的回报越大越好，我们应该采取什么样的停止策略？</p></blockquote>
<p>在第一次抛硬币时，如果出现正面时立即停止，此时获得一个最大的回报1，如果出现反面，则应该选择继续抛。假设前<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_7b8b965ad4bca0e41ab51de7b31363a1.gif' style='vertical-align: middle; border: none; padding-bottom:2px;' class='tex' alt="n" /></span><script type='math/tex'>n</script>次抛硬币出现了<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_8ce4b16b22b58894aa86c421e8759df3.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="k" /></span><script type='math/tex'>k</script>次正面时最后能获取的期望回报值为<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_e75aa12c632e4b727f1cdc6ef89b9892.gif' style='vertical-align: middle; border: none; ' class='tex' alt="f(n, k)" /></span><script type='math/tex'>f(n, k)</script>，利用动态规划的思想容易列出方程</p>
<p><p style='text-align:center;'><span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_5240f16a93f7c3237f00399e0ae3cbf4.gif' style='vertical-align: middle; border: none;' class='tex' alt="f(n, k) = \max ( \frac{k}{n}, \frac{f(n+1, k)+f(n+1, k+1)}{2})" /></span><script type='math/tex;  mode=display'>f(n, k) = \max ( \frac{k}{n}, \frac{f(n+1, k)+f(n+1, k+1)}{2})</script></p></p>
<p>但要解上面的方程可不是那么容易。事实上，它们的精确值还没有人知道。注意到由于一维随机游走的常返性，对任意的<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_7b8b965ad4bca0e41ab51de7b31363a1.gif' style='vertical-align: middle; border: none; padding-bottom:2px;' class='tex' alt="n" /></span><script type='math/tex'>n</script>和<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_8ce4b16b22b58894aa86c421e8759df3.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="k" /></span><script type='math/tex'>k</script>都有<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_dd326872080bd5e67aafa7c6b3333cb2.gif' style='vertical-align: middle; border: none; ' class='tex' alt="f(n,k)\geq 0.5" /></span><script type='math/tex'>f(n,k)\geq 0.5</script>。利用这个边界条件可以求出一些近似解，我用下面的Matlab跑了一下：</p>
<pre>N = 100000;
f = max(0, 0:1/N:1);
for n = N-1:-1:0
    f(1:n+1) = max((0:n)/n, (f(1:(n+1))+f(2:(n+2)))/2);
end

f = f(1);</pre>
<p>将边界设为第100000枚硬币，算出来从最开始抛时的期望回报大约为0.79289。由于我的破计算机速度以及Matlab的效率问题，我这里很难再提高它的精确性，但<a href="http://www.jdawiseman.com/papers/easymath/coin-stopping.html">这里有人</a>将边界提高到了67108864，计算出来的结果为0.79295350640770。</p>
<p>如果只想知道该在什么时候停止呢？精确的规则也没人知道，Larry A. Shepp在论文<a href="http://arxiv.org/PS_cache/arxiv/pdf/0907/0907.0032v2.pdf">Explicit solutions to some problems of optimal stopping</a>中证明了抛的硬币次数<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_7b8b965ad4bca0e41ab51de7b31363a1.gif' style='vertical-align: middle; border: none; padding-bottom:2px;' class='tex' alt="n" /></span><script type='math/tex'>n</script>足够多时，应该等到正面数为<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_4d0e3d69e6a7837f24d74a140822e709.gif' style='vertical-align: middle; border: none; ' class='tex' alt="(0.83992\sqrt{n}+n)/2" /></span><script type='math/tex'>(0.83992\sqrt{n}+n)/2</script>时停止。</p>
<p>这个问题，和以前的<a href="http://zhiqiang.org/blog/science/tcs-classroom-notes-the-best-dating-strategy.html">最佳约会策略</a>一样，都是说如何基于当前的已知信息做决策，是在现实生活中不断遇到的，比如在赌场赌博，到底赌到什么时候该收手，上面答案可做一点参考。</p>
<div><h4>相关文章</h4><ul><li class='currentpost'><a href="http://zhiqiang.org/blog/science/when-to-stop.html">何时适可而止?</a></li><li ><a href="http://zhiqiang.org/blog/science/game-two-hats.html">帽子游戏二</a></li><li ><a href="http://zhiqiang.org/blog/science/game-one-hat.html">帽子游戏一</a></li><li ><a href="http://zhiqiang.org/blog/science/strategy-games-doctors-and-patients-i.html">策略游戏：医生和病人（I）</a></li><li ><a href="http://zhiqiang.org/blog/science/googles-crazy-face-questions.html">Google的疯狂面试题</a></li><li ><a href="http://zhiqiang.org/blog/science/how-n-people-divide-a-cake-fairly.html">征集3个人分蛋糕的方法</a></li><li ><a href="http://zhiqiang.org/blog/science/how-to-oil-airplain.html">飞机加油问题</a></li><li ><a href="http://zhiqiang.org/blog/science/rotate-coin-games.html">硬币游戏</a></li><li ><a href="http://zhiqiang.org/blog/science/a-tencent-interview-problem.html">一个腾讯游戏策划部门的面试题</a></li><li ><a href="http://zhiqiang.org/blog/science/compute-anonymous-statistics.html">如何匿名统计平均收入</a></li></ul></div>    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2010. | <a href="http://zhiqiang.org/blog/science/when-to-stop.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/science/when-to-stop.html#comments">11 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/science/when-to-stop.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>《随机致富的傻瓜》</title>
		<link>http://zhiqiang.org/blog/review/fooled-by-randomnes.html</link>
		<comments>http://zhiqiang.org/blog/review/fooled-by-randomnes.html#comments</comments>
		<pubDate>Wed, 08 Sep 2010 04:06:14 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[评论]]></category>
		<category><![CDATA[概率]]></category>
		<category><![CDATA[读书笔记]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/?p=1107</guid>
		<description><![CDATA[博客 » 评论 » 概率，读书笔记 » 总结一下 1、一个投资策略如果用过去一段时间的历史数据去模拟发现它能够持续战胜市场，这个证据足够证明它是一个好策略吗？一个基金经理过去一段时间表现很好，能证明他比别的经理要好吗？ 答案是不能。因为有可能是该投资策略和基金经理的操作风格恰好符合过去一段时间的历史形势从而取得好成绩，如果不能在未来形势发生改变...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/review">评论</a> » <a href="http://zhiqiang.org/blog/tag/%e6%a6%82%e7%8e%87" rel="tag">概率</a>，<a href="http://zhiqiang.org/blog/tag/%e8%af%bb%e4%b9%a6%e7%ac%94%e8%ae%b0" rel="tag">读书笔记</a> » </p><p>总结一下</p>
<p>1、一个投资策略如果用过去一段时间的历史数据去模拟发现它能够持续战胜市场，这个证据足够证明它是一个好策略吗？一个基金经理过去一段时间表现很好，能证明他比别的经理要好吗？</p>
<p>答案是不能。因为有可能是该投资策略和基金经理的操作风格恰好符合过去一段时间的历史形势从而取得好成绩，如果不能在未来形势发生改变时修改其策略和风格，则可能导致重大亏损。书中举的例子是，某债券投资经理的操作风格是：当债券下跌时再次买入拉底平均成本，这种方法让他在98年之前持续战胜指数，但在98年的市场大跌中将之前赚得钱全亏掉了。</p>
<p>所以作者认为，评价一个东西好，必须在所有的“历史样本”空间里进行考虑，而不只是利用“真实历史样本”去衡量。可惜作者并没有详细说明如何产生更多的“历史样本”。而“历史”，比如股票价格并不完全是随机的，它不能简单用一个随机游走来刻画。</p>
<p>２、在短时间尺度内，对于投资组合的观测只能观测到其波动性，而不是报酬。如果你盯着资讯系统追看新闻，那部分新闻都只是噪声。所以应该看周刊里的深度报告而不是华尔街日报。</p>
<p>３、期望和条件期望：你现在63岁，中国的平均寿命是73岁，你预期还能活多少年？</p>
<p>肯定不是10年。否则你万一活到了83岁，你预期还能活多少年？</p>
<p>４、概率 vs 期望：如果要去估计投资组合，那么不光要预测赚钱的概率，还需要估计赚钱和亏钱的幅度。单独谈论赚钱的概率有多大没有意义。从概率分布的角度上来说，要考虑分布的偏度（Skewness）</p>
<p>5、癌症丛集：如果你在报纸上看到一则新闻说你居住的区域因为辐射较强（比如在高压线旁边），癌症病例比例比全市平均比例高20%，你怎么看？</p>
<p>事实上，即使癌症病例是随机分布的，在全市所有地区都均匀的概率微乎其微，事实上，总会有些地方它的病例比别的地方要多一些。</p>
<p>6、如果需要研究技术指标，其中一种方法是调整技术指标的参数，然后去历史数据去测试，从中选取最合适的参数，这样做合适吗？</p>
<p>这样做会陷入数据探索（data bootstrap）偏差，当你的技术指标足够复杂，可选参数足够多时，完全可能跟历史情况匹配很好的指标和参数，但并不意味着它可以用来预测未来。另一个相关的名词叫做过度拟合（over fitting）。</p>
<p>7、数据挖掘（data mining）偏差：平均365个人中有1人在1月1日生日的可能性，但只需要23个人，就能找到两个人在同一天生日。事实上，当考虑因子比较多的时候，要在其中找到匹配关系实在太容易了。</p>
<p>8、幸存者效应：你持续不断地受到股评短信，它向你推荐黑马股，令人惊讶地你发现它的连续十次推荐都命中了。你会相信它吗？</p>
<p>你有可能只是10万个短信接收者的幸存者而已，如果你真的按照它所说的去做的话，完全可能血本无亏。</p>
<p>9、absence of evidence和evidence of absence的区别：在癌症丛集的案例中，如果利用统计理论显示没有证据表明此区域的病例比例比平均比例要高（数字上的20%可能只是因为随机因素导致的），但这并没有直接否认此区域的病例比例比平均比例要高。</p>
<p>这本书谈到的数学概念是比较简单的，作者为了让文科生也能读懂，将数学概念嵌入到了故事里面，使得文章虽然有趣，但未免拖沓了点。书里花了不少篇幅谈论哲学问题，引用了不少哲学人物和观点，我除了关于波普尔的部分大致看了看，其它全跳过去了，因为不知道作者想表达什么意思。</p>
<div><h4>相关文章</h4><ul><li class='currentpost'><a href="http://zhiqiang.org/blog/review/fooled-by-randomnes.html">《随机致富的傻瓜》</a></li><li ><a href="http://zhiqiang.org/blog/review/reading-notes-what-life-means-to-you-oct-2005-nov-2005.html">生命对你意味着什么</a></li><li ><a href="http://zhiqiang.org/blog/review/civilization-and-barbarism-are-you-civilized.html">文明与野蛮 - Are You Civilized?</a></li><li ><a href="http://zhiqiang.org/blog/review/the-art-school.html">读书的艺术</a></li><li ><a href="http://zhiqiang.org/blog/finance/cost-and-consequence-of-discrimination.html">歧视行为的代价和后果</a></li><li ><a href="http://zhiqiang.org/blog/science/theoritical-analysis-marfia-game.html">杀人的理论分析</a></li><li ><a href="http://zhiqiang.org/blog/science/three-doors-related-problems.html">三门问题及相关</a></li><li ><a href="http://zhiqiang.org/blog/science/computer-science/boxes-problem-on-static-data-structure-problems.html">摸箱子问题以及应用</a></li><li ><a href="http://zhiqiang.org/blog/science/when-to-stop.html">何时适可而止?</a></li><li ><a href="http://zhiqiang.org/blog/science/buy-car-in-beijing.html">北京摇中号有多难</a></li></ul></div>    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2010. | <a href="http://zhiqiang.org/blog/review/fooled-by-randomnes.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/review/fooled-by-randomnes.html#comments">3 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/review/fooled-by-randomnes.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>摸箱子问题以及应用</title>
		<link>http://zhiqiang.org/blog/science/computer-science/boxes-problem-on-static-data-structure-problems.html</link>
		<comments>http://zhiqiang.org/blog/science/computer-science/boxes-problem-on-static-data-structure-problems.html#comments</comments>
		<pubDate>Tue, 16 Dec 2008 08:24:54 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[计算机科学]]></category>
		<category><![CDATA[概率]]></category>
		<category><![CDATA[游戏]]></category>
		<category><![CDATA[理论计算机笔记]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/posts/boxes-problem-on-static-data-structure-problems.html</guid>
		<description><![CDATA[博客 » 计算机科学 » 概率，游戏，理论计算机笔记 » 系列：理论计算机笔记 查看该系列所有文章 以前提到过，理论计算机这门课会邀请一些正在这边访问的教授来讲课，由于是本科生，所以这些教授一般都是讲些有趣的东西，比如之前的overhang 堆积木 - 能伸出桌面多远？。今天这次课，来自Aarhus的Peter Bro Miltersen讲了一个很有趣的游戏问题。 现在有100个箱子，有一个学生，...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/science/computer-science">计算机科学</a> » <a href="http://zhiqiang.org/blog/tag/%e6%a6%82%e7%8e%87" rel="tag">概率</a>，<a href="http://zhiqiang.org/blog/tag/%e6%b8%b8%e6%88%8f" rel="tag">游戏</a>，<a href="http://zhiqiang.org/blog/tag/%e7%90%86%e8%ae%ba%e8%ae%a1%e7%ae%97%e6%9c%ba%e7%ac%94%e8%ae%b0" rel="tag">理论计算机笔记</a> » </p><div class="series"><span>系列：<b>理论计算机笔记</b></span><br/>
<a href="http://zhiqiang.org/blog/tag/%e7%90%86%e8%ae%ba%e8%ae%a1%e7%ae%97%e6%9c%ba%e7%ac%94%e8%ae%b0">查看该系列所有文章</a>
<div id='series'></div>
</div>  <p>以前提到过，理论计算机这门课会邀请一些正在这边访问的教授来讲课，由于是本科生，所以这些教授一般都是讲些有趣的东西，比如之前的<a href="http://zhiqiang.org/blog/science/overhang-stacking-wood-how-far-can-extend-desktop.html">overhang 堆积木 - 能伸出桌面多远？</a>。今天这次课，来自Aarhus的<a href="http://cs.au.dk/~bromille/">Peter Bro Miltersen</a>讲了一个很有趣的游戏问题。</p>
<p>现在有100个箱子，有一个学生，一张写着他的名字的名片被放在某个随机选择的箱子里面。现在这个学生可以检查不超过一半也就是50个箱子，希望能够把它的名字找出来。</p>
<p>很显然，这个学生没有什么好的方法，随机选择50个箱子打开，有一半的概率可以发现含有它的名字纸条的箱子。</p>
<p>OK，现在还是100个箱子，但是有100个学生，写着这些学生的名字的100张纸条随机放入100个箱子里(每个箱子恰好一张纸条)。现在每个学生可以检查不超过一半也就是50个箱子，每个学生希望能找到含有自己名字的箱子。如果在游戏中，所有学生都是独立的（他们不能互相讨论以及看到其他人的开箱结果），问所有学生都实现目标的概率有多大？</p>
<p>如果把每个学生的结果认为是独立的，那么成功的概率只有<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_5deb1f2a4cb23a636322677c5b5711f8.gif' style='vertical-align: middle; border: none; ' class='tex' alt="2^{-100}" /></span><script type='math/tex'>2^{-100}</script>，但其实我们可以做的比这要好得多。事实上，让每个学生都找到含有自己名字的箱子的概率可以高达0.3。</p>
<p>假设学生的名字就是它的编号，从1到100。第<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_865c0c0b4ab0e063e5caa3387c1a8741.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="i" /></span><script type='math/tex'>i</script>个箱子里的编号是<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_337778f4c628d9c80045adbc3a9a81b0.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\pi(i)" /></span><script type='math/tex'>\pi(i)</script>。第<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_865c0c0b4ab0e063e5caa3387c1a8741.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="i" /></span><script type='math/tex'>i</script>个学生这样做：先打开第<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_865c0c0b4ab0e063e5caa3387c1a8741.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="i" /></span><script type='math/tex'>i</script>个箱子，再打开第<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_337778f4c628d9c80045adbc3a9a81b0.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\pi(i)" /></span><script type='math/tex'>\pi(i)</script>个箱子，再打开第<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_30e74848e17f1241028df30d37626fb5.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\pi(\pi(i))" /></span><script type='math/tex'>\pi(\pi(i))</script>个箱子，以此继续下去，直到发现写着自己名字（也就是<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_865c0c0b4ab0e063e5caa3387c1a8741.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="i" /></span><script type='math/tex'>i</script>）的纸条或者打开箱子数到达50个为止。</p>
<p>那么当且仅当在<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_865c0c0b4ab0e063e5caa3387c1a8741.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="i" /></span><script type='math/tex'>i</script>到<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_337778f4c628d9c80045adbc3a9a81b0.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\pi(i)" /></span><script type='math/tex'>\pi(i)</script>这个置换中含有长度超过50的圈时，有学生找不到含有自己名字的箱子。这个概率是<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_8dde40b065bb39ce68f1acf77b65f3d8.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\sum_{j=51}^{100}1/j \sim \ln 2" /></span><script type='math/tex'>\sum_{j=51}^{100}1/j \sim \ln 2</script>（注意一个随机置换里含有一个长度为<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_363b122c528f54df4a0446b6bab05515.gif' style='vertical-align: middle; border: none; ' class='tex' alt="j" /></span><script type='math/tex'>j</script>的圈的概率为<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_f1efbba87e0ef8aba62fd9bfbd5605b8.gif' style='vertical-align: middle; border: none; ' class='tex' alt="1/j" /></span><script type='math/tex'>1/j</script>）。</p>
<p>所以上面策略的成功概率为 <span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_162fba3f0bfe98f043fa4148428acf72.gif' style='vertical-align: middle; border: none; ' class='tex' alt="1-\ln 2 \sim 0.3" /></span><script type='math/tex'>1-\ln 2 \sim 0.3</script>。</p>
<p>类似于以前提到的<a href="http://zhiqiang.org/blog/science/game-one-hat.html">帽子游戏一</a>以及<a href="http://zhiqiang.org/blog/science/game-two-hats.html">帽子游戏二</a>，我们要最大化一个团体都成功的概率，但是每个单个个体成功的概率又是一定的，那么我们只需要设计策略时，让大家要么几乎同时成功，要么几乎同时失败。就像上面的策略里，如果有人失败，意味着排列中有一个长度很大（大于n/2）的圈，这个圈上所有人同时也会失败，通过把失败的实例重合到一起，这样就提高了总体成功的概率。</p>
<p>上面这个问题不是孤立的，它可以应用在static data structure problems的下界证明上。对于后面这个问题，在最近是一个很热门的研究领域，但在这里写了也没人看，知道这个问题的也不需要看，所以我只提一下我们还可以做什么，下面是一个open problem，可以直接得出一个data structure问题的一个下界，是一个可以写学术论文的题目：</p>
<blockquote><p>Open problem：假设现在有<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_21e2c0c0472b331622877accbe29b91b.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="2n" /></span><script type='math/tex'>2n</script>个箱子，<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_7b8b965ad4bca0e41ab51de7b31363a1.gif' style='vertical-align: middle; border: none; padding-bottom:2px;' class='tex' alt="n" /></span><script type='math/tex'>n</script>个学生，学生们的名字纸条被放入随机选中的<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_7b8b965ad4bca0e41ab51de7b31363a1.gif' style='vertical-align: middle; border: none; padding-bottom:2px;' class='tex' alt="n" /></span><script type='math/tex'>n</script>个箱子里。现在每个学生可以检查不超过一半也就是<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_7b8b965ad4bca0e41ab51de7b31363a1.gif' style='vertical-align: middle; border: none; padding-bottom:2px;' class='tex' alt="n" /></span><script type='math/tex'>n</script>个箱子，以找到含有自己名字的箱子。问这时候学生可以采取什么样的策略最大化所有学生都成功找到含有自己名字的箱子的概率。</p>
</blockquote>
<p>期望结果：证明指数级小的下界或者找到常数概率的策略。</p>
<p>有兴趣的可以参考<a href="http://cs.au.dk/~bromille/Papers/succinct.pdf" target="_blank">The cell probe complexity of succinct data structures</a>.</p>
<div><h4>相关文章</h4><ul><li class='currentpost'><a href="http://zhiqiang.org/blog/science/computer-science/boxes-problem-on-static-data-structure-problems.html">摸箱子问题以及应用</a></li><li ><a href="http://zhiqiang.org/blog/science/the-perfect-number-of-shuffling-7-times.html">&quot;完美&quot;的洗牌次数 - 7次</a></li><li ><a href="http://zhiqiang.org/blog/science/theoritical-analysis-marfia-game.html">杀人的理论分析</a></li><li ><a href="http://zhiqiang.org/blog/science/computer-science/tcs-byzantine-failure-the-byzantine-generals-problem.html">TCS: 拜占庭将军问题 (The Byzantine Generals Problem)</a></li><li ><a href="http://zhiqiang.org/blog/science/computer-science/tcs-classroom-notes-database-storage-problems.html">TCS课堂笔记：数据库存储问题</a></li><li ><a href="http://zhiqiang.org/blog/science/how-n-people-divide-a-cake-fairly.html">征集3个人分蛋糕的方法</a></li><li ><a href="http://zhiqiang.org/blog/memopad/fan-tan-game-empty-when-most-difficult-relationship.html">空当接龙中最难的关</a></li><li ><a href="http://zhiqiang.org/blog/science/computer-science/most-windows-game-are-np-complete.html">Windows游戏中的NP完全问题</a></li><li ><a href="http://zhiqiang.org/blog/science/two-taking-coins-game.html">取硬币游戏</a></li><li ><a href="http://zhiqiang.org/blog/memopad/cat-game.html">堵猫游戏</a></li></ul></div>    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2008. | <a href="http://zhiqiang.org/blog/science/computer-science/boxes-problem-on-static-data-structure-problems.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/science/computer-science/boxes-problem-on-static-data-structure-problems.html#comments">15 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/science/computer-science/boxes-problem-on-static-data-structure-problems.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

