﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-雪之精灵</title><link>http://www.cppblog.com/zhuimengboy65/</link><description>从吐丝结茧到破茧而出</description><language>zh-cn</language><lastBuildDate>Tue, 14 Apr 2026 23:09:14 GMT</lastBuildDate><pubDate>Tue, 14 Apr 2026 23:09:14 GMT</pubDate><ttl>60</ttl><item><title>Ubuntu 8.04  source</title><link>http://www.cppblog.com/zhuimengboy65/archive/2010/06/12/117703.html</link><dc:creator>雪之精灵</dc:creator><author>雪之精灵</author><pubDate>Sat, 12 Jun 2010 07:43:00 GMT</pubDate><guid>http://www.cppblog.com/zhuimengboy65/archive/2010/06/12/117703.html</guid><wfw:comment>http://www.cppblog.com/zhuimengboy65/comments/117703.html</wfw:comment><comments>http://www.cppblog.com/zhuimengboy65/archive/2010/06/12/117703.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zhuimengboy65/comments/commentRss/117703.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zhuimengboy65/services/trackbacks/117703.html</trackback:ping><description><![CDATA[sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup 备份现有更新源<br>sudo gedit /etc/apt/sources.list&nbsp;&nbsp;&nbsp; 编辑更新源列表<br>从下面各服务器列表内容中选择一段替换文件中的所有内容<br>保存编辑好的文件，执行以下命令更新。<br>sudo apt-get update (修改sources.list后必须运行！)<br>sudo apt-get dist-upgrade （更新所有软件）<br>
<pre><span><span style="font-size: small;"># Shanghai Jiaotong Unverisity. APT source for Ubuntu 8.04 (hardy heron)<br>deb http://ftp.sjtu.edu.cn/ubuntu/ hardy main multiverse restricted universe<br>deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe<br>deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe<br>deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-security main multiverse restricted universe<br>deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe<br>deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy main multiverse restricted universe<br>deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe<br>deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe<br>deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-security main multiverse restricted universe<br>deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe<br><br># University of Science and Technology of China. APT source for Ubuntu 8.04 (hardy heron)<br>deb http://debian.ustc.edu.cn/ubuntu/ hardy main multiverse restricted universe<br>deb http://debian.ustc.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe<br>deb http://debian.ustc.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe<br>deb http://debian.ustc.edu.cn/ubuntu/ hardy-security main multiverse restricted universe<br>deb http://debian.ustc.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe<br>deb-src http://debian.ustc.edu.cn/ubuntu/ hardy main multiverse restricted universe<br>deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe<br>deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe<br>deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-security main multiverse restricted universe<br>deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe</span></span></pre><img src ="http://www.cppblog.com/zhuimengboy65/aggbug/117703.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zhuimengboy65/" target="_blank">雪之精灵</a> 2010-06-12 15:43 <a href="http://www.cppblog.com/zhuimengboy65/archive/2010/06/12/117703.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Suggestions for presentations about reading academic paper</title><link>http://www.cppblog.com/zhuimengboy65/archive/2010/06/04/117164.html</link><dc:creator>雪之精灵</dc:creator><author>雪之精灵</author><pubDate>Fri, 04 Jun 2010 05:16:00 GMT</pubDate><guid>http://www.cppblog.com/zhuimengboy65/archive/2010/06/04/117164.html</guid><wfw:comment>http://www.cppblog.com/zhuimengboy65/comments/117164.html</wfw:comment><comments>http://www.cppblog.com/zhuimengboy65/archive/2010/06/04/117164.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zhuimengboy65/comments/commentRss/117164.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zhuimengboy65/services/trackbacks/117164.html</trackback:ping><description><![CDATA[1. Plan to spend 30-40 minutes on the talk (10 minutes of motivation, 10 minutes explaining the main idea and results, 10 minutes summarizing the paper and providing your perspective.)<br>2. This will leave 10-15 minutes for a discussion on the topic. At the end of the discussion, we should have answered some of the following questions:<br><br>&nbsp; Why is this a significant problem?<br>&nbsp; Are there alternate approaches to solve this problem?<br>&nbsp; Can we improve the techniques proposed in the paper?<br><br><img src ="http://www.cppblog.com/zhuimengboy65/aggbug/117164.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zhuimengboy65/" target="_blank">雪之精灵</a> 2010-06-04 13:16 <a href="http://www.cppblog.com/zhuimengboy65/archive/2010/06/04/117164.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>把自1970年1月1日以来的秒数转化成年月日</title><link>http://www.cppblog.com/zhuimengboy65/archive/2010/05/29/116684.html</link><dc:creator>雪之精灵</dc:creator><author>雪之精灵</author><pubDate>Sat, 29 May 2010 05:54:00 GMT</pubDate><guid>http://www.cppblog.com/zhuimengboy65/archive/2010/05/29/116684.html</guid><wfw:comment>http://www.cppblog.com/zhuimengboy65/comments/116684.html</wfw:comment><comments>http://www.cppblog.com/zhuimengboy65/archive/2010/05/29/116684.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zhuimengboy65/comments/commentRss/116684.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zhuimengboy65/services/trackbacks/116684.html</trackback:ping><description><![CDATA[<p>#include &lt;iostream&gt;<br>using namespace std;</p>
<p>bool IsRound(int year){<br>&nbsp;if((year%100)&amp;&amp;(year%4==0)) return 1;<br>&nbsp;if((year%100==0)&amp;&amp;(year%400==0)) return 1;<br>&nbsp;return 0;<br>}<br>int main() {<br>&nbsp;int n;<br>&nbsp;int year_s[2]= {365*24*60*60, 366*24*60*60};<br>&nbsp;int month_s[2][12]={{31,28,31,30,31,30,31,31,30,31,30,31},<br>&nbsp;&nbsp;&nbsp;{31,29,31,30,31,30,31,31,30,31,30,31}};<br>&nbsp;int day_s = 24*60*60;<br>&nbsp;int hour_s = 60*60;<br>&nbsp;int minute_s = 60;</p>
<p>&nbsp;</p>
<p>&nbsp;while(cin&gt;&gt;n){<br>&nbsp;&nbsp;&nbsp; int temp = n;<br>&nbsp;&nbsp;&nbsp; int year=1970;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; int month=1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; int day=1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; int hour=0;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; int minute=0;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; int second=0;</p>
<p>&nbsp;&nbsp;&nbsp; while(temp&gt;=60){</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; int flag= IsRound(year);<br>&nbsp;&nbsp;&nbsp;&nbsp; if(temp&gt;=year_s[flag]) { year++; temp-=year_s[flag]; }<br>&nbsp;&nbsp;&nbsp;&nbsp; else if(temp&gt;=day_s){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int days = temp/day_s;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp=temp%day_s;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int i=0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int flag = IsRound(year);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int hh=31;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while(days&gt;=hh){<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; days-=month_s[flag][i++];<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; hh=month_s[flag][i];<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; month+= i;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; day+=days;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; }else if(temp&gt;=hour_s){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hour=temp/hour_s;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp%=hour_s;<br>&nbsp;&nbsp;&nbsp;&nbsp; }else if(temp&gt;=minute_s){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; minute = temp/minute_s;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp%=minute_s;<br>&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp; second = temp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout&lt;&lt;year&lt;&lt;"-";<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;if(month/10==0) cout&lt;&lt;"0";<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;cout&lt;&lt;month&lt;&lt;"-";<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;if(day/10==0) cout&lt;&lt;"0";<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;cout&lt;&lt;day&lt;&lt;" ";<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;if(hour/10==0) cout&lt;&lt;"0";<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;cout&lt;&lt;hour&lt;&lt;":";<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;if(minute/10==0) cout&lt;&lt;"0";<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;cout&lt;&lt;minute&lt;&lt;":";<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;if(second/10==0) cout&lt;&lt;"0";<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;cout&lt;&lt;second&lt;&lt;endl;<br>&nbsp;}</p>
<p><br>&nbsp;return 0;<br>}<br></p>
<img src ="http://www.cppblog.com/zhuimengboy65/aggbug/116684.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zhuimengboy65/" target="_blank">雪之精灵</a> 2010-05-29 13:54 <a href="http://www.cppblog.com/zhuimengboy65/archive/2010/05/29/116684.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Don Knuth's Home Page</title><link>http://www.cppblog.com/zhuimengboy65/archive/2009/06/20/88161.html</link><dc:creator>雪之精灵</dc:creator><author>雪之精灵</author><pubDate>Sat, 20 Jun 2009 03:33:00 GMT</pubDate><guid>http://www.cppblog.com/zhuimengboy65/archive/2009/06/20/88161.html</guid><wfw:comment>http://www.cppblog.com/zhuimengboy65/comments/88161.html</wfw:comment><comments>http://www.cppblog.com/zhuimengboy65/archive/2009/06/20/88161.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zhuimengboy65/comments/commentRss/88161.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zhuimengboy65/services/trackbacks/88161.html</trackback:ping><description><![CDATA[<a href="http://www-cs-faculty.stanford.edu/~knuth/">http://www-cs-faculty.stanford.edu/~knuth/</a>
<img src ="http://www.cppblog.com/zhuimengboy65/aggbug/88161.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zhuimengboy65/" target="_blank">雪之精灵</a> 2009-06-20 11:33 <a href="http://www.cppblog.com/zhuimengboy65/archive/2009/06/20/88161.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>思维的方法</title><link>http://www.cppblog.com/zhuimengboy65/archive/2008/12/23/70137.html</link><dc:creator>雪之精灵</dc:creator><author>雪之精灵</author><pubDate>Tue, 23 Dec 2008 03:09:00 GMT</pubDate><guid>http://www.cppblog.com/zhuimengboy65/archive/2008/12/23/70137.html</guid><wfw:comment>http://www.cppblog.com/zhuimengboy65/comments/70137.html</wfw:comment><comments>http://www.cppblog.com/zhuimengboy65/archive/2008/12/23/70137.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zhuimengboy65/comments/commentRss/70137.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zhuimengboy65/services/trackbacks/70137.html</trackback:ping><description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在这个网络时代，几乎任何知识性的问题都可以迅速搜索或请教到答案。不过，如何在已知知识之外发掘出未知知识，如何解决未知问题，那就还是要看个人的能力了，需要我们发挥自己的思维。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 用<span style="COLOR: #ff0000">优秀的思维去解未知问题</span>，这样可以成就大的学问。我们需要培养自己的思维。开始时，是有意识的去用这些思维方式；然后，发展到潜意识地去用这些方式，这就到一个境界了。<a href="http://blog.csdn.net/pongba/archive/2008/12/18/3549560.aspx">&nbsp;http://blog.csdn.net/pongba/archive/2008/12/18/3549560.aspx</a></p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 当然，我们还要<span style="COLOR: #ff0000">先养成自己解知识性问题的基本功</span>，并且要花大力气，下苦功夫。这是基础。 
<img src ="http://www.cppblog.com/zhuimengboy65/aggbug/70137.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zhuimengboy65/" target="_blank">雪之精灵</a> 2008-12-23 11:09 <a href="http://www.cppblog.com/zhuimengboy65/archive/2008/12/23/70137.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>DFS,BFS,DFS+ID</title><link>http://www.cppblog.com/zhuimengboy65/archive/2008/10/22/64723.html</link><dc:creator>雪之精灵</dc:creator><author>雪之精灵</author><pubDate>Wed, 22 Oct 2008 11:02:00 GMT</pubDate><guid>http://www.cppblog.com/zhuimengboy65/archive/2008/10/22/64723.html</guid><wfw:comment>http://www.cppblog.com/zhuimengboy65/comments/64723.html</wfw:comment><comments>http://www.cppblog.com/zhuimengboy65/archive/2008/10/22/64723.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zhuimengboy65/comments/commentRss/64723.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zhuimengboy65/services/trackbacks/64723.html</trackback:ping><description><![CDATA[In a Nutshell
Search Time Space When to use<br>&nbsp; &nbsp; DFS O(c k) O(k) Must search tree anyway, know the level the answers are on, or you aren't looking for the shallowest number. <br>&nbsp;&nbsp;&nbsp; BFS O(c d ) O(c d ) Know answers are very near top of tree, or want shallowest answer.<br>&nbsp; &nbsp; DFS+ID O(c d) O(d) Want to do BFS, don't have enough space, and can spare the time.
<br>d is the depth of the answer
k is the depth searched
d &lt;= k
Remember the ordering properties of each search. If the program needs to produce a list sorted shortest solution first (in terms of distance from the root node), use breadth first search or iterative deepening. For other orders, depth first search is the right strategy.
If there isn't enough time to search the entire tree, use the algorithm that is more likely to find the answer. If the answer is expected to be in one of the rows of nodes closest to the root, use breadth first search or iterative deepening. Conversely, if the answer is expected to be in the leaves, use the simpler depth first search.
Be sure to keep space constraints in mind. If memory is insufficient to maintain the queue for breadth first search but time is available, use iterative deepening. <br>&nbsp;&nbsp;&nbsp; quote from http://ace.delos.com/usacotext2?a=y9SZdbB6WeB&amp;S=rec <img src ="http://www.cppblog.com/zhuimengboy65/aggbug/64723.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zhuimengboy65/" target="_blank">雪之精灵</a> 2008-10-22 19:02 <a href="http://www.cppblog.com/zhuimengboy65/archive/2008/10/22/64723.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>