<?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>MadFroG</title>
	<atom:link href="http://viva-villa.org/feed" rel="self" type="application/rss+xml" />
	<link>http://viva-villa.org</link>
	<description>Because Freedom Is Worth Fighting For</description>
	<lastBuildDate>Mon, 30 Aug 2010 05:20:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ACM组合数学题目列表</title>
		<link>http://viva-villa.org/2010/08/acm%e7%bb%84%e5%90%88%e6%95%b0%e5%ad%a6%e9%a2%98%e7%9b%ae%e5%88%97%e8%a1%a8.html</link>
		<comments>http://viva-villa.org/2010/08/acm%e7%bb%84%e5%90%88%e6%95%b0%e5%ad%a6%e9%a2%98%e7%9b%ae%e5%88%97%e8%a1%a8.html#comments</comments>
		<pubDate>Mon, 30 Aug 2010 05:20:51 +0000</pubDate>
		<dc:creator>wxl.name</dc:creator>
				<category><![CDATA[程序人生]]></category>
		<category><![CDATA[polya]]></category>
		<category><![CDATA[容斥]]></category>
		<category><![CDATA[整数划分]]></category>
		<category><![CDATA[欧拉]]></category>
		<category><![CDATA[组合数学]]></category>
		<category><![CDATA[置换群]]></category>

		<guid isPermaLink="false">http://viva-villa.org/2010/08/acm%e7%bb%84%e5%90%88%e6%95%b0%e5%ad%a6%e9%a2%98%e7%9b%ae%e5%88%97%e8%a1%a8.html</guid>
		<description><![CDATA[<p>题目推荐或提问请发至此邮箱：vivavillaorg[at]gmail.com。 </p>

<p></p>
<h3>基本组合计数</h3>
<p>HDU </p>
<p>1028 Ignatius and the Princess III 整数划分 </p>
<p>HIT </p>
<p>1402 整数划分问题 多种整数划分 </p>
<p>解题报告：<a href="http://hi.baidu.com/zab08/blog/item/41513e2e47819c594ec22627.html">点击进入查看</a> </p>

<p></p>
<h3>置换群</h3>
<p>PKU </p>
<p>2369[......]</p><p class='read-more'><a href='http://viva-villa.org/2010/08/acm%e7%bb%84%e5%90%88%e6%95%b0%e5%ad%a6%e9%a2%98%e7%9b%ae%e5%88%97%e8%a1%a8.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>题目推荐或提问请发至此邮箱：vivavillaorg[at]gmail.com。 </p>
<hr size="2"/>
<p></p>
<h3>基本组合计数</h3>
<p>HDU </p>
<p><span style="COLOR: #ff0000">1028 Ignatius and the Princess III 整数划分</span> </p>
<p>HIT </p>
<p><span style="COLOR: #ff0000">1402 整数划分问题 多种整数划分</span> </p>
<p>解题报告：<a href="http://hi.baidu.com/zab08/blog/item/41513e2e47819c594ec22627.html">点击进入查看</a> </p>
<hr size="2"/>
<p></p>
<h3>置换群</h3>
<p>PKU </p>
<p><span style="COLOR: #ff0000">2369 求置换的周期</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">1026 求置换的循环节</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">1721 置换的幂运算</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">3270 置换的循环节，黑书题</span> <br style="COLOR: rgb(255,0,0)"/> <br />1879 模拟+置换的循环节 </p>
<p>HDU </p>
<p><span style="COLOR: #ff0000">1537 求三阶魔方的置换</span> </p>
<p>置换群相关资料：<a href="http://www.uushare.com/user/bill2008/files/3445245">点击进入下载</a> </p>
<hr size="2"/>
<p></p>
<h3>Polya定理</h3>
<p>HDU </p>
<p><span style="COLOR: #ff0000">1812 Count the Tetris polya定理</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">1817 Necklace of Beads polya定理</span> <br style="COLOR: rgb(255,0,0)"/> <br />2481 Toy </p>
<p>HIT </p>
<p><span style="COLOR: #ff0000">2084 The Colored Cubes</span> <br style="COLOR: rgb(255,0,0)"/></p>
<p><span style="COLOR: #ff0000">2647 Megaminx</span> </p>
<p>PKU </p>
<p><span style="COLOR: #ff0000">1286 Necklace of Beads</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">2409 Let it Bead</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">2154 Color</span> <br style="COLOR: rgb(255,0,0)"/> <br />2888 Magic Bracelet </p>
<p>TJU </p>
<p><span style="COLOR: #ff0000">2795 The Queen&#8217;s New Necklaces</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">1341 Let it Bead</span> <br style="COLOR: rgb(255,0,0)"/> <br />3352 Birthday Toy </p>
<p>UVa </p>
<p>10601 Cubes </p>
<p><span style="COLOR: #ff0000">11255 Necklace</span> <br style="COLOR: rgb(255,0,0)"/> <br />NUAA </p>
<p>1110 </p>
<p>SGU </p>
<p>282 Isomorphism </p>
<p>SPOJ </p>
<p>422 Transposing is Even More Fun </p>
<p>Polya定理总结：<a href="http://www.cppblog.com/sdfond/archive/2010/02/06/107403.aspx">点击进入查看</a> </p>
<hr size="2"/>
<p></p>
<h3>容斥原理</h3>
<p>HDU </p>
<p><span style="COLOR: #ff0000">2204 Eddy&#8217;s爱好</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">3208 Integer&#8217;s Power</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">1796 How many integers can you find</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">2841 Visible Trees</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">1695 GCD</span> </p>
<p>ZJU </p>
<p><span style="COLOR: #ff0000">2836 Number Puzzle</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">3233 Lucky Number</span> </p>
<p>URAL </p>
<p><span style="COLOR: #ff0000">1036 Lucky tickets</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">1091 Tmutarakan exams</span> <br style="COLOR: rgb(255,0,0)"/> <br style="COLOR: rgb(255,0,0)"/> <span style="COLOR: #ff0000">1114 Boxes</span> </p>
<p>PKU </p>
<p><span style="COLOR: #ff0000">1091 跳蚤</span> </p>
<p>SGU </p>
<p><span style="COLOR: #ff0000">476 Coach&#8217;s Trouble</span> </p>
<p>HUST </p>
<p>1214 Cubic-free numbers II </p>
<p></p>
<hr size="2"/>
<p>更新情况： </p>
<p>2010-8-30 更新 </p>
<p xmlns="" class="zoundry_raven_tags">  <!-- Tag links generated by Zoundry Raven. Do not manually edit. http://www.zoundryraven.com -->  <span class="ztags"><span class="ztagspace">Technorati</span> : <a href="http://www.technorati.com/tag/polya" class="ztag" rel="tag">polya</a>, <a href="http://www.technorati.com/tag/%E5%AE%B9%E6%96%A5" class="ztag" rel="tag">容斥</a>, <a href="http://www.technorati.com/tag/%E6%95%B4%E6%95%B0%E5%88%92%E5%88%86" class="ztag" rel="tag">整数划分</a>, <a href="http://www.technorati.com/tag/%E6%AC%A7%E6%8B%89" class="ztag" rel="tag">欧拉</a>, <a href="http://www.technorati.com/tag/%E7%BB%84%E5%90%88%E6%95%B0%E5%AD%A6" class="ztag" rel="tag">组合数学</a>, <a href="http://www.technorati.com/tag/%E7%BD%AE%E6%8D%A2%E7%BE%A4" class="ztag" rel="tag">置换群</a></span>  <br /> <span class="ztags"><span class="ztagspace">Del.icio.us</span> : <a href="http://del.icio.us/tag/polya" class="ztag" rel="tag">polya</a>, <a href="http://del.icio.us/tag/%E5%AE%B9%E6%96%A5" class="ztag" rel="tag">容斥</a>, <a href="http://del.icio.us/tag/%E6%95%B4%E6%95%B0%E5%88%92%E5%88%86" class="ztag" rel="tag">整数划分</a>, <a href="http://del.icio.us/tag/%E6%AC%A7%E6%8B%89" class="ztag" rel="tag">欧拉</a>, <a href="http://del.icio.us/tag/%E7%BB%84%E5%90%88%E6%95%B0%E5%AD%A6" class="ztag" rel="tag">组合数学</a>, <a href="http://del.icio.us/tag/%E7%BD%AE%E6%8D%A2%E7%BE%A4" class="ztag" rel="tag">置换群</a></span>  <br /> <span class="ztags"><span class="ztagspace">Zooomr</span> : <a href="http://www.zooomr.com/search/photos/?q=polya" class="ztag" rel="tag">polya</a>, <a href="http://www.zooomr.com/search/photos/?q=%E5%AE%B9%E6%96%A5" class="ztag" rel="tag">容斥</a>, <a href="http://www.zooomr.com/search/photos/?q=%E6%95%B4%E6%95%B0%E5%88%92%E5%88%86" class="ztag" rel="tag">整数划分</a>, <a href="http://www.zooomr.com/search/photos/?q=%E6%AC%A7%E6%8B%89" class="ztag" rel="tag">欧拉</a>, <a href="http://www.zooomr.com/search/photos/?q=%E7%BB%84%E5%90%88%E6%95%B0%E5%AD%A6" class="ztag" rel="tag">组合数学</a>, <a href="http://www.zooomr.com/search/photos/?q=%E7%BD%AE%E6%8D%A2%E7%BE%A4" class="ztag" rel="tag">置换群</a></span>  <br /> <span class="ztags"><span class="ztagspace">Flickr</span> : <a href="http://www.flickr.com/photos/tags/polya" class="ztag" rel="tag">polya</a>, <a href="http://www.flickr.com/photos/tags/%E5%AE%B9%E6%96%A5" class="ztag" rel="tag">容斥</a>, <a href="http://www.flickr.com/photos/tags/%E6%95%B4%E6%95%B0%E5%88%92%E5%88%86" class="ztag" rel="tag">整数划分</a>, <a href="http://www.flickr.com/photos/tags/%E6%AC%A7%E6%8B%89" class="ztag" rel="tag">欧拉</a>, <a href="http://www.flickr.com/photos/tags/%E7%BB%84%E5%90%88%E6%95%B0%E5%AD%A6" class="ztag" rel="tag">组合数学</a>, <a href="http://www.flickr.com/photos/tags/%E7%BD%AE%E6%8D%A2%E7%BE%A4" class="ztag" rel="tag">置换群</a></span> </p>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://viva-villa.org/wordpress/">MadFroG</a></p>
<p><strong>本文链接地址:</strong> <a href="http://viva-villa.org/2010/08/acm%e7%bb%84%e5%90%88%e6%95%b0%e5%ad%a6%e9%a2%98%e7%9b%ae%e5%88%97%e8%a1%a8.html">ACM组合数学题目列表</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://viva-villa.org/2010/08/acm%e7%bb%84%e5%90%88%e6%95%b0%e5%ad%a6%e9%a2%98%e7%9b%ae%e5%88%97%e8%a1%a8.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>小结及展望</title>
		<link>http://viva-villa.org/2010/08/yesterday-andtomorrow.html</link>
		<comments>http://viva-villa.org/2010/08/yesterday-andtomorrow.html#comments</comments>
		<pubDate>Wed, 11 Aug 2010 03:29:55 +0000</pubDate>
		<dc:creator>wxl.name</dc:creator>
				<category><![CDATA[心情随笔]]></category>
		<category><![CDATA[JY]]></category>
		<category><![CDATA[小结]]></category>

		<guid isPermaLink="false">http://viva-villa.org/?p=76</guid>
		<description><![CDATA[<h2>ACM：</h2>
<p>组合数学：<br />
置换与polya定理，基本计数问题，鸽巢原理，容斥定理，特殊的数，生成函数<br />
基本数论问题：<br />
同余，欧拉函数，中国剩余定理，勾股数组，佩尔方程，连分数，Baby-step,Giant-step。</p>
<h2>三十日计划：</h2>
<p>
8月3日说出这个计划到目前还剩22天。<br />
三十日计划是一个短期“变性”[......]</p><p class='read-more'><a href='http://viva-villa.org/2010/08/yesterday-andtomorrow.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<h2>ACM：</h2>
<p>组合数学：<br />
置换与polya定理，基本计数问题，鸽巢原理，容斥定理，特殊的数，生成函数<br />
基本数论问题：<br />
同余，欧拉函数，中国剩余定理，勾股数组，佩尔方程，连分数，Baby-step,Giant-step。</p>
<h2>三十日计划：</h2>
<p>
8月3日说出这个计划到目前还剩22天。<br />
三十日计划是一个短期“变性”计划，嗯，别想歪了，改变性格。<br />
原因是本人“有贼心没贼胆”，“闷声发大财”，“害羞”，等等。</p>
<p>总结这几天，有力执行这个计划的保证是：</p>
<div style="margin-left: 40px;">1.充足的睡眠<br />
前一晚的激情想法，常常沦陷在第二天早上的疲劳当中。</p>
<p>2.愉悦的心情<br />
有什么能让你不开心的？</p>
<p>3.足够的自信<br />
想法，尝试，想法，尝试。尝试多遍以后，自信自然就来了。
</div>
<p>
三十日计划这两天的内容是：规律作息，去掉黑眼圈，腰板挺直，整理生活环境。</p>
<h2>OK计划：</h2>
<p>
1/100 is just unforgetable.<br />
有些人你会一见钟情，然后感情日趋变淡。<br />
另一些人，你越了解他/她，你越无法自拔。<br />
Some girl is unbelievable great.</p>
<h2>Pending中的拉萨之旅：</h2>
<p>
计划在8月底暑期集训告一段落的时候买辆赛车，当然是赛车自行车了，四个轮子的肯定没戏。<br />
然后没事往市区，郊区，周围城市骑骑，锻炼一下脚力。为明年暑假做准备。<br />
我要有倒三角的身体～～～</p>
<h2>初高中的聚会：</h2>
<p>
初中聚会办了n场了吧，也缺席了n场。<br />
豆腐们的<a href="http://photo.renren.com/getphoto.do?id=3306912222&amp;owner=240110978&amp;ref=minifeed&amp;sfet=702&amp;fin=0" id="i8o9" title="首场演出">首场演出</a>尽兴尽兴。。。我也没事撸撸吉他，yeah。。</p>
<h2>At last:</h2>
<p>while ( true )&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp; ******;<br />
}</p>
<p></p>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://viva-villa.org/wordpress/">MadFroG</a></p>
<p><strong>本文链接地址:</strong> <a href="http://viva-villa.org/2010/08/yesterday-andtomorrow.html">小结及展望</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://viva-villa.org/2010/08/yesterday-andtomorrow.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>你是否？</title>
		<link>http://viva-villa.org/2010/07/%e4%bd%a0%e6%98%af%e5%90%a6%ef%bc%9f.html</link>
		<comments>http://viva-villa.org/2010/07/%e4%bd%a0%e6%98%af%e5%90%a6%ef%bc%9f.html#comments</comments>
		<pubDate>Fri, 09 Jul 2010 15:21:49 +0000</pubDate>
		<dc:creator>wxl.name</dc:creator>
				<category><![CDATA[心情随笔]]></category>
		<category><![CDATA[理想]]></category>

		<guid isPermaLink="false">http://viva-villa.org/2010/07/%e4%bd%a0%e6%98%af%e5%90%a6%ef%bc%9f.html</guid>
		<description><![CDATA[<p>你是否还心存理想？ <br />你是否正在做真心想做的事情？ <br />你是否自认更懂得爱与被爱？ <br />你是否对冷冰冰的现实尚有一丝期待？ <br />你是否厌倦了周围毫无斗志的同学？ </p>
<p>不善言辞？ <br />屡感挫败？ <br />同学冷漠？ <br />老师废柴？ <br />社团无聊？ <br />生活乏味？ </p>
<p>一身反骨？ <br />喜欢音乐？ <br />关心时事？ <br />热爱自由？ <br />放荡不羁？ <br />无视权威？ <br />不媚[......]</p><p class='read-more'><a href='http://viva-villa.org/2010/07/%e4%bd%a0%e6%98%af%e5%90%a6%ef%bc%9f.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>你是否还心存理想？ <br />你是否正在做真心想做的事情？ <br />你是否自认更懂得爱与被爱？ <br />你是否对冷冰冰的现实尚有一丝期待？ <br />你是否厌倦了周围毫无斗志的同学？ </p>
<p>不善言辞？ <br />屡感挫败？ <br />同学冷漠？ <br />老师废柴？ <br />社团无聊？ <br />生活乏味？ </p>
<p>一身反骨？ <br />喜欢音乐？ <br />关心时事？ <br />热爱自由？ <br />放荡不羁？ <br />无视权威？ <br />不媚权贵？ </p>
<p>时常感到很累，很痛苦，很迷茫。。。 <br />有时你我口中的&#8221;人情淡漠&#8221;正是你我造成的。 <br />如果你也在一片喧哗中孤独地行走，请记住：You are not alone。 <br />真有什么感受就留下点吧，卸下一点自尊，让冷冰冰的世界多一点温情。 </p>
<p>也许，我们还能一起做点什么？</p>
<p xmlns="" class="zoundry_raven_tags">  <!-- Tag links generated by Zoundry Raven. Do not manually edit. http://www.zoundryraven.com -->  <span class="ztags"><span class="ztagspace">Technorati</span> : <a href="http://www.technorati.com/tag/%E7%90%86%E6%83%B3" class="ztag" rel="tag">理想</a></span>  <br /> <span class="ztags"><span class="ztagspace">Del.icio.us</span> : <a href="http://del.icio.us/tag/%E7%90%86%E6%83%B3" class="ztag" rel="tag">理想</a></span>  <br /> <span class="ztags"><span class="ztagspace">Zooomr</span> : <a href="http://www.zooomr.com/search/photos/?q=%E7%90%86%E6%83%B3" class="ztag" rel="tag">理想</a></span>  <br /> <span class="ztags"><span class="ztagspace">Flickr</span> : <a href="http://www.flickr.com/photos/tags/%E7%90%86%E6%83%B3" class="ztag" rel="tag">理想</a></span> </p>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://viva-villa.org/wordpress/">MadFroG</a></p>
<p><strong>本文链接地址:</strong> <a href="http://viva-villa.org/2010/07/%e4%bd%a0%e6%98%af%e5%90%a6%ef%bc%9f.html">你是否？</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://viva-villa.org/2010/07/%e4%bd%a0%e6%98%af%e5%90%a6%ef%bc%9f.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>最短路专辑小结</title>
		<link>http://viva-villa.org/2010/07/shortest-path-problem.html</link>
		<comments>http://viva-villa.org/2010/07/shortest-path-problem.html#comments</comments>
		<pubDate>Tue, 06 Jul 2010 03:41:39 +0000</pubDate>
		<dc:creator>wxl.name</dc:creator>
				<category><![CDATA[程序人生]]></category>
		<category><![CDATA[hdoj]]></category>
		<category><![CDATA[hdu]]></category>
		<category><![CDATA[最短路]]></category>
		<category><![CDATA[解题报告]]></category>
		<category><![CDATA[题库]]></category>

		<guid isPermaLink="false">http://viva-villa.org/?p=71</guid>
		<description><![CDATA[最短路专辑：
<p><a href="http://acm.hdu.edu.cn/diy/contest_show.php?cid=6427" id="n2vh" title="传送门">到最短路专辑的传送门</a></p>
<p><img src="http://dl.idropbox.co.cc/u/4466849/img/2010-07/head.jpg" alt="head" /></p>
<table id="iqun" border="1" bordercolor="#000000" cellpadding="1" cellspacing="2">

<tr class="tbheader" style="height: 10px;">
<td width="10%">&#160;ID</td>
<td width="56%">Title</td>
<td width="26%">Tips
</td>
</tr>
<tr>
<td>1001</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1001&#38;cid=6427&#38;hide=0">最短路</a></td>
<td> -</td>
</tr>
<tr>
<td>1002</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1002&#38;cid=6427&#38;hide=0">一个人的旅行</a></td>
<td> 点集之间的最短路</td>
</tr>
<tr>
<td>1003</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1003&#38;cid=6427&#38;hide=0">HDU Today</a></td>
<td> 字符串的映射
</td>
</tr>
<tr>
<td>1004</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1004&#38;cid=6427&#38;hide=0">畅通工程续</a></td>
<td> -</td>
</tr>
<tr>
<td>1005</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1005&#38;cid=6427&#38;hide=0">A Walk Through the F[......]</a></td></tr></table><p class='read-more'><a href='http://viva-villa.org/2010/07/shortest-path-problem.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<div>最短路专辑：</p>
<p><a href="http://acm.hdu.edu.cn/diy/contest_show.php?cid=6427" id="n2vh" title="传送门">到最短路专辑的传送门</a></p>
<p><img src="http://dl.idropbox.co.cc/u/4466849/img/2010-07/head.jpg" alt="head" /></p>
<table id="iqun" border="1" bordercolor="#000000" cellpadding="1" cellspacing="2">
<tbody>
<tr class="tbheader" style="height: 10px;">
<td width="10%">&nbsp;ID</td>
<td width="56%">Title</td>
<td width="26%">Tips
</td>
</tr>
<tr>
<td>1001</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1001&amp;cid=6427&amp;hide=0">最短路</a></td>
<td> -</td>
</tr>
<tr>
<td>1002</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1002&amp;cid=6427&amp;hide=0">一个人的旅行</a></td>
<td> 点集之间的最短路</td>
</tr>
<tr>
<td>1003</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1003&amp;cid=6427&amp;hide=0">HDU Today</a></td>
<td> 字符串的映射
</td>
</tr>
<tr>
<td>1004</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1004&amp;cid=6427&amp;hide=0">畅通工程续</a></td>
<td> -</td>
</tr>
<tr>
<td>1005</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1005&amp;cid=6427&amp;hide=0">A Walk Through the Forest</a></td>
<td> 类似求最短路径数的DP</td>
</tr>
<tr>
<td>1006</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1006&amp;cid=6427&amp;hide=0">Minimum Transport Cost</a></td>
<td> 顶点有权，字典序，路径输出</td>
</tr>
<tr>
<td>1007</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1007&amp;cid=6427&amp;hide=0">A strange lift</a></td>
<td> -</td>
</tr>
<tr>
<td>1008</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1008&amp;cid=6427&amp;hide=0">Arbitrage</a></td>
<td> 判环</td>
</tr>
<tr>
<td>1009</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1009&amp;cid=6427&amp;hide=0">Choose the best route</a></td>
<td> 点集之间的最短路</td>
</tr>
<tr>
<td>1010</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1010&amp;cid=6427&amp;hide=0">Einbahnstrasse</a></td>
<td>利用建反图减少计算</td>
</tr>
<tr>
<td>1011</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1011&amp;cid=6427&amp;hide=0">Trucking</a></td>
<td>边有限制</td>
</tr>
<tr>
<td>1012</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1012&amp;cid=6427&amp;hide=0">Here We Go(relians) Again</a></td>
<td> -</td>
</tr>
<tr>
<td>1013</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1013&amp;cid=6427&amp;hide=0">Bus System</a></td>
<td> -</td>
</tr>
<tr>
<td>1014</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1014&amp;cid=6427&amp;hide=0">Transit search</a></td>
<td>未AC
</td>
</tr>
<tr>
<td>1015</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1015&amp;cid=6427&amp;hide=0">find the safest road</a></td>
<td> 路径权为乘法，最长路</td>
</tr>
<tr>
<td>1016</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1016&amp;cid=6427&amp;hide=0">find the most comfortable road</a></td>
<td> 边有限制，二分定界
</td>
</tr>
<tr>
<td>1017</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1017&amp;cid=6427&amp;hide=0">Bus Pass</a></td>
<td> 模型转化</td>
</tr>
<tr>
<td>1018</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1018&amp;cid=6427&amp;hide=0">Cycling</a></td>
<td> 顶点有限制，二分定界</td>
</tr>
<tr>
<td>1019</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1019&amp;cid=6427&amp;hide=0">Travel</a></td>
<td> 广搜+优化 OR DP
</td>
</tr>
<tr>
<td>1020</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1020&amp;cid=6427&amp;hide=0">Sightseeing</a></td>
<td>次短路，次短路条数</td>
</tr>
<tr>
<td>1021</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1021&amp;cid=6427&amp;hide=0">WuKong</a></td>
<td> 两条最短路线最大公共点集</td>
</tr>
<tr>
<td>1022</td>
<td align="left"><a href="http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1022&amp;cid=6427&amp;hide=0">How Many Paths Are There</a></td>
<td> 次短路条数</td>
</tr>
</tbody>
</table>
<p></p>
<hr size="2"/>
<h3>1001</h3>
<p>
题目大意：<br />
计算从A到B的最短路长度。</p>
<p>算法：<br />
直白的最短路，数据量比较小可以使用多种方法求解。</p>
<p>备注：<br />
尝试用Dijkstra , SPFA , Bellman-Ford, Floyd等多种方法求解。<br />
熟练图的常用表示方法：邻接表，邻接矩阵。<br />
注意两个顶点可能有重边。</p>
<hr size="2"/>
<h3>1002</h3>
<p>
题目大意：<br />
计算从起点集S到终点集E之间的一条最短路长度。<br />
即求一个点对(A , B), A属于S，B属于E，使得A与B之间的距离dis(A, B)&lt;=dis(S中任意一点 , E中任意一点)。</p>
<p>算法：<br />
朴素的想法是枚举每个起点，算出每个起点到终点集的最短距离，取最小值。如果有N个起点，此方法就要执行N次单源最短路。<br />
可以引入一个新的起点newS和一个新的终点newE。新的起点连接所有S的顶点，新的重点连接E的顶点，新建的边长为0。求newS和newE之间的最短路，得到的就是期望得到的最短路+两条零边。</p>
<p>备注：<br />
新建节点的思想。</p>
<hr size="2"/>
<h3>1003</h3>
<p>
题目大意：<br />
计算从A到B的最短路长度。<br />
特别之处：顶点名由字符串给出。</p>
<p>算法：<br />
比起1001的难点就是对顶点名作映射，可以有以下几种方法：<br />
1. STL的map，很方便，速度不快，适用于顶点不多的情况。<br />
2. 字符串hash，速度很快，但对hash冲突有一定要求，如果冲突将出错。<br />
3. 二分查找， 先对所有字符串进行排序，那么每个字符串所在的下标就是该字符串的映射值，要寻找某字符串的映射值可以对该字符串二分。速度很快。<br />
4. 字典树， 先对所有字符串建一棵字典树，并在字典树中每个字符串的终端节点记录该串的映射值。</p>
<p>备注：<br />
尝试上述四种字符串映射方法。</p>
<hr size="2"/>
<h3>1004</h3>
<p>
同1001。</p>
<hr size="2"/>
<h3>1005</h3>
<p>
题目大意：<br />
计算从顶点S到E的Be Progress的路径的条数。<br />
Be Progress定义：He considers taking a path from A to B to be progress if there exists a route from B to his home that is shorter than any possible route from A. （如果从B到终点至少有一条路比从A到终点短，并且A-&gt;B有边，那么从A-&gt;B就是Be Progress的。）</p>
<p>算法：<br />
dis[k]：从k到终点的最短路长度。<br />
如果dis[B]&lt;dis[A]且A-&gt;B有边, 那么就是符合条件（Be Progress）的。<br />
可以先求出从终点到其他点的最短路（想一想，为什么不是起点？）<br />
然后从起点进行DP，以下是类C代码：<br />
num[st]=1<br />
DFS( int st )<br />
{<br />
&nbsp;&nbsp;&nbsp; for ( i = all st&#8217;s sons )&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( dis[st] &gt; dis[ son[st][i] ] )<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; num[ son[st][i] ] += num[st];<br />
&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; for ( i = all st&#8217;s sons )&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DFS( son[st][i] );<br />
&nbsp;&nbsp;&nbsp; }<br />
}</p>
<hr size="2"/>
<h3>1006</h3>
<p>
题目大意：<br />
计算从顶点S到E的最小权值路径（即最短路）。<br />
特殊之处：<br />
1. 除了路径，顶点也有权值，通过某顶点，就消耗对应的权值。<br />
2. 如果算出多条的最小权值路径，输出字典序最小的那条。</p>
<p>算法：<br />
1.对于顶点也有权值的情况，可以把该权值加到所有以它为弧尾的单向边上。<br />
2.对于字典序最小，可以在求反图的最短路的过程中，松弛时若dis[v]+l[v][u] == dis[u], 且pre[v]&lt;pre[u]，则pre[u] = pre[v]。也就是仅在权值相等处判断字典序先后，采取自终点向起点局部贪心的策略，（想一想：从起点到终点会怎么样？）</p>
<hr size="2"/>
<h3>1007</h3>
<p>
题目大意：<br />
电梯在每i层只能上升或下降a[i]高度（不能超出1~h的建筑高度范围）。求从起点到终点要按多少次电梯按钮。</p>
<p>算法：<br />
广搜或最短路。最短路的做法：对i-&gt;i+a[i] (i+a[i]&lt;=h),i-&gt;i-a[i](i-a[i]&gt;0)建边，后从起点到终点探索最短路。</p>
<hr size="2"/>
<h3>1008</h3>
<p>
题目大意：<br />
两两货币之间有相应的汇率，给定这些汇率后，问是否有利可图。<br />
有利可图的情况举例：A : B = 2, B : C = 3 , C : A = 1 (A : C = 6 , C : A = 1， 则这里有利可图)</p>
<p>算法：<br />
题目实质是用一个单位的A,A-&gt;B-&gt;C-&gt;&#8230;-&gt;A，一系列转化之后，能否兑换出多于一单位的A，即它们的汇率连乘是否&gt;1。<br />
可以用floyd做全源最长路（方法与最短路一样，松弛的时候取较大值，路径权值是乘法）。<br />
用bellman-ford或者spfa：如果一个顶点被松弛n次则有环，表示有利可图。<br />
字符串映射参见1003。</p>
<hr size="2"/>
<h3>1009</h3>
<p>
题目大意：<br />
计算从起点集S到顶点E之间的一条最短路长度。</p>
<p>算法：<br />
参见1002</p>
<hr size="2"/>
<h3>1010</h3>
<p>
题目大意：<br />
计算从起点到多个给顶点的来回最短路径长度之和。（有向图）</p>
<p>算法：<br />
朴素的算法是，对起点做一次单源最短路+对所有终点算单源最短路。<br />
其实可以只做两次单源最短路：第一次从起点做单源最短路，第二次也是从起点开始做，不过是建了反图（所有边反向）再做。<br />
字符串映射参见1003。</p>
<hr size="2"/>
<h3>1011</h3>
<p>
题目大意：<br />
每一条边各有一个高度限制，求从起点到终点找一条路径，使能够通过的货车高度最高。如果有多条这样的路径，输出最短的那条。</p>
<p>算法：<br />
二分货车的高度h，如果高度&gt;=h边才算合法，然后求通过合法边的最短路。</p>
<hr size="2"/>
<h3>1012</h3>
<p>
题目大意：</p>
<p>从起点S到终点E的最短路，图比较特别，可以用广搜或最短路。<br />
<img src="http://dl.idropbox.co.cc/u/4466849/img/2010-07/C170-1005-1.png" alt="1012" /><br />
算法：<br />
本题主要考验对输入的处理和保存，最短路部分参见1001。</p>
<hr size="2"/>
<h3>1013</h3>
<p>
题目大意：<br />
计算从A到B的最短路径长度。路径权值按照给定方法计算。</p>
<p>算法：<br />
最短路部分见1001。</p>
<hr size="2"/>
<h3>1014</h3>
<p><a href="http://hi.baidu.com/novosbirsk/blog/item/a286500f0ffd37e5ab64575d.html" id="bvr7" title="传送门">传送门</a></p>
<hr size="2"/>
<h3>1015</h3>
<p>
题目大意：<br />
给定一个安全系数矩阵，要求从顶点A到顶点B的最安全路径。路径安全系数Safe(P) = s(e1)*s(e2)…*s(ek)，即所有路径的安全系数之积。<br />
对Safe(P)取对数后，log(Safe(P)) = log(s(e1)) + log(s(e2)) … + log(s(ek))，相当于求最长路长度。（实际上直接用乘法本没错，取log是为了增加精度。）</p>
<p>算法：<br />
这里不存在环，求最长路只需将松弛时改为往大的方向即可（dis[v]+l[v][u]&gt;dis[u]则dis[u]=dis[v]+l[v][u]）。</p>
<hr size="2"/>
<h3>1016</h3>
<p>
题目大意：<br />
每条边有一定的舒适度，要求从起点A到终点B的最舒适的路。<br />
最舒适的路：该条路上舒适度之差最小。</p>
<p>算法：<br />
二分枚举舒适度的差值，依次枚举舒适度的最低点，这样得到舒适度的上下界，舒适度在上下界之间的边是合法边，再用最短路判A到B通过合法边是否连通。</p>
<hr size="2"/>
<h3>1017</h3>
<p>
题目大意：<br />
<img src="http://dl.idropbox.co.cc/u/4466849/img/2010-07/C141-1002-1.jpg" alt="1017" /><br />
在一张连通图上寻找一点A，使这个点到给定目标点集S的最远距离最小。上图虚线上的块即给定点。</p>
<p>算法：<br />
可以反过来，转化为求从目标点集S到地图上所有点最短距离的最大值。求一个最大值即可。</p>
<hr size="2"/>
<h3>1018</h3>
<p>
题目大意：<br />
每一个顶点有一个高度值，在使路径上最高和最低高度差值尽量小的前提下，找到一条最短路。</p>
<p>算法：<br />
同1016，二分枚举高度差，依次枚举高度的最小值，得到高度的上下界，两端点高度在上下界之间的边事合法边，再用最短路判A到B通过合法边是否连通。</p>
<hr size="2"/>
<h3>1019</h3>
<p>
题目大意：<br />
SUM = sum{&nbsp;&nbsp; &nbsp;dis(vi , vj) | 1&lt;=i,j&lt;=n&nbsp;&nbsp; &nbsp;} <br />
题目给出一些变长为1的边，要求输出删掉第i条(1&lt;=i&lt;=n)边的SUM值，如果整张图不再连通则输出INF。</p>
<p>算法：<br />
边长为一，可以用广搜在O(n)时间内算出从一个点到其他点的最短距离和。<br />
预处理原图，对图的每个顶点算出其到其他顶点的最短距离和，并记录这棵最短路径树包含的边。预处理时间O(n^2)。<br />
对于每条边，分两种情况：<br />
1. 如果这条边不在原图的第i个顶点的最短路径树上，删去边后对i点的最短路径树不会有影响。<br />
2. 如果这条边在原图的第i个顶点的最短路径树上，那么要重新计算这棵最短路径树，O(n^2)。</p>
<p>最坏情况的复杂度是O(n*n*m)。</p>
<p>本题也有DP的算法：<a href="http://hi.baidu.com/lewutian/blog/item/0146f22734633308908f9d71.html" id="mi62" title="传送门">传送门</a>。</p>
<hr size="2"/>
<h3>1020</h3>
<p>
题目大意：<br />
求最短路和比最短路长1单位的路的条数。</p>
<p>算法：<br />
可以转化为求最短路的条数N和次短路的条数M，如果 次短路长==最短路长-1 ， 则答案为N+M， 否则答案为N。<br />
次短路的算法：<br />
最短路一定从前驱节点的最短路而来。<br />
次短路可能从前驱节点的最短路或次短路更新而来。<br />
这里要把数组都搞成2维的，dist[] [0]记录最短路，dist[][1]记录次短路，再搞一个cnt数组进行计数。</p>
<p>详细解释及代码学习：<a href="http://www.cppblog.com/Davidlrzh/articles/114788.html" id="zlp9" title="传送门">传送门</a>。</p>
<hr size="2"/>
<h3>1021</h3>
<p>
题目大意：<br />
一张无向图上有两个人，其中一个从A走到B，另一个从C走到D，问他们两人各自都走最短路的公共点的最大值。（取最大值是因为两人的最短路都可能有多条）。</p>
<p>算法：<br />
1. floyd算法：<br />
<img src="http://dl.idropbox.co.cc/u/4466849/img/2010-07/blog-shortest-path.png" alt="wukong" /><br />
首先证明他们的公共点一定可以是一条连续的路。<br />
假如公共点不是连续的，如上图，分叉部分的两个路径，选一条顶点多的变成公共路径效果一定不会更差。</p>
<p>在floyd中，增加一个数组，num[i][j]表示从i-&gt;j的最短路上至多有多少个点。<br />
初始化时：</p>
<div style="margin-left: 80px;">i==j: num[i][j] = 1<br />
i!=j: num[i][j] = 2
</div>
<p>松弛时：
</div>
<p>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; t1 = dis[i][k] + dis[k][j];</p>
<div>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;t2 = num[i][k] + num[k][j] &#8211; 1;</p>
<p>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if ( dis[i][j] == INF || dis[i][j] &gt; t1)&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;dis[i][j] = t1;<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;num[i][j] = t2;<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}&nbsp;&nbsp; &nbsp;else if ( dis[i][j] == t1 &amp;&amp; num[i][j] &lt; t2 )&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;num[i][j] = t2;<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}</p>
<p>最后枚举公共路径的两个端点，判断这条公共路径能不能作为两人的最短路径上的子路径，如果行，则取num[i][j]的最大值。</p>
<div style="margin-left: 40px;">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; for ( i = 1;i &lt;= n;i ++ )&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;for ( j = 1;j &lt;= n;j ++ )&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if ( num[i][j] &gt; M &amp;&amp; L1 == dis[sx][i]+dis[i][j]+dis[j][ex] <br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&amp;&amp; L2 == dis[sy][i]+dis[i][j]+dis[j][ey])&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;M = num[i][j];<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}
</div>
<p>2. 单源最短路算法：<br />
把从A到B的所有最短路构成的有向子图抠出来，再把从C到D的所有最短路构成的有向子图抠出来，最短公共路径一定在两个子图的交集上。<br />
然后做类似最长公共子序列的dp<br />
dp[i][j]表示从A-&gt;i的最短路径，从C-&gt;j的最短路径的最多公共点数。<br />
i == j : dp[i][j] = dp[ pre1[i] ][ pre2[j] ]。<br />
i !=&nbsp; j : dp[i][j] = max( dp[pre1[i] ][j] , dp[ i ][ pre2[j] ]。</p>
<hr size="2"/>
<h3>1022</h3>
<p>
题目大意：<br />
求次短路的条数，特别的这题的数据中有路径长为0的情况，足以让本题变成一道难题。许多过的算法都有漏洞。</p>
<p>算法：<br />
基本想法还是和1020一样求最短路和次短路条数。对于0的情况要特殊考虑。
</div>
<p></p>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://viva-villa.org/wordpress/">MadFroG</a></p>
<p><strong>本文链接地址:</strong> <a href="http://viva-villa.org/2010/07/shortest-path-problem.html">最短路专辑小结</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://viva-villa.org/2010/07/shortest-path-problem.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>最短路四种算法简介</title>
		<link>http://viva-villa.org/2010/07/shortest-path-introduction.html</link>
		<comments>http://viva-villa.org/2010/07/shortest-path-introduction.html#comments</comments>
		<pubDate>Tue, 06 Jul 2010 03:27:41 +0000</pubDate>
		<dc:creator>wxl.name</dc:creator>
				<category><![CDATA[程序人生]]></category>
		<category><![CDATA[bellman-ford]]></category>
		<category><![CDATA[dijkstra]]></category>
		<category><![CDATA[floyd]]></category>
		<category><![CDATA[SPFA]]></category>
		<category><![CDATA[教程]]></category>
		<category><![CDATA[最短路]]></category>

		<guid isPermaLink="false">http://viva-villa.org/?p=68</guid>
		<description><![CDATA[<p>算法简介</p>
<p><a href="#Dijkstra" id="fil3" target="_self" title="Dijkstra">Dijkstra</a><br />
<a href="#Floyd" id="fxf0" target="_self" title="Floyd">Floyd</a><br />
<a href="#Bellman-Ford" id="dj9l" target="_self" title="Bellman-Ford">Bellman-Ford</a><br />
<a href="#SPFA" id="f08k" target="_self" title="SPFA">SPFA</a></p>
<p></p>


<h3><a id="Dijkstra" name="Dijkstra"></a>Dijkstra</h3>
<p></p>
算法简介：<br />
能够求出从源点到其他点的最短路。<br />
特点：利用贪心思想依照到源点距离从小到大的顺序依次算出最短路。
<p>步骤：<br />
1. 步骤2~3执行n-1次（因为n个顶点的最短路最多有n-1条边，每次都能求出[......]</p><p class='read-more'><a href='http://viva-villa.org/2010/07/shortest-path-introduction.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>算法简介</p>
<p><a href="#Dijkstra" id="fil3" target="_self" title="Dijkstra">Dijkstra</a><br />
<a href="#Floyd" id="fxf0" target="_self" title="Floyd">Floyd</a><br />
<a href="#Bellman-Ford" id="dj9l" target="_self" title="Bellman-Ford">Bellman-Ford</a><br />
<a href="#SPFA" id="f08k" target="_self" title="SPFA">SPFA</a></p>
<p></p>
<hr size="2"/>
</p>
<h3><a id="Dijkstra" name="Dijkstra"></a>Dijkstra</h3>
<p></p>
<div>算法简介：<br />
能够求出从源点到其他点的最短路。<br />
特点：利用贪心思想依照到源点距离从小到大的顺序依次算出最短路。</p>
<p>步骤：<br />
1. 步骤2~3执行n-1次（因为n个顶点的最短路最多有n-1条边，每次都能求出一个顶点的最短路）<br />
2. 从尚未求的最短路的顶点集中找出一个离源点最近的顶点，那么这个点已经求出最短路。<br />
3. 更新与上述端点有关的边。<br />
更详细的解释请到<a href="http://zh.wikipedia.org/zh-cn/Dijkstra%E7%AE%97%E6%B3%95" id="y_.1" title="wikipedia">wikipedia</a>或<a href="https://encrypted.google.com/search?q=dijkstra+%E7%AE%97%E6%B3%95&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:zh-CN:official&amp;client=firefox" id="ok:d" title="google:dijkstra算法">google:dijkstra算法</a>。</p>
<p>帮助理解：<br />
<a href="http://www.ntnoi.cn/FLASH/arithmetic/2010-05-17/23.html" id="p.h7" title="点击查看">点击查看</a>dijkstra求最短路Flash动画：<br />
红点集S：已知最短路的点集<br />
K：最新找到最短路的点，用以更新D{}<br />
D{i}：从源点到i的当前最短路<br />
P{i}：记录i点的前驱节点</p>
<p>代码：</p>
<p>//求st到ed的最短路，复杂度O(V^2)<br />
int dijkstra( int st , int ed )<br />
{<br />
&nbsp;&nbsp; &nbsp;for (int i = 0;i &lt;= n;i ++ )&nbsp;&nbsp; &nbsp;D[i] = INF;<br />
&nbsp;&nbsp;&nbsp; D[st] = 0;<br />
&nbsp;&nbsp;&nbsp; while (st != ed)<br />
&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hash[st]=1;<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;int tmp = INF;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int j = 1;j &lt;= n;j ++)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D[j] = min( L[st][j]+D[st] , D[j] );<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( !hash[j] &amp;&amp; D[j] &lt; tmp )<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;tmp = D[ st=j ];<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; return D[ed];<br />
}</p>
<p>//求st到ed的最短路，堆优化+邻接表，复杂度O(E*log(V))<br />
typedef struct {&nbsp;&nbsp; &nbsp;int l , v;&nbsp;&nbsp; &nbsp;}&nbsp;&nbsp; &nbsp;Edge;<br />
typedef vector &lt; Edge &gt; VE;<br />
struct Vex&nbsp;&nbsp; &nbsp;{&nbsp;&nbsp; &nbsp;<br />
&nbsp;&nbsp; &nbsp;int v , dis;<br />
&nbsp;&nbsp; &nbsp;friend bool operator&lt;(Vex v1 , Vex v2)&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;return v1.dis &gt; v2.dis;<br />
&nbsp;&nbsp; &nbsp;}<br />
};<br />
VE e[ MaxN ];<br />
priority_queue &lt; Vex &gt; Q;</p>
<p>int dijkstra(VE *e , int n , int st , int ed)<br />
{<br />
&nbsp;&nbsp; &nbsp;int dis[ MaxN ] , i;<br />
&nbsp;&nbsp; &nbsp;bool visited[ MaxN ] = { 0 };<br />
&nbsp;&nbsp; &nbsp;for (i = 0;i &lt; n;i ++)&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;dis[ i ] = INF;<br />
&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;<br />
&nbsp;&nbsp; &nbsp;Vex now , next;<br />
&nbsp;&nbsp; &nbsp;now.dis = dis[ now.v = st ] = 0;<br />
&nbsp;&nbsp; &nbsp;Edge et;<br />
&nbsp;&nbsp; &nbsp;while (!Q.empty())&nbsp;&nbsp; &nbsp;Q.pop();<br />
&nbsp;&nbsp; &nbsp;Q.push(now);<br />
&nbsp;&nbsp; &nbsp;while (!Q.empty())&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;now = Q.top();Q.pop();<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (!visited[ now.v ])&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;visited[ now.v ] = true;<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;for (i = 0;i &lt; e[ now.v ].size();i ++)&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;et = e[ now.v ][ i ];<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;next.v = et.v;<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (!visited[ et.v ] &amp;&amp; et.l + dis[ now.v ] &lt; dis[ et.v ])&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;next.dis = dis[ next.v = et.v ] = et.l + dis[ now.v ];<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Q.push(next);<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;return dis[ ed ];<br />
}</p>
</div>
<p></p>
<hr size="2"/>
</p>
<h3><a id="Floyd" name="Floyd"></a>Floyd</h3>
<p>
算法简介：<br />
能够求出一张图中两两端点之间的最短路。</p>
<p>算法步骤：</p>
<p>DP{k,i,j} 表示利用前k个顶点作为跳板，从i-&gt;j的最短距离。<br />
计算DP{k , i , j}时，分两种情况：<br />
1. 不使用k顶点作为跳板 DP{ k-1 , i , j } <br />
2. 使用k顶点作为跳板 DP{ k-1 , i , k } + DP{ k-1 , k , j} <br />
两者取较小值。发现DP{k,*,*}只与DP{k-1,*,*}有关，且计算时不会有冲突。可省去一维。</p>
<p><a href="http://blog.csdn.net/Fantongking/archive/2009/07/24/4373448.aspx" id="py2o" title="点击查看">点击查看</a>其他人的解释。</p>
<p>代码：</p>
<p>//求两两顶点之间的最短路<br />
//DP[i][j]初始值保存i-&gt;j的直接距离，注意i,j,k的顺序<br />
for ( k = 0;k &lt; n;k ++ )&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;for ( i = 0;i &lt; n;i ++ )&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;for ( j = 0;j &lt; n;j ++ )&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;DP[i][j] = min( DP[i][j] , DP[i][k]+DP[k][j] );<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;}<br />
}</p>
<p></p>
<hr size="2"/>
</p>
<h3><a id="Bellman-Ford" name="Bellman-Ford"></a>Bellman-Ford</h3>
<p>
算法简介：<br />
求出从源点到其他各顶点的最短距离。<br />
特点：可以判断负环。</p>
<p>算法步骤：<br />
由于最短路最多只有V-1条边，只需利用所有边集松弛最短距离V-1次即可得到最短路。<br />
判断是否存在负权环：如果再进行一次松弛，还有最短距离呗更新，则含有负权环。</p>
<p><a href="http://hi.baidu.com/nefuhongke/blog/item/0e088c63eaeaf5680c33fabd.html" id="m8n:" title="点击查看">点击查看</a>其他人的解释。</p>
<p>代码：<br />
void relax(Edge &amp;e)<br />
{<br />
&nbsp;&nbsp; &nbsp;if ( dis[e.a] + e.l &lt; dis[e.b] )&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;dis[e.b] = dis[e.a] + e.l;<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;pre[e.b] = e.a;<br />
&nbsp;&nbsp; &nbsp;}<br />
}<br />
bool bellman_ford( vector&lt;Edge&gt; &amp;E , int n)<br />
{<br />
&nbsp;&nbsp; &nbsp;int i , j;<br />
&nbsp;&nbsp; &nbsp;for ( i = 1;i &lt; n;i ++ )&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;for ( j = 0;j &lt; E.size();j ++ )&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;relax(E[j]);<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;for ( j = 0;j &lt; E.size();j ++ )&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (dis[E[j].a] + E[j].l &lt; dis[E[j].b] )<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;return false;//还能松弛，说明有负环<br />
&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;return true;<br />
}</p>
<hr size="2"/>
<h3><a id="SPFA" name="SPFA"></a>SPFA</h3>
<p>算法简介：<br />
求出从源点到其他各顶点的最短距离。<br />
特点：速度较快，可以判断负环。</p>
<p>算法步骤：<br />
实质是广搜，从起点到其他点探索最短路，如果某个点的最短路径被更新，那么通过这个点也可能更新别的点。直到没有点被更新，算法结束。<br />
<a href="http://blog.csdn.net/petercsj/archive/2010/04/21/5511978.aspx" id="jmxc" title="点击这里">点击这里</a>看其他人的解释。</p>
<p>
代码：<br />
const int maxn = 1001;<br />
typedef struct {&nbsp;&nbsp; &nbsp;int v , l;&nbsp;&nbsp; &nbsp;}&nbsp;&nbsp; &nbsp;Edge;<br />
typedef vector&lt; Edge &gt; VE;<br />
VE E[maxn];<br />
int dis[maxn];<br />
const int INF = -1;</p>
<p>void SPFA(VE *E , int n , int st , int *dis)<br />
{<br />
&nbsp;&nbsp; &nbsp;</p>
<p>&nbsp;&nbsp; &nbsp;int i , now;<br />
&nbsp;&nbsp; &nbsp;Edge nt;<br />
&nbsp;&nbsp; &nbsp;bool hash[maxn] = {0};<br />
&nbsp;&nbsp; &nbsp;hash[ st ] = true;<br />
&nbsp;&nbsp; &nbsp;for ( i = 1;i &lt;= n;i ++ )&nbsp;&nbsp; &nbsp;dis[i] = INF;<br />
&nbsp;&nbsp; &nbsp;dis[st] = 0;<br />
&nbsp;&nbsp; &nbsp;queue &lt; int &gt; Q;<br />
&nbsp;&nbsp; &nbsp;Q.push(st);</p>
<p>&nbsp;&nbsp; &nbsp;while (!Q.empty()){<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;now = Q.front();Q.pop();<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hash[now] = false;</p>
<p>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;for (i = 0;i &lt; E[now].size();i ++){</p>
<p>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;nt = E[now][i];</p>
<p>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (dis[nt.v] == INF || dis[nt.v] &gt; dis[now] + nt.l ){<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;dis[nt.v] = dis[now] + nt.l;</p>
<p>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if ( !hash[nt.v] )&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hash[nt.v] = true;<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Q.push(nt.v);<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp; &nbsp;}<br />
}</p>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://viva-villa.org/wordpress/">MadFroG</a></p>
<p><strong>本文链接地址:</strong> <a href="http://viva-villa.org/2010/07/shortest-path-introduction.html">最短路四种算法简介</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://viva-villa.org/2010/07/shortest-path-introduction.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>firefox 3.6.4插件推荐</title>
		<link>http://viva-villa.org/2010/06/firefox-3-6-4%e6%8f%92%e4%bb%b6%e6%8e%a8%e8%8d%90-2.html</link>
		<comments>http://viva-villa.org/2010/06/firefox-3-6-4%e6%8f%92%e4%bb%b6%e6%8e%a8%e8%8d%90-2.html#comments</comments>
		<pubDate>Sat, 26 Jun 2010 13:20:04 +0000</pubDate>
		<dc:creator>wxl.name</dc:creator>
				<category><![CDATA[资源推介]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[扩展]]></category>
		<category><![CDATA[推荐]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://viva-villa.org/2010/06/firefox-3-6-4%e6%8f%92%e4%bb%b6%e6%8e%a8%e8%8d%90-2.html</guid>
		<description><![CDATA[时至今日，还有很多同学（包括许多计算机专业）用着<a title="IE或IE内核" href="http://baike.baidu.com/view/2259224.htm?fr=ala0_1" id="vtja" name="vtja">IE或IE内核</a>的浏览器，我那个痛心疾首啊！ <br />还不赶紧扔掉那老掉牙的浏览器？赶紧试试<a title="Firefox" href="http://www.mozillaonline.com/" id="wdg0" name="wdg0">Firefox</a>，<a title="Chome" href="http://www.google.com/chrome" id="ggzo" name="ggzo">Chome</a>，<a title="Safari" href="http://www.apple.com/safari/" id="k80q" name="k80q">Safari</a>，<a title="Opera" href="http://www.opera.com/" id="v1aq" name="v1aq">Opera</a>吧，不会令你失望的。 
<img src="http://dl.idropbox.co.cc/u/4466849/img/2010-06/firefox.jpg" style="WIDTH: 256px; DISPLAY: inline; HEIGHT: 205px" height="205" width="256"/>
<p>本人系firefox死忠，而火狐浏览器的强大，只有装上优秀的插件后才能凸显。 <br />以下是个人认为[......]</p><p class='read-more'><a href='http://viva-villa.org/2010/06/firefox-3-6-4%e6%8f%92%e4%bb%b6%e6%8e%a8%e8%8d%90-2.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<div>时至今日，还有很多同学（包括许多计算机专业）用着<a title="IE或IE内核" href="http://baike.baidu.com/view/2259224.htm?fr=ala0_1" id="vtja" name="vtja">IE或IE内核</a>的浏览器，我那个痛心疾首啊！ <br />还不赶紧扔掉那老掉牙的浏览器？赶紧试试<a title="Firefox" href="http://www.mozillaonline.com/" id="wdg0" name="wdg0">Firefox</a>，<a title="Chome" href="http://www.google.com/chrome" id="ggzo" name="ggzo">Chome</a>，<a title="Safari" href="http://www.apple.com/safari/" id="k80q" name="k80q">Safari</a>，<a title="Opera" href="http://www.opera.com/" id="v1aq" name="v1aq">Opera</a>吧，不会令你失望的。 
<div style="TEXT-ALIGN: left" id="oq0x"><img src="http://dl.idropbox.co.cc/u/4466849/img/2010-06/firefox.jpg" style="WIDTH: 256px; DISPLAY: inline; HEIGHT: 205px" height="205" width="256"/></div>
<p>本人系firefox死忠，而火狐浏览器的强大，只有装上优秀的插件后才能凸显。 <br />以下是个人认为比较优秀的插件，3.6.4版本可用。 <br />
<hr size="2"/><a title="AutoProxy" href="https://addons.mozilla.org/zh-CN/firefox/addon/11009/" id="nfz3" name="nfz3"><span style="FONT-SIZE: 0.9em">AutoProxy</span></a> <br /><span style="FONT-SIZE: 0.75em"><br /></span>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em">自动爬墙插件，配合爬墙软件使用。</span> </div>
<p><a title="Firefox Sync" href="https://addons.mozilla.org/zh-CN/firefox/addon/10868" id="egk0" name="egk0"><span style="FONT-SIZE: 0.9em">Firefox Sync</span></a> </p>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em">火狐官方同步插件，同步不同电脑上火狐浏览器的历史记录、密码、书签、标签页等。</span> </div>
<p><a title="Google Gears" href="http://gears.google.com/" id="hqgn" name="hqgn"><span style="FONT-SIZE: 0.9em">Google Gears</span></a> </p>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em">它允许网络应用程序使用以下JavaScript API提供离线功能： 　　 <br />1.在本地储存及操作应用程序的资源； 　　 <br />2.将数据储存在本地的完全可搜索的关系数据里； 　　 <br />3.运行异步Javascript以提高应用程序的响应速度。 <br />个人理解为：一个为web提供离线功能的插件。</span> </div>
<p><a title="Secure Google Search" href="https://addons.mozilla.org/zh-CN/firefox/addon/161897" id="c.:l" name="c.:l"><span style="FONT-SIZE: 0.9em">Secure Google Search</span></a> </p>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em">让FF直接使用https://www.google.com搜索，不再&#8221;该页无法显示&#8221;，当然进入不良网站还是需要爬墙软件。</span></div>
<p><a href="http://addons.mozine.cn/firefox/596"><span style="FONT-SIZE: 0.9em">Google Reader Watcher</span></a> </p>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em">在火狐的状态栏（底栏）添加google reader的图标，帮你监视google reader的更新。</span> </div>
<p><a href="https://addons.mozilla.org/zh-CN/firefox/addon/1320"><span style="FONT-SIZE: 0.9em">Gmail Manager</span></a> </p>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em">在火狐的状态栏添加gmail的图标，帮你监视gmail的更新。</span> </div>
<p><span style="FONT-SIZE: 0.9em"><a title="Memory Fox" href="https://addons.mozilla.org/zh-CN/firefox/addon/53880" id="eylh" name="eylh">Memory Fox</a> <br /><span style="FONT-SIZE: 0.75em"><br /></span></span>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em">火狐占用的内存太可怕了，用它来自动控制火狐的内存占用。</span> <span style="FONT-SIZE: 0.75em"></p>
<p></span></div>
<p> <span style="FONT-SIZE: 0.9em"><a title="All-In-One Sidebar" href="https://addons.mozilla.org/zh-CN/firefox/addon/1027" id="ub2c" name="ub2c">All-In-One Sidebar</a> <br /><span style="FONT-SIZE: 0.75em"><br /></span></span>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em"><span style="FONT-SIZE: 0.75em">一个侧栏控制器。让您快速切换侧栏面板，在侧栏访问网站或查看页面信息与源代码。AIOS 包括侧栏切换柄和工具栏，所有这些都允许用户自由定制。</span> <br /></span></div>
<p> <span style="FONT-SIZE: 0.9em"><span style="FONT-SIZE: 0.75em"><br /></span><a href="https://addons.mozilla.org/en-US/firefox/addon/26">Download statusbar</a> <br /><span style="FONT-SIZE: 0.75em"><br /></span></span>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em"><span style="FONT-SIZE: 0.75em">在状态栏添加图标，查看并处理下载。取代了原有的下载窗口。</span> <br /></span></div>
<p> <span style="FONT-SIZE: 0.9em"><span style="FONT-SIZE: 0.75em"><br /></span><a href="https://addons.mozilla.org/en-US/firefox/addon/4810">Speed Dial</a> <br /><span style="FONT-SIZE: 0.75em"><br /></span></span>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em">直接拨号打开网页。 <br /></span></div>
<p> <span style="FONT-SIZE: 0.9em"><span style="FONT-SIZE: 0.75em"><br /></span><a href="https://addons.mozilla.org/en-US/firefox/addon/2109">FEBE(Firefox Environment Backup Extension)</a> <br /><span style="FONT-SIZE: 0.75em"><br /></span></span>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em">备份火狐的扩展。 <br /></span></div>
<p> <span style="FONT-SIZE: 0.9em"><span style="FONT-SIZE: 0.75em"><br /></span><a href="https://addons.mozilla.org/zh-CN/firefox/addon/1843">FireBug</a> <br /><span style="FONT-SIZE: 0.75em"><br /></span></span>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em">Firebug 为你的 Firefox 集成了浏览网页的同时随手可得的丰富开发工具。你可以对任何网页的 CSS、HTML 和 JavaScript 进行实时编辑、调试和监控。 <br /></span></div>
<p> <span style="FONT-SIZE: 0.9em"><span style="FONT-SIZE: 0.75em"><br /></span><a href="https://addons.mozilla.org/zh-CN/firefox/addon/220">FlashGot</a> <br /><span style="FONT-SIZE: 0.75em"><br /></span></span>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em"><span style="FONT-SIZE: 0.75em">能够让你的Firefox直接调用外部下载工具下载单个，或批量的网页中的链接，支持目前主流下载工具，如FlashGet、Free Download Manager、GetRight、Internet Download Accelerator、Net Transport等。</span> <br /></span></div>
<p> <span style="FONT-SIZE: 0.9em"><span style="FONT-SIZE: 0.75em"><br /></span><a title="FireGestures" href="https://addons.mozilla.org/zh-CN/firefox/addon/6366/" id="um80" name="um80">FireGestures</a> <br /></span></div>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em"><span style="FONT-SIZE: 0.75em">鼠标手势。</span></span></div>
<p><span style="FONT-SIZE: 0.9em"><span style="FONT-SIZE: 0.75em"><br /></span><a href="http://amb.vis.ne.jp/mozilla/scrapbook/">ScrapBook</a></span></p>
<div style="MARGIN-LEFT: 40px"><span style="FONT-SIZE: 0.75em">保存网页，写便签。</span> </div>
<p></p>
<hr size="2"/>
<p>他们也在分享： </p>
<p>可能吧： </p>
<div style="MARGIN-LEFT: 40px"><a href="http://www.kenengba.com/post/465.html" rel="bookmark" title="提高浏览体验-Firefox3优秀扩展推荐">Firefox优秀扩展推荐</a> <br /><a href="http://www.kenengba.com/post/554.html" rel="bookmark" title="Firefox 3优秀扩展推荐（2）（含打包下载）">Firefox优秀扩展推荐（2）</a> <br /><a href="http://www.kenengba.com/post/2216.html" rel="bookmark" title="Firefox优秀扩展推荐（3）">Firefox优秀扩展推荐（3）</a> </div>
<p>月光博客： </p>
<div style="MARGIN-LEFT: 40px"><a title="提高浏览体验的五十个最佳FireFox扩展插件" href="http://www.williamlong.info/archives/702.html" id="aovk" name="aovk">提高浏览体验的五十个最佳FireFox扩展插件</a> </div>
<p>推荐文章：<a title="装机常用软件" href="http://viva-villa.org/2010/06/装机常用软件.html" id="w:q9" name="w:q9">装机常用软件</a> </p>
<p xmlns="" class="zoundry_raven_tags">  <!-- Tag links generated by Zoundry Raven. Do not manually edit. http://www.zoundryraven.com -->  <span class="ztags"><span class="ztagspace">Technorati</span> : <a href="http://www.technorati.com/tag/firefox" class="ztag" rel="tag">firefox</a>, <a href="http://www.technorati.com/tag/%E6%89%A9%E5%B1%95" class="ztag" rel="tag">扩展</a>, <a href="http://www.technorati.com/tag/%E6%8E%A8%E8%8D%90" class="ztag" rel="tag">推荐</a>, <a href="http://www.technorati.com/tag/%E6%8F%92%E4%BB%B6" class="ztag" rel="tag">插件</a></span>  <br /> <span class="ztags"><span class="ztagspace">Del.icio.us</span> : <a href="http://del.icio.us/tag/firefox" class="ztag" rel="tag">firefox</a>, <a href="http://del.icio.us/tag/%E6%89%A9%E5%B1%95" class="ztag" rel="tag">扩展</a>, <a href="http://del.icio.us/tag/%E6%8E%A8%E8%8D%90" class="ztag" rel="tag">推荐</a>, <a href="http://del.icio.us/tag/%E6%8F%92%E4%BB%B6" class="ztag" rel="tag">插件</a></span>  <br /> <span class="ztags"><span class="ztagspace">Zooomr</span> : <a href="http://www.zooomr.com/search/photos/?q=firefox" class="ztag" rel="tag">firefox</a>, <a href="http://www.zooomr.com/search/photos/?q=%E6%89%A9%E5%B1%95" class="ztag" rel="tag">扩展</a>, <a href="http://www.zooomr.com/search/photos/?q=%E6%8E%A8%E8%8D%90" class="ztag" rel="tag">推荐</a>, <a href="http://www.zooomr.com/search/photos/?q=%E6%8F%92%E4%BB%B6" class="ztag" rel="tag">插件</a></span>  <br /> <span class="ztags"><span class="ztagspace">Flickr</span> : <a href="http://www.flickr.com/photos/tags/firefox" class="ztag" rel="tag">firefox</a>, <a href="http://www.flickr.com/photos/tags/%E6%89%A9%E5%B1%95" class="ztag" rel="tag">扩展</a>, <a href="http://www.flickr.com/photos/tags/%E6%8E%A8%E8%8D%90" class="ztag" rel="tag">推荐</a>, <a href="http://www.flickr.com/photos/tags/%E6%8F%92%E4%BB%B6" class="ztag" rel="tag">插件</a></span> </p>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://viva-villa.org/wordpress/">MadFroG</a></p>
<p><strong>本文链接地址:</strong> <a href="http://viva-villa.org/2010/06/firefox-3-6-4%e6%8f%92%e4%bb%b6%e6%8e%a8%e8%8d%90-2.html">firefox 3.6.4插件推荐</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://viva-villa.org/2010/06/firefox-3-6-4%e6%8f%92%e4%bb%b6%e6%8e%a8%e8%8d%90-2.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>装机常用软件</title>
		<link>http://viva-villa.org/2010/06/%e8%a3%85%e6%9c%ba%e5%b8%b8%e7%94%a8%e8%bd%af%e4%bb%b6.html</link>
		<comments>http://viva-villa.org/2010/06/%e8%a3%85%e6%9c%ba%e5%b8%b8%e7%94%a8%e8%bd%af%e4%bb%b6.html#comments</comments>
		<pubDate>Sun, 13 Jun 2010 15:31:51 +0000</pubDate>
		<dc:creator>wxl.name</dc:creator>
				<category><![CDATA[资源推介]]></category>
		<category><![CDATA[推介]]></category>
		<category><![CDATA[装机]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://viva-villa.org/2010/06/%e8%a3%85%e6%9c%ba%e5%b8%b8%e7%94%a8%e8%bd%af%e4%bb%b6.html</guid>
		<description><![CDATA[我装机的常用软件，链接到官网。 <br />注：[A]表示官网下载的A软件需要注册。 

<h3>聊天</h3>
<p><a title="腾讯QQ" href="http://im.qq.com/index.shtml" id="bh0-" name="bh0-">腾讯QQ</a> <br /><a title="Gtalk" href="http://www.google.com/talk/" id="moxx" name="moxx">Gtalk</a> <br /><a title="Yahoo Message" href="http://messenger.yahoo.com/" id="m2go" name="m2go">Yahoo Message</a> <br /><a title="飞信" href="http://www.fetion.com.cn/download/" id="lod-" name="lod-">飞信</a> <br /><a title="windows live messenger" href="http://explore.live.com/windows-live-essentials?os=winxp" id="b9-9" name="b9-9">Windows Live Messenger</a> </p>
<h3>视频</h3>
<p><a title="暴风影音" href="http://www.baofeng.com/" id="s1y0" name="s1y0">暴风影音</a> <br /><a title="Adobe Flash Player" href="http://www.adobe.com/products/flashplayer/" id="qzo5" name="qzo5">Adobe Flash Player</a> <br /><a title="射手音乐播放器" href="http://shooter.cn/splayer/" id="cwuw" name="cwuw">射手音乐播放器</a> <br /><a title="QuickTime" href="http://www.apple.com/quicktime/download/" id="xdna" name="xdna">QuickTime</a> <br /><a title="itudou" href="http://www.tudou.com/itudou/help/" id="qgt9" name="qgt9">itudou</a> </p>
<h3>浏览器[......]</h3><p class='read-more'><a href='http://viva-villa.org/2010/06/%e8%a3%85%e6%9c%ba%e5%b8%b8%e7%94%a8%e8%bd%af%e4%bb%b6.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<div>我装机的常用软件，链接到官网。 <br />注：[A]表示官网下载的A软件需要注册。 </p>
</div>
<h3>聊天</h3>
<p><a title="腾讯QQ" href="http://im.qq.com/index.shtml" id="bh0-" name="bh0-">腾讯QQ</a> <br /><a title="Gtalk" href="http://www.google.com/talk/" id="moxx" name="moxx">Gtalk</a> <br /><a title="Yahoo Message" href="http://messenger.yahoo.com/" id="m2go" name="m2go">Yahoo Message</a> <br /><a title="飞信" href="http://www.fetion.com.cn/download/" id="lod-" name="lod-">飞信</a> <br /><a title="windows live messenger" href="http://explore.live.com/windows-live-essentials?os=winxp" id="b9-9" name="b9-9">Windows Live Messenger</a> </p>
<h3>视频</h3>
<p><a title="暴风影音" href="http://www.baofeng.com/" id="s1y0" name="s1y0">暴风影音</a> <br /><a title="Adobe Flash Player" href="http://www.adobe.com/products/flashplayer/" id="qzo5" name="qzo5">Adobe Flash Player</a> <br /><a title="射手音乐播放器" href="http://shooter.cn/splayer/" id="cwuw" name="cwuw">射手音乐播放器</a> <br /><a title="QuickTime" href="http://www.apple.com/quicktime/download/" id="xdna" name="xdna">QuickTime</a> <br /><a title="itudou" href="http://www.tudou.com/itudou/help/" id="qgt9" name="qgt9">itudou</a> </p>
<h3>浏览器</h3>
<p><a title="Firefox" href="http://www.mozillaonline.com/" id="a.zw" name="a.zw">Firefox</a> <br /><a title="Chrome" href="http://www.google.com/chrome/index.html?hl=en&amp;brand=CHMB&amp;utm_campaign=en&amp;utm_source=en-ha-na-us-sk&amp;utm_medium=ha" id="bva-" name="bva-">Chrome</a> <br /><a title="Opera" href="http://www.opera.com/" id="jnmo" name="jnmo">Opera</a> </p>
<h3>音乐</h3>
<p><a title="itunes" href="http://www.apple.com.cn/itunes/download/" id="ralx" name="ralx">itunes</a> <br /><a title="winamp" href="http://www.winamp.com" id="wpif" name="wpif">Winamp</a> </p>
<h3>下载</h3>
<p><a title="VeryCD" href="http://www.verycd.com/" id="jp4b" name="jp4b">VeryCD</a> <br /><a title="迅雷" href="http://dl.xunlei.com/" id="wren" name="wren">迅雷</a> <br /><a title="快车" href="http://www.flashget.com" id="s.8g" name="s.8g">快车</a> </p>
<h3>游戏</h3>
<p>植物大战僵尸 <br />VS对战平台 <br />QQ对战平台 </p>
<p></p>
<h3>图形图像</h3>
<p><a title="Picasa" href="http://picasa.google.com" id="a2k4" name="a2k4">Picasa</a> <br />[<a title="Photoshop" href="http://www.photoshop.com/" id="dey1" name="dey1">Photoshop</a>] <br />[<a title="ACDsee" href="http://www.acdsee.com" id="docx" name="docx">ACDsee</a>] <br /><a title="Google Map" href="http://maps.google.com" id="n954" name="n954">Google Map</a> </p>
<h3>安全杀毒</h3>
<p><a title="小红伞" href="http://www.free-av.com/" id="v_1h" name="v_1h">小红伞</a> <br />[<a title="卡巴斯基" href="http://www.kaspersky.com.cn/" id="xo6r" name="xo6r">卡巴斯基</a>] <br />[<a title="Eset Nod32" href="http://www.eset.com" id="tvrr" name="tvrr">Eset Nod32</a>] </p>
<h3>输入法</h3>
<p><a title="搜狗输入法" href="http://pinyin.sogou.com" id="s110" name="s110">搜狗输入法</a> <br /><a title="谷歌输入法" href="http://www.google.com/ime/pinyin" id="kiuo" name="kiuo">谷歌输入法</a> </p>
<h3>股票网银</h3>
<h3>文字处理</h3>
<p><a title="WPS" href="http://www.wps.cn" id="jo1k" name="jo1k">WPS</a> <br />[<a title="Office" href="http://office.microsoft.com/zh-cn/downloads/?CTT=97" id="f8.g" name="f8.g">Office</a>] <br /><a title="Adobe Reader" href="http://get.adobe.com/reader" id="a2ib" name="a2ib">Adobe Reader</a> <br />[<a title="PDF转换器" href="http://www.soliddocuments.com/zh/products.htm?product=SolidConverterPDF" id="nvve" name="nvve">PDF转换器</a>] <br />[<a title="文本比较" href="http://www.ultraedit.com/products/ultracompare.html" id="o48l" name="o48l">文本比较</a>] <br />[<a title="Editplus" href="http://www.editplus.com" id="vtru" name="vtru">Editplus</a>] <br />[<a title="UltraEdit" href="http://www.ultraedit.com" id="bkp_" name="bkp_">UltraEdit</a>] <br /><a title="Zoundry Raven" href="http://www.zoundryraven.com" id="hijo" name="hijo">Zoundry Raven</a> </p>
<h3>翻 译</h3>
<p><a title="灵格斯词霸" href="http://www.lingoes.cn" id="fwhc" name="fwhc">灵格斯词霸</a> <br /><a title="有道词典" href="http://dict.youdao.com" id="t99b" name="t99b">有道词典</a> </p>
<h3>压缩刻录</h3>
<p>[<a title="Daemon" href="http://www.daemon-tools.cc/home" id="cjha" name="cjha">Daemon</a>] <br /><a title="7-zip" href="http://www.7-zip.org" id="g.lt" name="g.lt">7-zip</a> <br />7-zip图标界面美化工具 <br />[<a title="Winrar" href="http://www.rarsoft.com" id="qqku" name="qqku">Winrar</a>] </p>
<p></p>
<h3>系统工具</h3>
<p>[<a title="Windows优化大师" href="http://www.youhua.com" id="bix9" name="bix9">Windows优化大师</a>] <br />一键GHOST还原 <br /><a title="磁盘清理" href="http://www.iobit.com/iobitsmartdefrag.html" id="m2hz" name="m2hz">磁盘清理</a> <br /><a title="Fence" href="http://www.stardock.com/products/fences/downloads.asp" id="tkfd" name="tkfd">Fence</a> <br /><a title="文件恢复" href="http://www.ontrackdatarecovery.com/file-recovery-software/" id="fedc" name="fedc">文件恢复</a> </p>
<h3>编程开发</h3>
<p>[<a title="VS 2008" href="http://www.microsoft.com/visualstudio/en-us/download" id="ejxw" name="ejxw">VS 2008</a>] <br /><a title="Eclipse" href="http://www.eclipse.org" id="bxmn" name="bxmn">Eclipse</a> <br /><a title="Netbeans" href="http://www.netbeans.org" id="f7u6" name="f7u6">Netbeans</a> <br /><a title="Cfree" href="http://www.programarts.com" id="cj7p" name="cj7p">Cfree</a> <br /><a title="Adobe Dreamweaver" href="http://www.adobe.com/products/dreamweaver/" id="zp5o" name="zp5o">Adobe Dreamweaver</a> <br /><a title="phpMyAdmin" href="http://www.phpmyadmin.net" id="csb." name="csb.">phpMyAdmin</a> <br /><a title="JDK" href="http://java.sun.com/javase/downloads/index.jsp" id="rgis" name="rgis">JDK</a> <br /><a title="Apache" href="http://www.apache.org" id="huwn" name="huwn">Apache</a> <br /><a title="Tomcat" href="http://www.apache.org" id="q.5_" name="q.5_">Tomcat</a> <br />建站集成软件包 <br /><a title="Topcoder" href="http://www.topcoder.com" id="dxfu" name="dxfu">Topcoder</a> <br /><a title="RadASM" href="http://www.oby.ro/rad_asm/" id="lz8n" name="lz8n">RadASM</a> </p>
<h3>数码</h3>
<p><a title="诺基亚PC套件" href="http://www.nokia.com.cn/get-support-and-software/software/nokia-pc-suites" id="vbpd" name="vbpd">诺基亚PC套件</a> </p>
<p></p>
<h3>邮件</h3>
<p><a title="Foxmail" href="http://www.foxmail.com.cn/" id="k8ph" name="k8ph">Foxmail</a> <br /><a title="Gmail Notifier" href="http://toolbar.google.com/gmail-helper/notifier_windows.html" id="vpv8" name="vpv8">Gmail Notifier</a> </p>
<h3>学习</h3>
<p><a title="金山打字通" href="http://typeeasy.kingsoft.com" id="gs4b" name="gs4b">金山打字通</a> </p>
<p></p>
<h3>网络应用</h3>
<p>远程协助 <br /><a title="Dropbox" href="https://www.dropbox.com" id="cs:7" name="cs:7">Dropbox</a> <br />dropboxen <br /><a title="CuteFTP" href="http://www.cuteftp.com" id="o81f" name="o81f">CuteFTP</a> </p>
<h3>代理软件</h3>
<p>自-由-门 <br />逍-遥-游 <br />Dynapass <br /><a title="GappProxy" href="http://code.google.com/p/gappproxy/downloads/list" id="hejz" name="hejz">GappProxy</a> <br /><a title="无界" href="http://www.wujie.net" id="x1jb" name="x1jb">无-界</a> <br /><a title="Puff" href="http://www.erights.net/" id="my9a" name="my9a">Puff</a> <br />[<a title="Hotspot Shield Launch" href="http://www.hotspotshield.com" id="luyv" name="luyv">Hotspot Shield Launch</a>] </p>
<h3>其它</h3>
</p>
<p xmlns="" class="zoundry_raven_tags">  <!-- Tag links generated by Zoundry Raven. Do not manually edit. http://www.zoundryraven.com -->  <span class="ztags"><span class="ztagspace">Technorati</span> : <a href="http://www.technorati.com/tag/%E6%8E%A8%E4%BB%8B" class="ztag" rel="tag">推介</a>, <a href="http://www.technorati.com/tag/%E8%A3%85%E6%9C%BA" class="ztag" rel="tag">装机</a>, <a href="http://www.technorati.com/tag/%E8%BD%AF%E4%BB%B6" class="ztag" rel="tag">软件</a></span>  <br /> <span class="ztags"><span class="ztagspace">Del.icio.us</span> : <a href="http://del.icio.us/tag/%E6%8E%A8%E4%BB%8B" class="ztag" rel="tag">推介</a>, <a href="http://del.icio.us/tag/%E8%A3%85%E6%9C%BA" class="ztag" rel="tag">装机</a>, <a href="http://del.icio.us/tag/%E8%BD%AF%E4%BB%B6" class="ztag" rel="tag">软件</a></span>  <br /> <span class="ztags"><span class="ztagspace">Zooomr</span> : <a href="http://www.zooomr.com/search/photos/?q=%E6%8E%A8%E4%BB%8B" class="ztag" rel="tag">推介</a>, <a href="http://www.zooomr.com/search/photos/?q=%E8%A3%85%E6%9C%BA" class="ztag" rel="tag">装机</a>, <a href="http://www.zooomr.com/search/photos/?q=%E8%BD%AF%E4%BB%B6" class="ztag" rel="tag">软件</a></span>  <br /> <span class="ztags"><span class="ztagspace">Flickr</span> : <a href="http://www.flickr.com/photos/tags/%E6%8E%A8%E4%BB%8B" class="ztag" rel="tag">推介</a>, <a href="http://www.flickr.com/photos/tags/%E8%A3%85%E6%9C%BA" class="ztag" rel="tag">装机</a>, <a href="http://www.flickr.com/photos/tags/%E8%BD%AF%E4%BB%B6" class="ztag" rel="tag">软件</a></span> </p>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://viva-villa.org/wordpress/">MadFroG</a></p>
<p><strong>本文链接地址:</strong> <a href="http://viva-villa.org/2010/06/%e8%a3%85%e6%9c%ba%e5%b8%b8%e7%94%a8%e8%bd%af%e4%bb%b6.html">装机常用软件</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://viva-villa.org/2010/06/%e8%a3%85%e6%9c%ba%e5%b8%b8%e7%94%a8%e8%bd%af%e4%bb%b6.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>关于dropbox</title>
		<link>http://viva-villa.org/2010/05/%e5%85%b3%e4%ba%8edropbox.html</link>
		<comments>http://viva-villa.org/2010/05/%e5%85%b3%e4%ba%8edropbox.html#comments</comments>
		<pubDate>Mon, 10 May 2010 15:44:05 +0000</pubDate>
		<dc:creator>wxl.name</dc:creator>
				<category><![CDATA[心情随笔]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[墙]]></category>
		<category><![CDATA[访问]]></category>

		<guid isPermaLink="false">http://viva-villa.org/2010/05/%e5%85%b3%e4%ba%8edropbox.html</guid>
		<description><![CDATA[<h2>一.外链无法访问</h2>
<p>众所周知，<a href="http://dl.dropbox.com">http://dl.dropbox.com</a>的外链访问方式早被封杀。</p>
<p><del>对于这种情况，可以把外链地址的dl.dropbox.com更改成</del><a href="http://dl-web.dropbox.com"><del>dl-web.dropbox.com</del></a><del>，或者ip：70.101.129.115和174.129.2.129。若博客中有大量此种外链，找一个批量[......]</del></p><p class='read-more'><a href='http://viva-villa.org/2010/05/%e5%85%b3%e4%ba%8edropbox.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<h2>一.外链无法访问</h2>
<p>众所周知，<a href="http://dl.dropbox.com">http://dl.dropbox.com</a>的外链访问方式早被封杀。</p>
<p><del>对于这种情况，可以把外链地址的dl.dropbox.com更改成</del><a href="http://dl-web.dropbox.com"><del>dl-web.dropbox.com</del></a><del>，或者ip：70.101.129.115和174.129.2.129。若博客中有大量此种外链，找一个批量替换字符串插件来替换。</del></p>
<p><del>推荐一种更好的方法：</del><a href="https://dl.dropbox.com"><del>https://dl.dropbox.com</del></a><del>，SSL(https)安全链接。</del></p>
<p><span style="COLOR: #ff0000">[更新]</span></p>
<p><span style="COLOR: #000000">以上提到的方法已失效。</span></p>
<p><span style="COLOR: #000000">新的方法：</span></p>
<p><span style="COLOR: #000000">将<a href="http://dl.dropbox.com">http://dl.dropbox.com</a>替换成<a href="http://dl.idropbox.co.cc">http://dl.idropbox.co.cc</a>。wordrpress可以用find and replacer插件批量替换。</span></p>
<h2>二.无法登录和同步</h2>
<p>今天下午（5月10日）主页无法访问，无法同步。翻|墙后了解到部分ip已经被墙：174.36.30.70，而经过尝试，174.36.30.70附近几个ip都可以正常访问。</p>
<p>可以通过修改hosts文件：在C:WINDOWSsystem32driversetchosts文件中加入174.36.30.A <a href="http://www.dropbox.com">www.dropbox.com</a>，（A由可以访问的地址代替）保存，注销，登录后可以正常使用了。</p>
<p>另：惊讶地发现淘宝上有刷dropbox空间牟利的人。兄弟们，再别给中国人丢脸了，咱都快没脸了。</p>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://viva-villa.org/wordpress/">MadFroG</a></p>
<p><strong>本文链接地址:</strong> <a href="http://viva-villa.org/2010/05/%e5%85%b3%e4%ba%8edropbox.html">关于dropbox</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://viva-villa.org/2010/05/%e5%85%b3%e4%ba%8edropbox.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>电影《女王》</title>
		<link>http://viva-villa.org/2010/05/%e7%94%b5%e5%bd%b1%e3%80%8a%e5%a5%b3%e7%8e%8b%e3%80%8b.html</link>
		<comments>http://viva-villa.org/2010/05/%e7%94%b5%e5%bd%b1%e3%80%8a%e5%a5%b3%e7%8e%8b%e3%80%8b.html#comments</comments>
		<pubDate>Fri, 30 Apr 2010 16:10:15 +0000</pubDate>
		<dc:creator>wxl.name</dc:creator>
				<category><![CDATA[音画电影]]></category>
		<category><![CDATA[The queen]]></category>
		<category><![CDATA[女王]]></category>

		<guid isPermaLink="false">http://viva-villa.org/2010/05/%e7%94%b5%e5%bd%b1%e3%80%8a%e5%a5%b3%e7%8e%8b%e3%80%8b.html</guid>
		<description><![CDATA[<h1><a href="http://movie.douban.com/subject/1866264/">The Queen</a></h1>
<p><a href="http://movie.douban.com/subject/1866264/"><img src="http://img2.douban.com/lpic/s1800120.jpg" style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; PADDING-BOTTOM: 20px; PADDING-LEFT: 0px; WIDTH: 157px; PADDING-RIGHT: 20px; FLOAT: left; HEIGHT: 217px; BORDER-TOP: 0px; BORDER-RIGHT: 0px; PADDING-TOP: 0px" height="444" width="297"/></a> 编剧: <a href="http://movie.douban.com/search/Peter Morgan">Peter Morgan</a> 导演: <a href="http://movie.douban.com/search/Stephen Frears">Stephen Frears</a> 主演: <a href="http://movie.douban.com/search/Helen Mirren">Helen Mirren</a> / <a href="http://movie.douban.com/search/Michael Sheen">Michael Sheen</a> / <a href="http://movie.douban.com/search/James Cromwell">James Cromwell</a> / <a href="http://movie.douban.com/search/Alex Jennings">Alex Jennings</a> </p>
<p>制片国家/地区: 英国 / 法国 / 意大利 官方网站: <a href="http://www.thequeenmovie.co.uk/" target="_blank" rel="nofollow">http://[......]</a></p><p class='read-more'><a href='http://viva-villa.org/2010/05/%e7%94%b5%e5%bd%b1%e3%80%8a%e5%a5%b3%e7%8e%8b%e3%80%8b.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<h1><a href="http://movie.douban.com/subject/1866264/">The Queen</a></h1>
<p><a href="http://movie.douban.com/subject/1866264/"><img src="http://img2.douban.com/lpic/s1800120.jpg" style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; PADDING-BOTTOM: 20px; PADDING-LEFT: 0px; WIDTH: 157px; PADDING-RIGHT: 20px; FLOAT: left; HEIGHT: 217px; BORDER-TOP: 0px; BORDER-RIGHT: 0px; PADDING-TOP: 0px" height="444" width="297"/></a> <span><span class="pl">编剧</span>: <a href="http://movie.douban.com/search/Peter Morgan">Peter Morgan</a></span> <br/><span><span class="pl">导演</span>: <a href="http://movie.douban.com/search/Stephen Frears">Stephen Frears</a></span> <br/><span><span class="pl">主演</span>: <a href="http://movie.douban.com/search/Helen Mirren">Helen Mirren</a> / <a href="http://movie.douban.com/search/Michael Sheen">Michael Sheen</a> / <a href="http://movie.douban.com/search/James Cromwell">James Cromwell</a> / <a href="http://movie.douban.com/search/Alex Jennings">Alex Jennings</a></span> <br/></p>
<p><span class="pl">制片国家/地区:</span> 英国 / 法国 / 意大利 <br/><span class="pl">官方网站:</span> <a href="http://www.thequeenmovie.co.uk/" target="_blank" rel="nofollow">http://www.thequeenm<wbr/>ovie.co.uk/</a> <br/><span class="pl">上映日期:</span> 2006-09-15 &gt;<a href="http://movie.douban.com/subject/1866264/releaseinfo" target="_blank">更多</a> <br/><span class="pl">语言:</span> 英语 / 法语 / 德语 <br/><span class="pl">又名:</span> 黛妃与女皇 / 英女皇 / La regina</p>
<p><br/></p>
<p>优秀的电影总能够彰显人性。</p>
<blockquote><p>英国的政体是君主立宪制。这意味着女王是国家元首和武装部队统帅，而首相则是政府首脑。</p>
<p>国家元首只是国家的象征行政首长，即理论上拥有行政权力，因此英国政府又被称为&#8221;女王陛下的政府&#8221;。但事实上，女王不能任命或罢免大臣、官员，拥有最高政治权力的人是内阁首相,后者一般由下议院多数党领袖担任。女王任命首相，之后首相再&#8221;建议&#8221;女王任命其他内阁成员。英国政府不向女王负责，而是向下议院负责，即间接地向英国选民负责。</p>
<p>女王在英国政治生活中惟一要扮演的角色，就是在议会年会开幕式上，朗读由英国首相起草的王室演讲稿。除此以外，女王在礼仪上、形式上仍然是至高无上的，她的主要工作就是出访他国，或接受外国大使的国书，参加各种各样的典礼。女王也参与到国家的司法体制中，法庭以她的名义行事。</p>
<p>按照英国国法，政府应就各项事务向女王咨询，女王则给予政府鼓励或提醒。因此，首相必须每周会见女王。一般说来，首相都把与女王的会面看得比接受下议院质询更重要，因为他向女王汇报需要更详细更坦诚。</p>
<p>另一方面，英国王室并不能一切自主，王室的一些私事也逃不过政府干预，比如戴安娜王妃车祸之事。女王曾希望把这件事情限制在&#8221;私了&#8221;范围内，但是布莱尔政府却不断介入，将此事处理成具有政治影响的全国性事件。【国际在线-世界新闻报】</p>
</blockquote>
<p>君主立宪必是妥协的结果，女王身居高位而无权可言，俨然是个傀儡。理论上拥有的权利在实际中没有兑现。</p>
<p>伊丽莎白，自小成为女王，不能做自己喜欢的事。她是个非常时髦的女人，却被关在愚昧落后的皇室体系中。热爱自己的人民，在面对煽动、眼泪营造的感动面前，喜欢将感情深藏不露的她只有无奈、妥协，尤其在戴安娜事件上：</p>
<blockquote><p>1997年，戴安娜王妃车祸身亡，举国悲痛欲绝，但是英国王室人员却对此采取了逃避疏离的态度。这种漠不关心激怒了很多英国民众。民众反王室的情绪相当高涨，紧急形势让王室陷入了严重的危机。但是，英王伊丽沙白（海伦•米伦Helen Mirren 饰）并没有出来稳定民心，而是携家人躲到了度假行宫。托尼•布莱尔（麦克•辛 Michael Sheen 饰）此时刚出任首相，面对此刻棘手的情势，必须尽快找到平衡各方利益的措施，让王室摆脱信任危机，女王重新修好与国民的关系，而自己也在当中树立权威。【戴安娜事件，即影片梗概】</p>
</blockquote>
<p>皇室就是这么一个尴尬的存在，你高贵，我喜欢；你多用我一分钱，你与我的意见相左，明天我们就可以变成民主共和制。</p>
<p><img src="http://dl.idropbox.co.cc/u/4466849/img/queen_01.jpg" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 279px; DISPLAY: inline; HEIGHT: 340px; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid" height="300" width="280"/></p>
<p><img src="http://dl.idropbox.co.cc/u/4466849/img/queen_02.jpg" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 282px; DISPLAY: inline; HEIGHT: 341px; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid" height="300" width="280"/></p>
<p><img src="http://dl.idropbox.co.cc/u/4466849/img/queen_03.jpg" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 280px; DISPLAY: inline; HEIGHT: 332px; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid" height="300" width="280"/></p>
<p><img src="http://dl.idropbox.co.cc/u/4466849/img/queen_04.jpg" style="WIDTH: 280px; DISPLAY: inline; HEIGHT: 300px" height="300" width="280"/></p>
<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://viva-villa.org/wordpress/">MadFroG</a></p>
<p><strong>本文链接地址:</strong> <a href="http://viva-villa.org/2010/05/%e7%94%b5%e5%bd%b1%e3%80%8a%e5%a5%b3%e7%8e%8b%e3%80%8b.html">电影《女王》</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://viva-villa.org/2010/05/%e7%94%b5%e5%bd%b1%e3%80%8a%e5%a5%b3%e7%8e%8b%e3%80%8b.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>俄式农夫乘法,64位整数相乘的取模</title>
		<link>http://viva-villa.org/2010/04/%e4%bf%84%e5%bc%8f%e5%86%9c%e5%a4%ab%e4%b9%98%e6%b3%9564%e4%bd%8d%e6%95%b4%e6%95%b0%e7%9b%b8%e4%b9%98%e7%9a%84%e5%8f%96%e6%a8%a1.html</link>
		<comments>http://viva-villa.org/2010/04/%e4%bf%84%e5%bc%8f%e5%86%9c%e5%a4%ab%e4%b9%98%e6%b3%9564%e4%bd%8d%e6%95%b4%e6%95%b0%e7%9b%b8%e4%b9%98%e7%9a%84%e5%8f%96%e6%a8%a1.html#comments</comments>
		<pubDate>Sun, 18 Apr 2010 08:37:05 +0000</pubDate>
		<dc:creator>wxl.name</dc:creator>
				<category><![CDATA[程序人生]]></category>
		<category><![CDATA[acm]]></category>
		<category><![CDATA[想法]]></category>
		<category><![CDATA[算法]]></category>

		<guid isPermaLink="false">http://viva-villa.org/%e4%bf%84%e5%bc%8f%e5%86%9c%e5%a4%ab%e4%b9%98%e6%b3%9564%e4%bd%8d%e6%95%b4%e6%95%b0%e7%9b%b8%e4%b9%98%e7%9a%84%e5%8f%96%e6%a8%a1/</guid>
		<description><![CDATA[<h2>问题：</h2>
<p>求 n*m % p 的值，其中0 &#60;= n,m,p &#60; 2^63。</p>
<p>大数？代码量太大，不值得，有没有更简单的方法?</p>
<h2>一种思路：</h2>
<p>俄式农夫乘法：</p>
<p>当n为偶数时： n * m=n/2 * 2m 当n为奇数时： n * m=(n-1)/2 * 2m + m</p>
<p>用位运算加速。无符号long[......]</p><p class='read-more'><a href='http://viva-villa.org/2010/04/%e4%bf%84%e5%bc%8f%e5%86%9c%e5%a4%ab%e4%b9%98%e6%b3%9564%e4%bd%8d%e6%95%b4%e6%95%b0%e7%9b%b8%e4%b9%98%e7%9a%84%e5%8f%96%e6%a8%a1.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<h2>问题：</h2>
<p>求 n*m % p 的值，其中0 &lt;= n,m,p &lt; 2^63。</p>
<p>大数？代码量太大，不值得，有没有更简单的方法?</p>
<h2>一种思路：</h2>
<p>俄式农夫乘法：</p>
<p>当n为偶数时： n * m=n/2 * 2m <br/>当n为奇数时： n * m=(n-1)/2 * 2m + m</p>
<p>用位运算加速。无符号long long防溢出。</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p38code2'); return false;">View Code</a> CPP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p382"><td class="code" id="p38code2"><pre class="cpp" style="font-family:monospace;">LL mult_mod<span style="color: #008000;">&#40;</span>LL a , LL b , LL <span style="color: #000040;">&amp;</span>amp<span style="color: #008080;">;</span>p<span style="color: #008000;">&#41;</span>        <span style="color: #008000;">&#123;</span>
&nbsp;
        <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span> a <span style="color: #000040;">&amp;</span>lt<span style="color: #008080;">;</span> b <span style="color: #008000;">&#41;</span>    a <span style="color: #000040;">^</span><span style="color: #000080;">=</span> b <span style="color: #000040;">^</span><span style="color: #000080;">=</span> a <span style="color: #000040;">^</span><span style="color: #000080;">=</span> b<span style="color: #008080;">;</span>
        <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span> b <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span> <span style="color: #008000;">&#41;</span>   <span style="color: #0000ff;">return</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
        LL t <span style="color: #000080;">=</span> mult_mod<span style="color: #008000;">&#40;</span> <span style="color: #008000;">&#40;</span>a <span style="color: #000040;">&amp;</span>lt<span style="color: #008080;">;</span><span style="color: #000040;">&amp;</span>lt<span style="color: #008080;">;</span> <span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">%</span> p , b <span style="color: #000040;">&amp;</span>gt<span style="color: #008080;">;</span><span style="color: #000040;">&amp;</span>gt<span style="color: #008080;">;</span> <span style="color: #0000dd;">1</span> , p<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
        <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span> b <span style="color: #000040;">&amp;</span>amp<span style="color: #008080;">;</span> <span style="color: #0000dd;">1</span> <span style="color: #008000;">&#41;</span>    t <span style="color: #000040;">+</span><span style="color: #000080;">=</span> a<span style="color: #008080;">;</span>
        <span style="color: #0000ff;">return</span> t <span style="color: #000040;">%</span> p<span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://viva-villa.org/wordpress/">MadFroG</a></p>
<p><strong>本文链接地址:</strong> <a href="http://viva-villa.org/2010/04/%e4%bf%84%e5%bc%8f%e5%86%9c%e5%a4%ab%e4%b9%98%e6%b3%9564%e4%bd%8d%e6%95%b4%e6%95%b0%e7%9b%b8%e4%b9%98%e7%9a%84%e5%8f%96%e6%a8%a1.html">俄式农夫乘法,64位整数相乘的取模</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://viva-villa.org/2010/04/%e4%bf%84%e5%bc%8f%e5%86%9c%e5%a4%ab%e4%b9%98%e6%b3%9564%e4%bd%8d%e6%95%b4%e6%95%b0%e7%9b%b8%e4%b9%98%e7%9a%84%e5%8f%96%e6%a8%a1.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
