# Shanghai Jiaotong Unverisity. APT source for Ubuntu 8.04 (hardy heron) deb http://ftp.sjtu.edu.cn/ubuntu/ hardy main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-security main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-security main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe
# University of Science and Technology of China. APT source for Ubuntu 8.04 (hardy heron) deb http://debian.ustc.edu.cn/ubuntu/ hardy main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ hardy-security main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ hardy main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-security main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe
]]>Suggestions for presentations about reading academic paperhttp://www.shnenglu.com/zhuimengboy65/archive/2010/06/04/117164.html闆箣綺劇伒闆箣綺劇伒Fri, 04 Jun 2010 05:16:00 GMThttp://www.shnenglu.com/zhuimengboy65/archive/2010/06/04/117164.htmlhttp://www.shnenglu.com/zhuimengboy65/comments/117164.htmlhttp://www.shnenglu.com/zhuimengboy65/archive/2010/06/04/117164.html#Feedback0http://www.shnenglu.com/zhuimengboy65/comments/commentRss/117164.htmlhttp://www.shnenglu.com/zhuimengboy65/services/trackbacks/117164.html2. 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:
Why is this a significant problem? Are there alternate approaches to solve this problem? Can we improve the techniques proposed in the paper?
]]>鎶婅嚜1970騫?鏈?鏃ヤ互鏉ョ殑縐掓暟杞寲鎴愬勾鏈堟棩http://www.shnenglu.com/zhuimengboy65/archive/2010/05/29/116684.html闆箣綺劇伒闆箣綺劇伒Sat, 29 May 2010 05:54:00 GMThttp://www.shnenglu.com/zhuimengboy65/archive/2010/05/29/116684.htmlhttp://www.shnenglu.com/zhuimengboy65/comments/116684.htmlhttp://www.shnenglu.com/zhuimengboy65/archive/2010/05/29/116684.html#Feedback0http://www.shnenglu.com/zhuimengboy65/comments/commentRss/116684.htmlhttp://www.shnenglu.com/zhuimengboy65/services/trackbacks/116684.html#include <iostream> using namespace std;
bool IsRound(int year){ if((year%100)&&(year%4==0)) return 1; if((year%100==0)&&(year%400==0)) return 1; return 0; } int main() { int n; int year_s[2]= {365*24*60*60, 366*24*60*60}; int month_s[2][12]={{31,28,31,30,31,30,31,31,30,31,30,31}, {31,29,31,30,31,30,31,31,30,31,30,31}}; int day_s = 24*60*60; int hour_s = 60*60; int minute_s = 60;
while(cin>>n){ int temp = n; int year=1970; int month=1; int day=1; int hour=0; int minute=0; int second=0;
while(temp>=60){
int flag= IsRound(year); if(temp>=year_s[flag]) { year++; temp-=year_s[flag]; } else if(temp>=day_s){ int days = temp/day_s; temp=temp%day_s; int i=0; int flag = IsRound(year); int hh=31; while(days>=hh){ days-=month_s[flag][i++]; hh=month_s[flag][i]; } month+= i; day+=days;
]]>Don Knuth's Home Pagehttp://www.shnenglu.com/zhuimengboy65/archive/2009/06/20/88161.html闆箣綺劇伒闆箣綺劇伒Sat, 20 Jun 2009 03:33:00 GMThttp://www.shnenglu.com/zhuimengboy65/archive/2009/06/20/88161.htmlhttp://www.shnenglu.com/zhuimengboy65/comments/88161.htmlhttp://www.shnenglu.com/zhuimengboy65/archive/2009/06/20/88161.html#Feedback0http://www.shnenglu.com/zhuimengboy65/comments/commentRss/88161.htmlhttp://www.shnenglu.com/zhuimengboy65/services/trackbacks/88161.htmlhttp://www-cs-faculty.stanford.edu/~knuth/
]]>DFS,BFS,DFS+IDhttp://www.shnenglu.com/zhuimengboy65/archive/2008/10/22/64723.html闆箣綺劇伒闆箣綺劇伒Wed, 22 Oct 2008 11:02:00 GMThttp://www.shnenglu.com/zhuimengboy65/archive/2008/10/22/64723.htmlhttp://www.shnenglu.com/zhuimengboy65/comments/64723.htmlhttp://www.shnenglu.com/zhuimengboy65/archive/2008/10/22/64723.html#Feedback0http://www.shnenglu.com/zhuimengboy65/comments/commentRss/64723.htmlhttp://www.shnenglu.com/zhuimengboy65/services/trackbacks/64723.html 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. BFS O(c d ) O(c d ) Know answers are very near top of tree, or want shallowest answer. DFS+ID O(c d) O(d) Want to do BFS, don't have enough space, and can spare the time.
d is the depth of the answer
k is the depth searched
d <= 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. quote from http://ace.delos.com/usacotext2?a=y9SZdbB6WeB&S=rec