<?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%b8%b8%e6%88%8f/feed" rel="self" type="application/rss+xml" />
	<link>http://zhiqiang.org/blog</link>
	<description>理工科背景的证券从业人员</description>
	<lastBuildDate>Sun, 05 Feb 2012 03:59:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Kerrigan！</title>
		<link>http://zhiqiang.org/blog/entertainment/kerrigan-starcraft-ii.html</link>
		<comments>http://zhiqiang.org/blog/entertainment/kerrigan-starcraft-ii.html#comments</comments>
		<pubDate>Sun, 26 Jun 2011 08:39:08 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[休闲娱乐]]></category>
		<category><![CDATA[星际2]]></category>
		<category><![CDATA[游戏]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/?p=2317</guid>
		<description><![CDATA[博客 » 休闲娱乐 » 游戏 » 装上了星际II，玩了下剧情。剧情动画真多，难怪要7G多的安装文件。诸多人物里，还是最爱Kerrigan！ 1. 被虫族捕获前的Kerrigan 2. Kerrigan背叛后，Raynor手里还是保留了Kerrigan的照片 3. 星际II中被Raynor救出的Kerrigan 相关文章空当接龙中最难的关策略游戏：医生和病人（I）杀人的理论分析15 puzzleWindows游戏中的NP完全问题硬币游戏取硬币游戏摸箱子问题以及...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/entertainment">休闲娱乐</a> » <a href='http://zhiqiang.org/blog/tag/%e6%b8%b8%e6%88%8f'>游戏</a>  » </p><p>装上了星际II，玩了下剧情。剧情动画真多，难怪要7G多的安装文件。诸多人物里，还是最爱Kerrigan！</p>
<p>1. 被虫族捕获前的Kerrigan<br />
<img src="http://zhiqiang.org/blog/wp-content/uploads/images/starcraft-i.jpg" alt="Kerrigan" width="600px" /></p>
<p>2. Kerrigan背叛后，Raynor手里还是保留了Kerrigan的照片</p>
<p><img src="http://hiphotos.baidu.com/nuclearelf%B4%BF/pic/item/408b1dffb2c241dcb801a082.jpg" alt="Kerrigan" /></p>
<p>3. 星际II中被Raynor救出的Kerrigan</p>
<p><img src="http://zhiqiang.org/blog/wp-content/uploads/images/starcraft-iii.jpg" alt="Kerrigan" width="600px" /></p>
<div><h4>相关文章</h4><ul><li><a href="http://zhiqiang.org/blog/entertainment/fan-tan-game-empty-when-most-difficult-relationship.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/theoritical-analysis-marfia-game.html">杀人的理论分析</a></li><li><a href="http://zhiqiang.org/blog/science/15-puzzle.html">15 puzzle</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/rotate-coin-games.html">硬币游戏</a></li><li><a href="http://zhiqiang.org/blog/science/two-taking-coins-game.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/entertainment/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>, 2011. | <a href="http://zhiqiang.org/blog/entertainment/kerrigan-starcraft-ii.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/entertainment/kerrigan-starcraft-ii.html#comments">5 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/entertainment/kerrigan-starcraft-ii.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>堵猫游戏</title>
		<link>http://zhiqiang.org/blog/entertainment/cat-game.html</link>
		<comments>http://zhiqiang.org/blog/entertainment/cat-game.html#comments</comments>
		<pubDate>Fri, 15 May 2009 04:26:37 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[休闲娱乐]]></category>
		<category><![CDATA[flash游戏]]></category>
		<category><![CDATA[游戏]]></category>

		<guid isPermaLink="false">http://yueweitang.org/blog/?p=928</guid>
		<description><![CDATA[博客 » 休闲娱乐 » 游戏 » 试试吧。 当在全平面棋盘上玩这个游戏的时候，我们总是可以把猫围在一个特定的区域之内，但是这个游戏提供的范围太小了，好像并不总能够把猫堵死。它类似下面这个经典智力题： 魔鬼在一无穷大棋盘上捕捉天使，设定魔鬼一次能设置1个陷阱（该陷阱可设在任一格子），而天使一次能走1个格子。问魔鬼能否捉住天使？若天使的法力提高到一次...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/entertainment">休闲娱乐</a> » <a href='http://zhiqiang.org/blog/tag/%e6%b8%b8%e6%88%8f'>游戏</a>  » </p><p>试试吧。</p>
<p><object width="454" height="384" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="/blog/wp-content/uploads/cat.swf" /><param name="wmode" value="transparent" /><embed width="454" height="384" type="application/x-shockwave-flash" src="/blog/wp-content/uploads/cat.swf" wmode="transparent" /></object></p>
<p>当在全平面棋盘上玩这个游戏的时候，我们总是可以把猫围在一个特定的区域之内，但是这个游戏提供的范围太小了，好像并不总能够把猫堵死。它类似下面这个经典智力题：</p>
<div class="postbody">
<blockquote><p>魔鬼在一无穷大棋盘上捕捉天使，设定魔鬼一次能设置1个陷阱（该陷阱可设在任一格子），而天使一次能走1个格子。问魔鬼能否捉住天使？若天使的法力提高到一次能走过N个格子呢？</p></blockquote>
</div>
<div><h4>相关文章</h4><ul><li><a href="http://zhiqiang.org/blog/entertainment/fan-tan-game-empty-when-most-difficult-relationship.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/theoritical-analysis-marfia-game.html">杀人的理论分析</a></li><li><a href="http://zhiqiang.org/blog/science/15-puzzle.html">15 puzzle</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/rotate-coin-games.html">硬币游戏</a></li><li><a href="http://zhiqiang.org/blog/science/two-taking-coins-game.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/entertainment/kerrigan-starcraft-ii.html">Kerrigan！</a></li></ul></div>    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2009. | <a href="http://zhiqiang.org/blog/entertainment/cat-game.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/entertainment/cat-game.html#comments">28 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/entertainment/cat-game.html/feed</wfw:commentRss>
		<slash:comments>28</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'>概率</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><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/tcs-classroom-notes-the-best-dating-strategy.html">最佳约会策略</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/science/strategy-games-doctors-and-patients-i.html">策略游戏：医生和病人（I）</a></li><li><a href="http://zhiqiang.org/blog/science/rotate-coin-games.html">硬币游戏</a></li><li><a href="http://zhiqiang.org/blog/science/two-taking-coins-game.html">取硬币游戏</a></li><li><a href="http://zhiqiang.org/blog/entertainment/kerrigan-starcraft-ii.html">Kerrigan！</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>
		<item>
		<title>取硬币游戏</title>
		<link>http://zhiqiang.org/blog/science/two-taking-coins-game.html</link>
		<comments>http://zhiqiang.org/blog/science/two-taking-coins-game.html#comments</comments>
		<pubDate>Sat, 30 Aug 2008 01:01:11 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[自然科学]]></category>
		<category><![CDATA[游戏]]></category>
		<category><![CDATA[硬币]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/posts/two-taking-coins-game.html</guid>
		<description><![CDATA[博客 » 自然科学 » 游戏 » 枚硬币排成一排，两人轮流取，每人每次可取其中一枚或者相邻的两枚。 取到最后一枚硬币的赢得游戏。分析游戏策略。 取到最后一枚硬币的算输。分析游戏策略。 第二种情况的特殊情形()是今天软件实验班的招生考试试题。 此问题的留言可能对最终解决此问题特别是第二种情况有帮助。 相关文章空当接龙中最难的关策略游戏：医生和病人（I）...]]></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%b8%b8%e6%88%8f'>游戏</a>  » </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>枚硬币排成一排，两人轮流取，每人每次可取其中一枚或者<strong>相邻的</strong>两枚。</p>
<ol>
<li>取到最后一枚硬币的赢得游戏。分析游戏策略。  </li>
<li>取到最后一枚硬币的算输。分析游戏策略。 </li>
</ol>
<p>第二种情况的特殊情形(<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_662f2f63485160658057cdacac083dc8.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="n=8" /></span><script type='math/tex'>n=8</script>)是<strong>今天</strong>软件实验班的<a href="http://zhiqiang.org/blog/scribble/chinese-math-students-believe-destinity-is-in-numbers.html">招生</a>考试试题。</p>
<p>此问题的留言可能对最终解决此问题特别是第二种情况有帮助。</p>
<div><h4>相关文章</h4><ul><li><a href="http://zhiqiang.org/blog/entertainment/fan-tan-game-empty-when-most-difficult-relationship.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/theoritical-analysis-marfia-game.html">杀人的理论分析</a></li><li><a href="http://zhiqiang.org/blog/science/15-puzzle.html">15 puzzle</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/rotate-coin-games.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/entertainment/cat-game.html">堵猫游戏</a></li><li><a href="http://zhiqiang.org/blog/entertainment/kerrigan-starcraft-ii.html">Kerrigan！</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/two-taking-coins-game.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/science/two-taking-coins-game.html#comments">35 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/science/two-taking-coins-game.html/feed</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>硬币游戏</title>
		<link>http://zhiqiang.org/blog/science/rotate-coin-games.html</link>
		<comments>http://zhiqiang.org/blog/science/rotate-coin-games.html#comments</comments>
		<pubDate>Sun, 27 Jul 2008 11:51:24 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[自然科学]]></category>
		<category><![CDATA[头脑风暴]]></category>
		<category><![CDATA[游戏]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/posts/rotate-coin-games.html</guid>
		<description><![CDATA[博客 » 自然科学 » 头脑风暴 » 系列：头脑风暴 查看该系列所有文章 Alice和Bob两人玩一种硬币游戏。游戏在一个的棋盘上进行，棋盘上每个格子上都有一枚硬币。在每一回合，Alice可以决定选择翻转某两枚或者一枚硬币，接着Bob可以选择将棋盘旋转90，180或者270度，也可以什么都不做。 游戏轮流进行直到棋盘上所有硬币都正面朝上或者反面朝上，Alice获得胜利。 如果Alice在游...]]></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'>头脑风暴</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>Alice和Bob两人玩一种硬币游戏。游戏在一个<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_b6afe64110f5c78ec57c6cc87f09efb4.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="2\times2" /></span><script type='math/tex'>2\times2</script>的棋盘上进行，棋盘上每个格子上都有一枚硬币。在每一回合，Alice可以决定选择翻转某两枚或者一枚硬币，接着Bob可以选择将棋盘旋转90，180或者270度，也可以什么都不做。  </p>
<p>游戏轮流进行直到棋盘上所有硬币都正面朝上或者反面朝上，Alice获得胜利。  </p>
<p>如果Alice在游戏过程中无法看到棋盘上的银币，也不知道游戏刚开始的状态，甚至不知道Bob每回合是否旋转了棋盘，那么Alice有策略能够获得胜利么？他的最优策略是什么？  </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_7b8b965ad4bca0e41ab51de7b31363a1.gif' style='vertical-align: middle; border: none; padding-bottom:2px;' class='tex' alt="n" /></span><script type='math/tex'>n</script>边形棋盘的顶点上。每回合Alice可以翻转任何一些银币，Bob则可任意以<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_8d7849cc8b48fa064e62426a29994817.gif' style='vertical-align: middle; border: none; ' class='tex' alt="360/n" /></span><script type='math/tex'>360/n</script>的倍数角度)之一旋转棋盘。游戏一直到所有硬币正面朝上或者反面朝上，Alice获得胜利。  </p>
<p>这时候Alice还能取胜吗？  </p>
<p><a href="http://zhiqiang.org/blog/science/rotate-coin-game-solution.html">解答在此</a>，但强烈推荐独立思考此题，特别是<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_aa415f33717e0cf5151a7712cb4f2f59.gif' style='vertical-align: middle; border: none; padding-bottom:1px;' class='tex' alt="n=4" /></span><script type='math/tex'>n=4</script>的情况。 </p>
<p><font color="#808080">via </font><a href="http://valis.cs.uiuc.edu/blog/?p=1808" target="_blank"><font color="#808080">Sariel’s blog</font></a></p>
<div><h4>相关文章</h4><ul><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/entertainment/fan-tan-game-empty-when-most-difficult-relationship.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/15-puzzle.html">15 puzzle</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/science/computer-science/boxes-problem-on-static-data-structure-problems.html">摸箱子问题以及应用</a></li><li><a href="http://zhiqiang.org/blog/entertainment/cat-game.html">堵猫游戏</a></li><li><a href="http://zhiqiang.org/blog/entertainment/kerrigan-starcraft-ii.html">Kerrigan！</a></li><li><a href="http://zhiqiang.org/blog/science/game-two-hats.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/rotate-coin-games.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/science/rotate-coin-games.html#comments">25 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/science/rotate-coin-games.html/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>

