﻿<?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>P.Linux Laboratory &#187; 娱乐活动</title>
	<atom:link href="http://www.penglixun.com/category/entertainment/feed" rel="self" type="application/rss+xml" />
	<link>http://www.penglixun.com</link>
	<description>MySQL DBA &#38; Linux SA</description>
	<lastBuildDate>Sun, 22 Jan 2012 16:34:39 +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>一个巨帅无比的PPT</title>
		<link>http://www.penglixun.com/entertainment/very_wonderful_ppt.html</link>
		<comments>http://www.penglixun.com/entertainment/very_wonderful_ppt.html#comments</comments>
		<pubDate>Wed, 14 Oct 2009 04:35:30 +0000</pubDate>
		<dc:creator>P.Linux</dc:creator>
				<category><![CDATA[娱乐活动]]></category>
		<category><![CDATA[PPT]]></category>

		<guid isPermaLink="false">http://www.penglixun.com/PLX/Blog/?p=410</guid>
		<description><![CDATA[本文内容遵从CC版权协议, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明网址: http://www.penglixun.com/entertainment/very_wonderful_ppt.html 传说中是一个专门做PPT的公司做的，... ]]></description>
			<content:encoded><![CDATA[<p><span style="color: #888888;">本文内容遵从<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">CC版权协议</a>, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明</br>网址: http://www.penglixun.com/entertainment/very_wonderful_ppt.html </p>
<p></span>传说中是一个专门做PPT的公司做的，乍一看还以为是Flash。</p>
Note: There is a file embedded within this post, please visit this post to download the file.<h2  class="related_post_title">随机显示文章</h2><ul class="related_post"><li>2010年07月25日 -- <a href="http://www.penglixun.com/tech/database/use_tmp_table_clear_duplicate_data.html" title="利用临时表清除数据库重复数据">利用临时表清除数据库重复数据</a> (4)</li><li>2009年06月2日 -- <a href="http://www.penglixun.com/tech/system/install_gnome_gui_in_freebsd.html" title="在FreeBSD下安装Gnome图形界面">在FreeBSD下安装Gnome图形界面</a> (0)</li><li>2010年03月10日 -- <a href="http://www.penglixun.com/tech/program/mysql_bat_sql_script_mybatsql.html" title="MySQL多服务器批量执行SQL脚本">MySQL多服务器批量执行SQL脚本</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.penglixun.com/entertainment/very_wonderful_ppt.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>追MM各种算法</title>
		<link>http://www.penglixun.com/entertainment/chasing_girls_algorithm.html</link>
		<comments>http://www.penglixun.com/entertainment/chasing_girls_algorithm.html#comments</comments>
		<pubDate>Thu, 20 Aug 2009 08:24:05 +0000</pubDate>
		<dc:creator>P.Linux</dc:creator>
				<category><![CDATA[娱乐活动]]></category>
		<category><![CDATA[MM]]></category>
		<category><![CDATA[NP]]></category>
		<category><![CDATA[算法]]></category>

		<guid isPermaLink="false">http://www.penglixun.com/PLX/Blog/?p=307</guid>
		<description><![CDATA[本文内容遵从CC版权协议, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明网址: http://www.penglixun.com/entertainment/chasing_girls_algorithm.html 来自CC大牛的Q-Zone 动态规划 你追... ]]></description>
			<content:encoded><![CDATA[<p><span style="color: #888888;">本文内容遵从<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">CC版权协议</a>, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明</br>网址: http://www.penglixun.com/entertainment/chasing_girls_algorithm.html </p>
<p></span>来自CC大牛的Q-Zone</p>
<p><span style="color: #3366ff;"><strong>动态规划</strong><br />
</span>你追一个MM的时候，需要对该MM身边的各闺中密友都好，这样你追MM这个问题就分解为对其MM朋友的问题，只有把这些问题都解决了，最终你才能追到MM。</p>
<p>该方法适用于聪明的MM，懂得“看一个人，不是看他如何对你，而是看他如何对他人。”的道理，并且对付这样的MM总能得到最优解。</p>
<p>该方法的缺点是开销较大，因为每个子问题都要好好对待。。。。<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong><span style="color: #3366ff;"><span id="more-307"></span>贪心法<br />
</span></strong>你追一个MM的时候，从相识到相知，每次都采用最aggressive的方式，进攻进攻再进攻！从不采用迂回战术或是欲擒故纵之法！目标是以最快的速度确立两人关系。<br />
该法优点是代价小，速度快，但缺点是不是每次都能得到最优解。。。。。<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong><span style="color: #3366ff;">回溯法</span></strong><br />
追一个MM，但也许你还是情窦初开的新手，不知道如何才能讨得MM的欢心，于是你只好一条路一条路的试，MM不开心了，你就回溯回去换另一种方式。当然其 间你也许会从某些途径得到一些经验，能够判断哪些路径不好，会剪枝（这就是分支估界了）。你也可以随机选择一些路径来实施，说不定能立杆见影（这就是回溯 的优化了）但总的来说，你都需要一场持久战。。。。<br />
该算法一般也能得到最优解，因为大多数MM会感动滴！！但其缺点是开销大！除非你是非要谈一场恋爱不可，否则不推荐使用。特别是你可能还有许多其他的事情要做，比如学习，比如事业。。。。<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><span style="color: #3366ff;"><strong>NP完全问题</strong></span><br />
呵呵，那你为什么那么贱，非要去追呢？记住：“天涯何处无芳草！” 不过如果你“非如此不可”的话，建议升级你的硬件，好好学习，好好工作，加强实力，人到中年的时候也许你能解开NP难。。。。</p>
<p>补充NP：在你追了若干美女都失败告终后，你发现有一批美女追起来是一样困难的，如果你能追到其中任何一个就能追到其他所有的美女，你把这样的女人叫作NP-Complete。<br />
P=NP：这是一个美好的猜想，追美女和恐龙的难度其实一样。<br />
APX与Random：NP的美女难追，你无法完全占有她。你只好随机的去靠近她，装作若无其事；或者用一种策略，追到她的一个approximation ratio，例如50%。<br />
APX-hard：这样的女人，连一个固定的百分比都不给你，还是另谋高就吧。<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><span style="color: #3366ff;"><strong>深度优先和广度优先</strong></span>：<br />
深度优先就是追一个mm追到底，直到失败然后换个mm继续追……<br />
广度优先就是同时追多个mm，一起发展……<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><span style="color: #3366ff;"><strong>二叉树的前序、中序和后序遍历：</strong></span><br />
前序就是直接搞定MM，然后搞定她爸妈（左）和你自己爸妈（右）<br />
中序就是先搞定未来岳父岳父，然后搞定她，最后告诉你爸妈<br />
后续就是，让未来的岳父岳母和自己爸妈都觉得你们合适之后，才对MM下手，这个时候就没有障碍了啊<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<span style="color: #3366ff;"><strong>网络流</strong></span><br />
追MM的时候总避免不了送礼物，但是你老是直接送礼物就会给MM造成很大的压力，于是你就想到了通过朋友来转送的方法。你希望送给MM尽可能多的礼 物，所以就是需要找到一中配送方案，就是最大流了。然而你请别人帮忙并不是不要开销的，你让A同学拿去给B同学可能需要一些花费，自然你不是一个大款，想 最小化这个花费，那么就是最小费用最大流了……</p>
<p>为啥我总是遇到NP问题呢~对于NP类问题的唯一解法就是DFS/BFS，悲剧~</p><h2  class="related_post_title">类似的文章</h2><ul class="related_post"><li>2010年07月5日 -- <a href="http://www.penglixun.com/tech/program/algorithm_power.html" title="李开复——算法的力量">李开复——算法的力量</a> (1)</li><li>2010年06月22日 -- <a href="http://www.penglixun.com/tech/database/database_algorithm_and_data_structure_cache_buffer_lock.html" title="数据库算法与数据结构——Cache&#038;Buffer&#038;Lock">数据库算法与数据结构——Cache&#038;Buffer&#038;Lock</a> (1)</li><li>2010年01月20日 -- <a href="http://www.penglixun.com/tech/program/dichotomy_topk_cpp.html" title="二分法实现TopK算法的方法">二分法实现TopK算法的方法</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.penglixun.com/entertainment/chasing_girls_algorithm.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>08~09年度最佳对联</title>
		<link>http://www.penglixun.com/entertainment/08_best_couplet.html</link>
		<comments>http://www.penglixun.com/entertainment/08_best_couplet.html#comments</comments>
		<pubDate>Mon, 09 Mar 2009 05:35:26 +0000</pubDate>
		<dc:creator>P.Linux</dc:creator>
				<category><![CDATA[娱乐活动]]></category>
		<category><![CDATA[大裤衩]]></category>
		<category><![CDATA[对联]]></category>
		<category><![CDATA[小沈阳]]></category>

		<guid isPermaLink="false">http://www.penglixun.com/PLX/blog/?p=84</guid>
		<description><![CDATA[本文内容遵从CC版权协议, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明网址: http://www.penglixun.com/entertainment/08_best_couplet.html 央视不差钱 上联：除夕夜捧红小沈阳 ... ]]></description>
			<content:encoded><![CDATA[<p><span style="color: #888888;">本文内容遵从<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">CC版权协议</a>, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明</br>网址: http://www.penglixun.com/entertainment/08_best_couplet.html </p>
<p></span><strong>央视不差钱</strong></p>
<p>上联：除夕夜捧红小沈阳<br />
下联：元宵夜火烧大裤衩<br />
横批：央视不差钱！！！</p>
<p>其实过年和放烟花是一样一样的，一亮一灭，一个烟花就没有啦，吭！一亮不灭，一座大楼就没有啦！吭！</p><h2  class="related_post_title">随机显示文章</h2><ul class="related_post"><li>2011年01月27日 -- <a href="http://www.penglixun.com/tech/database/plug-in-for-performance-and-scalability.html" title="[译]InnoDB官方博客：InnoDB Plugin的性能和可伸缩性">[译]InnoDB官方博客：InnoDB Plugin的性能和可伸缩性</a> (0)</li><li>2010年02月28日 -- <a href="http://www.penglixun.com/life/%e6%af%8f%e5%91%a8%e6%8e%a8%e7%89%b9-2010-02-28.html" title="每周推特 2010-02-28">每周推特 2010-02-28</a> (0)</li><li>2009年12月8日 -- <a href="http://www.penglixun.com/tech/system/fix_nginx_502_bad_gateway.html" title="Nginx的502错误">Nginx的502错误</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.penglixun.com/entertainment/08_best_couplet.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一个很好玩的钢琴Flash游戏</title>
		<link>http://www.penglixun.com/entertainment/good_piano_game.html</link>
		<comments>http://www.penglixun.com/entertainment/good_piano_game.html#comments</comments>
		<pubDate>Thu, 05 Mar 2009 11:01:43 +0000</pubDate>
		<dc:creator>P.Linux</dc:creator>
				<category><![CDATA[娱乐活动]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[游戏]]></category>
		<category><![CDATA[钢琴]]></category>
		<category><![CDATA[音乐]]></category>

		<guid isPermaLink="false">http://www.penglixun.com/PLX/blog/?p=51</guid>
		<description><![CDATA[本文内容遵从CC版权协议, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明网址: http://www.penglixun.com/entertainment/good_piano_game.html 即使不懂音乐照着谱子也能弹出很好听... ]]></description>
			<content:encoded><![CDATA[<p><span style="color: #888888;">本文内容遵从<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">CC版权协议</a>, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明</br>网址: http://www.penglixun.com/entertainment/good_piano_game.html </p>
<p></span>即使不懂音乐照着谱子也能弹出很好听的音乐！</p>
<p>Note: There is a file embedded within this post, please visit this post to download the file.<br />
<span id="more-51"></span></p>
<p><object width="550" height="400" data="http://files.penglixun.com/piano.swf" type="application/x-shockwave-flash"><param name="src" value="http://files.penglixun.com/piano.swf" /></object></p><h2  class="related_post_title">随机显示文章</h2><ul class="related_post"><li>2009年10月26日 -- <a href="http://www.penglixun.com/tech/database/mysql_show_index_cardinality.html" title="MySQL里执行SHOW INDEX结果中Cardinality的含义">MySQL里执行SHOW INDEX结果中Cardinality的含义</a> (1)</li><li>2010年02月28日 -- <a href="http://www.penglixun.com/life/%e6%af%8f%e5%91%a8%e6%8e%a8%e7%89%b9-2010-02-28.html" title="每周推特 2010-02-28">每周推特 2010-02-28</a> (0)</li><li>2009年10月14日 -- <a href="http://www.penglixun.com/tech/embedded/tran_qtopia_in_s3c2440.html" title="Qtopia在S3C2440开发板上的移植">Qtopia在S3C2440开发板上的移植</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.penglixun.com/entertainment/good_piano_game.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

