<?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>meiyou.org &#187; 算法</title>
	<atom:link href="http://meiyou.org/labels/algorithms/feed/" rel="self" type="application/rss+xml" />
	<link>http://meiyou.org</link>
	<description>编程共41216行</description>
	<lastBuildDate>Wed, 28 Jul 2010 13:28:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>[翻译]如何计算任意一天是星期几</title>
		<link>http://meiyou.org/2009/12/how-to-calculate-the-weekday-for-any-date/</link>
		<comments>http://meiyou.org/2009/12/how-to-calculate-the-weekday-for-any-date/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 20:36:14 +0000</pubDate>
		<dc:creator>郭一实</dc:creator>
				<category><![CDATA[他山之石]]></category>
		<category><![CDATA[大二]]></category>
		<category><![CDATA[学习记录]]></category>
		<category><![CDATA[算法]]></category>
		<category><![CDATA[编程]]></category>

		<guid isPermaLink="false">http://meiyou.org/?p=1660</guid>
		<description><![CDATA[看了一篇文章写的不错，正好有时间，就把文章翻译过来。

第一次翻译东西，可能不会太好，但，毕竟是第一次，有错误在所难免，希望通过更多这样的工作，逐渐的提高翻译的质量。

在训练自己的同时，有帮助了别人，何乐不为呢？]]></description>
			<content:encoded><![CDATA[<p>看了<a title="How To Calculate The Weekday For Any Date" href="http://5dspace-time.org/Calendar/Algorithm.html">一篇文章</a>写的不错，正好有时间，就把文章翻译过来。</p>
<p>第一次翻译东西，可能不会太好，但，毕竟是第一次，有错误在所难免，希望通过更多这样的工作，逐渐的提高翻译的质量。</p>
<p>在训练自己的同时，有帮助了别人，何乐不为呢？</p>
<p>PDF下载地址：<a href="http://meiyou.org/wp-content/uploads/2009/12/How-To-Calculate-The-Weekday-For-Any-Date_CN.pdf">How To Calculate The Weekday For Any Date_CN.pdf</a></p>
<hr />下面的公式可用来计算日历中任意一天为星期几:</p>
<p>世纪+年+月+日=星期几</p>
<p>式中的每个参数（世纪、年、月和日）通过一定计算得到相关的偏移量。而把这些偏移量相加便可得到表示该天是星期几的值。</p>
<p>为了得到正确的偏移量，让我们从最简单的情形开始讨论，也就是本世纪的第一年的第一月的第一天，既1900年1月1日，星期一。【注】</p>
<p>因为是20世纪，那我们把世纪=1<em>9</em>时的偏移量设置为0。因此我们可以忽略这个世纪的偏移量，把主要精力放在处理年+月+日上。</p>
<p>为了尽可能的简化处理1900年1月1日的过程，我们把以00结尾的年的偏移量设置为0，同理设置第一月的参数为0。因此：</p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td> </td>
<td>世纪（19）</td>
<td>+ 年（00）</td>
<td>+ 月（1）</td>
<td>+ 日（1）</td>
<td>=   星期</td>
</tr>
<tr>
<td>偏移量：</td>
<td>      0</td>
<td>+   0</td>
<td>+     0</td>
<td>+   1</td>
<td>=   Monday</td>
</tr>
</tbody>
</table>
<p>因为当1900年1月的时候，世纪、年、月的偏移量都为0，所以我们现在暂时不考虑它们对结果的影响。因此我们只需要处理一月份天数在当月的偏移量转换。</p>
<p><strong>日偏移量</strong></p>
<p>由于一月份第一天是星期一，那我们就设星期一的值为1。而当月第二天紧随其后，为星期二，那我们设星期二的值为2.。依次便可得到当月前七天的取值，如下表所示：</p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td width="12%"><strong>星期</strong></td>
<td width="12%">星期一</td>
<td width="12%">星期二</td>
<td width="12%">星期三</td>
<td width="12%">星期四</td>
<td width="11%">星期五</td>
<td width="11%">星期六</td>
<td width="11%">星期天</td>
</tr>
<tr>
<td width="12%"><strong>数值</strong></td>
<td width="12%">1</td>
<td width="12%">2</td>
<td width="12%">3</td>
<td width="12%">4</td>
<td width="11%">5</td>
<td width="11%">6</td>
<td width="11%">7</td>
</tr>
</tbody>
</table>
<p>【表】日偏移量</p>
<p>1月7号是第7天，而7表示星期日。那1月8号呢？在日历表中我们可以注意到，任何月的8号都和1号是同一星期，同样的还有15号、22号和29号。因此，如果我们让1月8号减去一个星期（也就是7天），我们便得到和1号一样的星期，既星期一。1月8号因此是星期一。</p>
<p>这种让8号、15号、22号、29号等减去一个星期以便得到一个小于或等于7的过程被称之为取模。而在计算机语言中一般用%来表示取模。20 % 7的值即为20除以7所得的余数。20 / 7 = 2 余6，既20 % 7 = 6.。因此20号和6号是同一星期。</p>
<p>但1月28日在 28 % 7 = 0。如何表示“星期零”呢？不错，那就是星期日。虽然我们之前设星期日的值为7，但 7 % 7 = 0，因此我们修改七天的取值，如下表所示：</p>
<table border="1" cellspacing="0" cellpadding="0" width="578">
<tbody>
<tr>
<td width="74" valign="top"><strong>星期</strong></td>
<td width="74" valign="top">星期天</td>
<td width="74" valign="top">星期一</td>
<td width="74" valign="top">星期二</td>
<td width="74" valign="top">星期三</td>
<td width="74" valign="top">星期四</td>
<td width="68" valign="top">星期五</td>
<td width="68" valign="top">星期六</td>
</tr>
<tr>
<td width="74" valign="top"><strong>数值</strong></td>
<td width="74" valign="top">0</td>
<td width="74" valign="top">1</td>
<td width="74" valign="top">2</td>
<td width="74" valign="top">3</td>
<td width="74" valign="top">4</td>
<td width="68" valign="top">5</td>
<td width="68" valign="top">6</td>
</tr>
</tbody>
</table>
<p>【表】修改后的日偏移量</p>
<p>至此，我们已经可以计算出一月份任何一天为星期几。下面我们来计算月偏移量。</p>
<p><strong>月偏移量</strong></p>
<p>一月份是第一个月，因此我们设一月份的偏移量为0。一月份有31天，而31号是 31 % 7 = 3 = 星期三。当1月1号为星期一，那2月1号必为星期四。二月份的偏移量就等于：0（一月份偏移量）+ 31 % 7 = 3(一月份的“剩余天数”)。0 + 3 = 3。因此便知2月2号将会是3（二月份的月偏移量） + 2（日偏移量） = 5 （星期五）。</p>
<p>二月份有28天（非闰年情况下）。28 % 7 = 0。2月28号将会是 3（二月份的月偏移量） + 0 （ 28 % 7 ）= 3 = 星期三。当2月1号为星期四，非闰年情况下3月1号必为星期四。同理，三月份的偏移量就等于 3（二月份的月偏移量）+ 28 % 7 = 0（二月份的“剩余天数”），既 3 + 0 = 3。因此也可知3月12号将会是3（三月份的月偏移量）+ 12（日偏移量） = 15 % 7 = 1（星期一）。</p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td width="20%"><strong>月份</strong></td>
<td width="20%"><strong>偏移量</strong></td>
<td width="20%"><strong>天数</strong></td>
<td width="20%"><strong>天数%7</strong></td>
<td width="20%"><strong>加入下月的偏移量</strong></td>
</tr>
<tr>
<td width="20%">一月</td>
<td width="20%">0</td>
<td width="20%">31</td>
<td width="20%">3</td>
<td width="20%">+3</td>
</tr>
<tr>
<td width="20%">二月</td>
<td width="20%">3 (0+3)</td>
<td width="20%">28</td>
<td width="20%">0</td>
<td width="20%">+0</td>
</tr>
<tr>
<td width="20%">三月</td>
<td width="20%">3 (3+0)</td>
<td width="20%">31</td>
<td width="20%">3</td>
<td width="20%">+3</td>
</tr>
<tr>
<td width="20%">四月</td>
<td width="20%">6 (3+3)</td>
<td width="20%">30</td>
<td width="20%">2</td>
<td width="20%">+2</td>
</tr>
<tr>
<td width="20%">五月</td>
<td width="20%">1 (6+2=8,%7)</td>
<td width="20%">31</td>
<td width="20%">3</td>
<td width="20%">+3</td>
</tr>
<tr>
<td width="20%">六月</td>
<td width="20%">4 (1+3)</td>
<td width="20%">30</td>
<td width="20%">2</td>
<td width="20%">+2</td>
</tr>
<tr>
<td width="20%">七月</td>
<td width="20%">6 (4+2)</td>
<td width="20%">31</td>
<td width="20%">3</td>
<td width="20%">+3</td>
</tr>
<tr>
<td width="20%">八月</td>
<td width="20%">2 (6+3=9, %7)</td>
<td width="20%">31</td>
<td width="20%">3</td>
<td width="20%">+3</td>
</tr>
<tr>
<td width="20%">九月</td>
<td width="20%">5 (2+3)</td>
<td width="20%">30</td>
<td width="20%">2</td>
<td width="20%">+2</td>
</tr>
<tr>
<td width="20%">十月</td>
<td width="20%">0 (5+2=7, %7)</td>
<td width="20%">31</td>
<td width="20%">3</td>
<td width="20%">+3</td>
</tr>
<tr>
<td width="20%">十一月</td>
<td width="20%">3 (0+3)</td>
<td width="20%">30</td>
<td width="20%">2</td>
<td width="20%">+2</td>
</tr>
<tr>
<td width="20%">十二月</td>
<td width="20%">5 (3+2)</td>
<td width="20%">31</td>
<td width="20%">3</td>
<td width="20%">+3</td>
</tr>
</tbody>
</table>
<p>【表】月偏移量计算步骤</p>
<p>为便于计算相关星期，整理的月偏移量如下所示：</p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td width="13%"><strong>月份</strong></td>
<td width="7%">一月</td>
<td width="7%">二月</td>
<td width="7%">三月</td>
<td width="7%">四月</td>
<td width="7%">五月</td>
<td width="7%">六月</td>
<td width="7%">七月</td>
<td width="7%">八月</td>
<td width="7%">九月</td>
<td width="7%">十月</td>
<td width="7%">十一月</td>
<td width="7%">十二月</td>
</tr>
<tr>
<td width="13%"><strong>偏移量</strong></td>
<td width="7%">0</td>
<td width="7%">3</td>
<td width="7%">3</td>
<td width="7%">6</td>
<td width="7%">1</td>
<td width="7%">4</td>
<td width="7%">6</td>
<td width="7%">2</td>
<td width="7%">5</td>
<td width="7%">0</td>
<td width="7%">3</td>
<td width="7%">5</td>
</tr>
</tbody>
</table>
<p>【表】12个月的月偏移量</p>
<p><strong>年偏移量</strong></p>
<p>十二月份的月偏移量是5，而十二月份有31天。31 % 7 = 3。5（十二月份的月偏移量） + 3（十二月份的“剩余天数”） = 8。8 % 7 = 1。既次年一月份便有了一个值为1的偏移量。因此，如果某年的1月1号为星期一，同时该年不是闰年，那么次年的1月1号便会为：365 % 7 = 1（次年的年偏移量） + 0（一月份的月偏移量）+ 1（日偏移量） = 2（星期二）。</p>
<p>如果某年的前一年不是闰年的话，那么该年的同一天将会比前一年晚一个“星期”。00年，既1900年被设定年偏移量为0。01年因此会被设定偏移量为1，02、03和04年也会被设定偏移量为2、3和4.。但在闰年的二月份将会有29天。我们为此将会给闰年多加1个年偏移量。当计算处在闰年一月份或者二月份的年偏移量时，我们必须从该年的年偏移量中减去1.，因为还没有到达闰日”。由于每4年才是闰年，因此年偏移量可以很快的通过 年 + 年 / 4获得。（记住当一个以00结尾的年并不一定是在公历中是闰年，除非它能被400整除）。</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="475"><strong>年份</strong></td>
<td width="93"><strong>偏移量</strong></td>
</tr>
<tr>
<td width="475">6, 17, 23, 28, 34, 45, 51, 56, 62, 73, 79, 84, 90</td>
<td width="93">0</td>
</tr>
<tr>
<td width="475">1, 7, 12, 18, 29, 35, 40, 46, 57, 63, 68, 74, 85, 91, 96</td>
<td width="93">1</td>
</tr>
<tr>
<td width="475">2, 13, 19, 24, 30, 41, 47, 52, 58, 69, 75, 80, 86, 97</td>
<td width="93">2</td>
</tr>
<tr>
<td width="475">3, 8, 14, 25, 31, 36, 42, 53, 59, 64, 70, 81, 87, 92, 98</td>
<td width="93">3</td>
</tr>
<tr>
<td width="475">9, 15, 20, 26, 37, 43, 48, 54, 65, 71, 76, 82, 93, 99</td>
<td width="93">4</td>
</tr>
<tr>
<td width="475">4, 10, 21, 27, 32, 38, 49, 55, 60, 66, 77, 83, 88, 94</td>
<td width="93">5</td>
</tr>
<tr>
<td width="475">5, 11, 16, 22, 33, 39, 44, 50, 61, 67, 72, 78, 89, 95</td>
<td width="93">6</td>
</tr>
</tbody>
</table>
<p>【表】年偏移量</p>
<p>现在来看一些例子：</p>
<p><strong>1999</strong><strong>年1</strong><strong>月1</strong><strong>日</strong><strong> </strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>世纪偏移量：</td>
<td>0（19世纪）</td>
</tr>
<tr>
<td>年偏移量：</td>
<td>99 + 99/4 = 99 + 24 = 123.123%7 = 4</td>
</tr>
<tr>
<td>月偏移量：</td>
<td>0（一月份）</td>
</tr>
<tr>
<td>日偏移量：</td>
<td>1</td>
</tr>
<tr>
<td>星期：</td>
<td>0 + 4 + 0 + 1 = 5 = 星期五</td>
</tr>
</tbody>
</table>
<p>因此，1999年1月1日是星期五。</p>
<p><strong>1920</strong><strong>年2</strong><strong>月14</strong><strong>日</strong><strong> </strong></p>
<table border="0" cellpadding="0" width="414">
<tbody>
<tr>
<td width="95">世纪偏移量：</td>
<td width="313">0</td>
</tr>
<tr>
<td width="95">年偏移量：</td>
<td width="313">20 + 20/4 -1 (该年为闰年，且闰日未到。)</td>
</tr>
<tr>
<td width="95">月偏移量：</td>
<td width="313">20 + 5 &#8211; 1 = 24. 24%7 = 3.</td>
</tr>
<tr>
<td width="95">日偏移量：</td>
<td width="313">3</td>
</tr>
<tr>
<td width="95">星期：</td>
<td width="313">14. 14%7 = 0</td>
</tr>
<tr>
<td width="95"> </td>
<td width="313">0 + 3 + 3 + 0 = 6 = 星期六</td>
</tr>
</tbody>
</table>
<p>因此，1920年2月14日是星期六。</p>
<p><strong>世纪偏移量（现行公历 Gregorian Calendar）</strong></p>
<p>每个世纪有100年，而100年共有100 + 100/4 = 125，既125%7 = 6个偏移量。这里计算时假设每个世纪中有25个闰年的情况在公历中仅针对可以被400整除的世纪，如400、800、1200、1600、2000年等。</p>
<p>因此，由于假设1900年的世纪偏移量为0，2000年的世纪偏移量即为6，比“上世纪”早一个“星期”。</p>
<p>因为每4个世纪中的其他3个世纪并没有25个闰年（00年并非闰年的情况），它们总的相对年偏移量为127%7 = 5。</p>
<p>1900年的世纪偏移量为0（由我们假定）。</p>
<p>2000年的世纪偏移量为0 + 6 = 6 ( 0 + 125%7)。</p>
<p>2100年的世纪偏移量为0 + 6 + 5 = 11%7 = 4 ( 0 + 6 + 124 % 7 )。</p>
<p>2200年的世纪偏移量为0 + 6 + 5 + 5 = 16 %7 = 2 ( 0 + 6 + 5 + 124%7)。</p>
<p>。。。</p>
<p>其实我们得到了一个0、6、4、2循环，同时每400年循环一回。</p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td width="50%"><strong>世纪</strong></td>
<td width="50%"><strong>偏移量</strong></td>
</tr>
<tr>
<td width="50%">300, 700, 1100, 1500,1900, 等</td>
<td width="50%">0</td>
</tr>
<tr>
<td width="50%">400, 800, 1200, 1600, 2000, 等.</td>
<td width="50%">6</td>
</tr>
<tr>
<td width="50%">100, 500, 900, 1300, 1700, 等</td>
<td width="50%">4</td>
</tr>
<tr>
<td width="50%">200, 600, 1000, 1400, 1800, 等</td>
<td width="50%">2</td>
</tr>
</tbody>
</table>
<p>【表】世纪偏移量（公历）</p>
<p>一个计算公历的世纪偏移量的捷径就是（（39 – 世纪）%4）* 2。例如，1200（13世纪）的世纪偏移量为：（（39 – 12）%4）* 2 = （27 % 4） * 2 = 3 * 2 = 6。在此选用39的原因是此时这个日历只在40世纪前有效，因此39即为下一个最大的4的倍数（40）减去1的值。</p>
<p>对任意给定的世纪求解其世纪偏移量的最快方法就是找到下一个最大的4的倍数，减去1，再减去该世纪，将该值乘上2即为最后结果。例如，查找1900（20世纪）的世纪偏移量的方法就是先找到先一个最大4的倍数，既20。然后通过（（20 – 1） &#8211; 19） * 2 得到结果0，既0就是1900（20世纪）的世纪偏移量。查找2000（21世纪）的世纪偏移量的方法也大同小异，找到大于20的下一个最大4的倍数24，然后（（24 – 1） &#8211; 20 ） * 2 = 6。查找7400（75世纪）的世纪偏移量，找到大于74的下一个最大4的倍数76，通过（（76 -1 ） &#8211; 74 ）* 2 = 2。</p>
<p>我们现在已经掌握了求公历的任意一天为星期几的所有方法。如果我们可以记住12个月偏移量，那我们就可以很快的通过心算或者用一张纸计算出结果。</p>
<p>针对公历中一些日期计算的举例：</p>
<p><strong>1776</strong><strong>年7</strong><strong>月4</strong><strong>日</strong><strong> </strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>世纪偏移量：</td>
<td>((20-1)-17)*2 = 4</td>
</tr>
<tr>
<td>年偏移量：</td>
<td>76 + 76/4 = 76 + 19 = 95. 95%7 = 4</td>
</tr>
<tr>
<td>月偏移量：</td>
<td>6（七月份的月偏移量）</td>
</tr>
<tr>
<td>日偏移量：</td>
<td>4</td>
</tr>
<tr>
<td>星期：</td>
<td>4 + 4 + 6 + 4 = 18. 18 % 7 = 4 = 星期四</td>
</tr>
</tbody>
</table>
<p>因此，1776年7月4日是星期四（公历）。</p>
<p><strong>2020</strong><strong>年2</strong><strong>月14</strong><strong>日</strong><strong> </strong></p>
<table border="0" cellpadding="0" width="404">
<tbody>
<tr>
<td>世纪偏移量：</td>
<td>(((24-1)-20)*2 = 6</td>
</tr>
<tr>
<td>年偏移量：</td>
<td>20 + 20/4 = 20 + 5 = 25. 25%7 = 4</td>
</tr>
<tr>
<td> </td>
<td>(因为是闰年的1、2月份，减去1) 4 &#8211; 1 = 3</td>
</tr>
<tr>
<td>月偏移量：</td>
<td>3（二月份的月偏移量）</td>
</tr>
<tr>
<td>日偏移量：</td>
<td>14. 14 % 7 = 0</td>
</tr>
<tr>
<td>星期：</td>
<td>6 + 3 + 3 + 0 = 12. 12 % 7 = 5 = 星期五</td>
</tr>
</tbody>
</table>
<p>2020年2月14日是星期五（公历）。</p>
<p><strong>世纪偏移量（儒略历 Julian Calendar</strong><strong>）</strong></p>
<p>针对儒略历的星期几计算与针对现行公历十分相似。这里有两点区别，第一点区别就是以00结尾的年份都是闰年。因此像1700、1800、和1900年都是闰年。</p>
<p>另外一个却别就是每个世纪都有100年共100/4 = 25个润年年。相对应的儒略历世纪偏移量总是6，既 125 % 7 = 6。</p>
<p>对于儒略历来说，每个世纪都比之前的世纪早“1天”，不像在现行公历中那样会每四个世纪有个例外。</p>
<p>对于儒略历来说，1900(20世纪)的世纪偏移量为6，1800（19世纪）的世纪偏移量0，1700（18世纪）的世纪偏移量为1，等等。</p>
<p>从这种趋势总可以观察到两个事实。一个是随着世纪增加，世纪偏移量会较少。另一个是1800（19世纪）的世纪偏移量为0，同时由于 18 % 7 = 4，则必须添加3到该“世纪”使得4 + 3 = 7 同时 7 % 7 = 0。</p>
<p>因此，一个快速计算儒略历世纪偏移量的方法就是添加3到“世纪”上，再与7求模（这两步以0为基准校准所得值），然后再让7减去（用来使偏移量减少，当“世纪”增加的时候）：即，7 &#8211; （世纪 + 3 ） % 7。</p>
<p>于是，1900（20世纪）的世纪偏移量为 7 &#8211; （ 19 + 3 ） % 7 = 7 – 1 = 6。1800（19世纪）的世纪偏移量为 7- （ 18 + 3 ） % 7 = 7 – 0 = 7，即 7 % 7 = 0。1000（11世纪）的世纪偏移量为 7 &#8211; （ 10 + 3 ） % 7 = 7 – 6 = 1。</p>
<p>那么循环即为：6、5、4、3、2、1、0，同时每700年循环一回。</p>
<table border="1" cellspacing="0" cellpadding="0" width="321">
<tbody>
<tr>
<td><strong>世纪</strong></td>
<td><strong>偏移量</strong></td>
</tr>
<tr>
<td>500, 1200, 1900, 等</td>
<td>6</td>
</tr>
<tr>
<td>600, 1300, 2000, 等</td>
<td>5</td>
</tr>
<tr>
<td>00, 700, 1400, 等</td>
<td>4</td>
</tr>
<tr>
<td>100, 800, 1500, 等</td>
<td>3</td>
</tr>
<tr>
<td>200, 900, 1600, 等</td>
<td>2</td>
</tr>
<tr>
<td>300, 1000, 1700, 等</td>
<td>1</td>
</tr>
<tr>
<td>400, 1100, 1800, 等</td>
<td>0</td>
</tr>
</tbody>
</table>
<p>我们现在已经掌握了计算儒略历的任意一天星期几的所有方法。如果我们能够记住12个月偏移量，那么我们也就可以很快速的通过心算或者用一张纸计算出结果。</p>
<p>针对儒略历的一些日期计算举例：</p>
<p><strong>1776</strong><strong>年7</strong><strong>月4</strong><strong>日</strong><strong>：</strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>世纪偏移量：</td>
<td>7 &#8211; (17 + 3) % 7 = 1</td>
</tr>
<tr>
<td>年偏移量：</td>
<td>76 + 76/4 = 76 + 19 = 95. 95%7 = 4</td>
</tr>
<tr>
<td>月偏移量：</td>
<td>6（七月份的月偏移量）</td>
</tr>
<tr>
<td>日偏移量：</td>
<td>4</td>
</tr>
<tr>
<td>星期：</td>
<td>1 + 4 + 6 + 4 = 15. 15 % 7 = 1 = 星期一</td>
</tr>
</tbody>
</table>
<p>1776年7月4日是星期一（儒略历）</p>
<p><strong>2020</strong><strong>年2</strong><strong>月14</strong><strong>日</strong><strong>：</strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>世纪偏移量：</td>
<td>7 &#8211; (20 + 3) % 7 = 5</td>
</tr>
<tr>
<td>年偏移量：</td>
<td>20 + 20/4 = 20 + 5 = 25. 25%7 = 4</td>
</tr>
<tr>
<td> </td>
<td>(由于是闰年的1、2月，减去1) 4 &#8211; 1 = 3</td>
</tr>
<tr>
<td>月偏移量：</td>
<td>3（二月份的月偏移量）</td>
</tr>
<tr>
<td>日偏移量：</td>
<td>14. 14 % 7 = 0</td>
</tr>
<tr>
<td>星期：</td>
<td>5 + 3 + 3 + 0 = 11. 11 % 7 = 4 = 星期四</td>
</tr>
</tbody>
</table>
<p>2020年2月14日是星期四（儒略历）</p>
<p><strong>总结</strong></p>
<p>计算日历中任意一天是星期几的算法出奇的简单。简单的以至于熟记12个月偏移量后就可以心算或者用纸算出来。</p>
<p>就像这个程序展现出来的那样，此算法是如此简单的就可以计算出来相应的结果。</p>
<hr />
<p><small>© 郭一实 for <a href="http://meiyou.org">meiyou.org</a>, 2009. |
<a href="http://meiyou.org/2009/12/how-to-calculate-the-weekday-for-any-date/">Permalink</a> |
<a href="http://meiyou.org/2009/12/how-to-calculate-the-weekday-for-any-date/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://meiyou.org/2009/12/how-to-calculate-the-weekday-for-any-date/&title=[翻译]如何计算任意一天是星期几">del.icio.us</a>
<br/>
Post tags: <a href="http://meiyou.org/labels/sophomore/" rel="tag">大二</a>, <a href="http://meiyou.org/labels/study-note/" rel="tag">学习记录</a>, <a href="http://meiyou.org/labels/algorithms/" rel="tag">算法</a>, <a href="http://meiyou.org/labels/programming/" rel="tag">编程</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://meiyou.org/2009/12/how-to-calculate-the-weekday-for-any-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>《数据结构(C语言版)》学习记录</title>
		<link>http://meiyou.org/2009/09/data-structures-in-c/</link>
		<comments>http://meiyou.org/2009/09/data-structures-in-c/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 14:59:12 +0000</pubDate>
		<dc:creator>郭一实</dc:creator>
				<category><![CDATA[书籍学习]]></category>
		<category><![CDATA[大二]]></category>
		<category><![CDATA[学习记录]]></category>
		<category><![CDATA[数学]]></category>
		<category><![CDATA[程序设计]]></category>
		<category><![CDATA[算法]]></category>
		<category><![CDATA[编程]]></category>

		<guid isPermaLink="false">http://meiyou.org/?p=1187</guid>
		<description><![CDATA["数据结构"是计算机程序设计的重要理论技术基础,它不仅是计算机学科的核心课程,而且已成为其他理工专业的热门选修课.本书是为"数据结构"课程编写的教材,其内容选取符合教学大纲要求,并兼顾学科的广度和深度,适用面广.--本书前言]]></description>
			<content:encoded><![CDATA[<h2>阅读思路</h2>
<h3>20091201</h3>
<p>今天看的&#8221;树&#8221;,有些难,不过当看到&#8221;普通树&#8221;和二叉树之间的转换以及二叉树和森林之间的转换的时候感觉比较有意思,同时这些东西真的很有用,把复杂的东西简化抽象出来.神奇!</p>
<p>但是现在的学习进度我还是比较担心的,太慢!</p>
<h3>20091115</h3>
<p>昨天晚上做的&#8221;数据结构题集&#8221;上的题目,感觉挺有意思.</p>
<p>实现了一个基于&#8221;三元组顺序表&#8221;的矩阵相加的算法,算法的时间复杂度为O(m+n)(其中m和n代表两个矩阵的元素个数),基本思想比较简单,但是我写的代码可能比较多,比较凌乱.</p>
<h3>20091112</h3>
<p>上午背日语累了,就跑回寝室实现了一个稀疏矩阵的快速转置算法.现在比较来看还是这个快速算法比较快.</p>
<p>下午晚上就一直在看矩阵的乘法,完成了一个比较简单的乘法算法.但是那个基于&#8221;行逻辑链接的顺序表&#8221;的算法目前没有实现.</p>
<h3>20091111</h3>
<p>现在终于开始恩那个静下心来做些练习,编写一些代码,实现一些代码.</p>
<p>同时,随着难度的增加,数据结构的升级.越来越感觉可以实现的东西多了.可以完成的任务多了.挺棒!</p>
<p>比如今天就编写了一个&#8221;三元组顺序表&#8221;,用来实现普通的&#8221;稀疏矩阵的转换&#8221;.</p>
<h3>20091108</h3>
<p>今天终于完成了关于&#8221;2.3 线性表的链式表示和实现&#8221;这部分的代码,虽然是初步的实现(仅仅包含:构造函数,pop(), push(), remove(), insert()函数).但是已经相当有成就感了.因为以前实现别的东西都是用数组的方式实现的.这是第一次用指针表达的链式结构.</p>
<p>开还是要多看书,多学一些了&#8230;</p>
<h3>20091106</h3>
<p>发现我的这篇文章好久没有更新了.失败!</p>
<p>今天老师讲的是数组和广义表.讲了二维,三维及多维的数组表示,和矩阵的压缩.现在的我听到矩阵就很兴奋.因为最近一直在和矩阵打交道.因为学习OpenCV中大部分的函数都在和矩阵打交道,比如图像就是用矩阵来表示的.主要有IplImage, CvMat, CvArr等结构.</p>
<p>该学习了.要不估计期末考试够呛!</p>
<h3>20090926</h3>
<p>补充几个不错的链接,关于数据结构的:</p>
<ul>
<li><a href="http://www.jjj.de/fxt/demo/ds/">http://www.jjj.de/fxt/demo/ds/</a></li>
<li><a href="http://www.cs.auckland.ac.nz/software/AlgAnim/ds_ToC.html">http://www.cs.auckland.ac.nz/software/AlgAnim/ds_ToC.html</a></li>
<li><a href="http://academic.evergreen.edu/curricular/dsa01/dsa-resources.html">http://academic.evergreen.edu/curricular/dsa01/dsa-resources.html</a></li>
</ul>
<h3>20090925</h3>
<p>上午有底小强老师的&lt;数据结构&gt;课,这节课听了老师讲的堆栈(Stack),又了解了一些堆栈的应用.</p>
<p>其中关于数制的转换,括号匹配的检验,行编辑程序的实现是比较有趣的.现在想起以前的一些ACM题目,不由得感觉数据结构真的很有用.拓宽了自己的视野.有学习的价值.</p>
<p>分享几个关于Data Structures的站点:</p>
<ul>
<li><a href="http://academicearth.org/courses/data-structures">http://academicearth.org/courses/data-structures</a></li>
<li><a href="http://www.cse.unr.edu/~bebis/CS308/">http://www.cse.unr.edu/~bebis/CS308/</a></li>
<li><a href="http://courses.cs.vt.edu/~csonline/DataStructures/Lessons/index.html">http://courses.cs.vt.edu/~csonline/DataStructures/Lessons/index.html</a></li>
</ul>
<h2>实现完成</h2>
<ul>
<li>Stack的C++实现</li>
<li><em>10进制到任意进制的转换(未完全实现)</em></li>
<li>括号匹配的检验 / 20090926</li>
<li>行编辑程序(简易) / 20090926</li>
<li>List的C++实现(应用了template)</li>
<li>稀疏矩阵的普通转置和快速转置(20091112)</li>
</ul>
<h2>章节学习</h2>
<h3>第2章 线性表</h3>
<p style="padding-left: 30px;">20091108:(2文件, 197行, 至31页) / 2.3 线性表的链式表示和实现</p>
<h3>第3章 栈和队列</h3>
<p style="padding-left: 30px;">20090925:(4文件, 284行,至48页) / <strong>3.1 栈; 3.2 栈的应用举例;</strong></p>
<p style="padding-left: 30px;">20090926:(2文件, 98行, 至50页)</p>
<h3>第5章 数组和广义表</h3>
<p style="padding-left: 30px;">20091111:(1文件,73行, 至99页)</p>
<p style="padding-left: 30px;">20091112:(2文件,137行, 至101页)</p>
<p style="padding-left: 30px;">20091114:(1文件, 135行)</p>
<h3>第6章 树和二叉树</h3>
<p style="padding-left: 30px;">20091201:(至140页)</p>
<h2>行数统计</h2>
<h3>20091114</h3>
<p>共<strong>12</strong>文件,共<strong>924</strong>行.<em>(增加1文件,135行)</em></p>
<h3>20091112</h3>
<p>共<strong>11</strong>文件,共<strong>789</strong>行.<em>(增加2文件,137行)</em></p>
<h3>20091111</h3>
<p>共<strong>9</strong>文件,共<strong>652</strong>行.<em>(增加1文件,73行)</em></p>
<h3>20091108</h3>
<p>共<strong>8</strong>文件,共<strong>579</strong>行.<em>(增加2文件,197行)</em></p>
<h3>20090926</h3>
<p>共<strong>6</strong>文件,共<strong>382</strong>行.<em>(增加2文件,98行)</em></p>
<h3>20090925</h3>
<p>共<strong>4</strong>文件,共<strong>284</strong>行.<em>(增加4文件,284行)</em></p>
<hr />
<p><small>© 郭一实 for <a href="http://meiyou.org">meiyou.org</a>, 2009. |
<a href="http://meiyou.org/2009/09/data-structures-in-c/">Permalink</a> |
<a href="http://meiyou.org/2009/09/data-structures-in-c/#comments">2 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://meiyou.org/2009/09/data-structures-in-c/&title=《数据结构(C语言版)》学习记录">del.icio.us</a>
<br/>
Post tags: <a href="http://meiyou.org/labels/sophomore/" rel="tag">大二</a>, <a href="http://meiyou.org/labels/study-note/" rel="tag">学习记录</a>, <a href="http://meiyou.org/labels/mathematics/" rel="tag">数学</a>, <a href="http://meiyou.org/labels/object-oriented-programming/" rel="tag">程序设计</a>, <a href="http://meiyou.org/labels/algorithms/" rel="tag">算法</a>, <a href="http://meiyou.org/labels/programming/" rel="tag">编程</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://meiyou.org/2009/09/data-structures-in-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[OJ]SPOJ解题报告</title>
		<link>http://meiyou.org/2009/04/spoj/</link>
		<comments>http://meiyou.org/2009/04/spoj/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 13:56:15 +0000</pubDate>
		<dc:creator>郭一实</dc:creator>
				<category><![CDATA[解题记录]]></category>
		<category><![CDATA[竞赛]]></category>
		<category><![CDATA[算法]]></category>
		<category><![CDATA[编程]]></category>

		<guid isPermaLink="false">http://meiyou.org/?p=296</guid>
		<description><![CDATA[# 511. Easy Sorting-[较易]-对单词的简单排序-20090404-511-easy-sorting
# 3370. Mergesort-[易]-联系使用合并排序(Merge Sort)-20090404-3370-mergesort
]]></description>
			<content:encoded><![CDATA[<p><a title="Sphere Online Judge" href="https://www.spoj.pl/" target="_blank">Sphere Online Judge(SPOJ)</a></p>
<h3>已解题目列表:</h3>
<ul>
<li><a title="Problem code: LEXISORT" href="http://www.spoj.pl/problems/LEXISORT/" target="_blank">511. Easy Sorting</a>-[较易]-对单词的简单排序-<a rel="attachment wp-att-297" href="http://meiyou.org/2009/04/spoj/20090404-511-easy-sorting/">20090404-511-easy-sorting</a></li>
<li><a title="Problem code: MERGSORT" href="https://www.spoj.pl/problems/MERGSORT/" target="_blank">3370. Mergesort</a>-[易]-联系使用合并排序(Merge Sort)-<a rel="attachment wp-att-303" href="http://meiyou.org/2009/04/spoj/20090404-3370-mergesort/">20090404-3370-mergesort</a></li>
</ul>
<h3>解题心得:</h3>
<p><strong>20090404:</strong></p>
<p>纸上得来终觉浅,绝知此事要躬行.那就开始躬行吧.</p>
<hr />
<p><small>© 郭一实 for <a href="http://meiyou.org">meiyou.org</a>, 2009. |
<a href="http://meiyou.org/2009/04/spoj/">Permalink</a> |
<a href="http://meiyou.org/2009/04/spoj/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://meiyou.org/2009/04/spoj/&title=[OJ]SPOJ解题报告">del.icio.us</a>
<br/>
Post tags: <a href="http://meiyou.org/labels/tournament/" rel="tag">竞赛</a>, <a href="http://meiyou.org/labels/algorithms/" rel="tag">算法</a>, <a href="http://meiyou.org/labels/programming/" rel="tag">编程</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://meiyou.org/2009/04/spoj/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>《算法导论》学习记录(暂停更新)</title>
		<link>http://meiyou.org/2009/03/introduction-to-algorithms/</link>
		<comments>http://meiyou.org/2009/03/introduction-to-algorithms/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 14:33:29 +0000</pubDate>
		<dc:creator>郭一实</dc:creator>
				<category><![CDATA[书籍学习]]></category>
		<category><![CDATA[编程实践]]></category>
		<category><![CDATA[学习记录]]></category>
		<category><![CDATA[算法]]></category>
		<category><![CDATA[算法导论]]></category>
		<category><![CDATA[编程]]></category>

		<guid isPermaLink="false">http://meiyou.org/?p=167</guid>
		<description><![CDATA[原来为《C++ Primer》做了一个专门的日志,现在也为我的第一本购置的算法书籍建立一个专门页面用来与图书馆所借书籍的区别.从03月26号收到这本书开始,就要计划完成这本大部头了.
但是,由于很多原因,暂时收起这本书,开始专注于C#的学习.(20090416)]]></description>
			<content:encoded><![CDATA[<p>原来为《<a title="C++ Primer(中文第4版)" href="http://meiyou.org/2009/03/cpp-primer/" target="_blank">C++ Primer</a>》做了一个专门的日志,现在也为我的第一本购置的算法书籍建立一个专门页面用来与图书馆所借<a title="图书馆借的算法和数学类的书籍" href="http://meiyou.org/2009/03/arithmetic-notebook/" target="_blank">书籍</a>的区别.从03月26号收到这本书开始,就要计划完成这本大部头了.</p>
<h2>第一部分 基础知识</h2>
<h3>第1章 算法在计算中的应用</h3>
<p><strong>20090327</strong></p>
<p>今天是看这本书的第一天,把介绍算法的第一章看完了,不是很难,一共8页.很顺利完成.</p>
<h3>第2章 算法入门</h3>
<p><strong>20090329</strong></p>
<p>把第2章看了一看,这本书的确是讲的比较细致,说明的也完善,是本不错的算法书啊!</p>
<p><a rel="attachment wp-att-183" href="http://meiyou.org/2009/03/introduction-to-algorithms/20090329_insertion-sort-a/">20090329_insertion-sort-a.cpp</a>(38行)</p>
<p><strong>20090402</strong></p>
<p>把分治排序算法搞定:</p>
<p><a rel="attachment wp-att-257" href="http://meiyou.org/2009/03/introduction-to-algorithms/20090402-merge-sort-by-myself/">20090402-merge-sort-by-myself</a>(40行)</p>
<p>自己又做了一遍插入排序:</p>
<p><a rel="attachment wp-att-267" href="http://meiyou.org/2009/03/introduction-to-algorithms/20090402-insertion-sort-by-myself/">20090402-insertion-sort-by-myself</a>(28行)</p>
<p>晚上做的二分查找:</p>
<p><a rel="attachment wp-att-266" href="http://meiyou.org/2009/03/introduction-to-algorithms/20090402-binary-search/">20090402-binary-search</a>(71行)</p>
<p>Merge sort 的另一种方法:</p>
<p><a rel="attachment wp-att-270" href="http://meiyou.org/2009/03/introduction-to-algorithms/20090402-merge-sort-algorithm-with-another-array/">20090402-merge-sort-algorithm-with-another-array</a>(53行)</p>
<h2>第零部分 学习统计</h2>
<h3><strong>20090327</strong></h3>
<p>阅读章节数<strong>1</strong>,看到第<strong>8</strong>页,文件数<strong>0</strong>个,编程<strong>0</strong>行,实际用时<strong>1</strong>天.</p>
<h3><strong>20090329</strong></h3>
<p>阅读章节数<strong>2</strong>,看到第<strong>16</strong>页,文件数<strong>1</strong>个,编程<strong>38</strong>行,实际用时<strong>2</strong>天.</p>
<h3><strong>20090402</strong></h3>
<p>阅读章节数<strong>3</strong>,看到第<strong>28</strong>页,文件数<strong>5</strong>个,编程<strong>230</strong>行,实际用时<strong>3</strong>天.</p>
<h2>学习心得</h2>
<h3>20090416</h3>
<p>这几天一直没有看这本书,全都是因为参加了学校的计算机研究所的教育软件研究室.因为要学习C#,所以就没有时间来完成算法方面的学习.但是,现在仅仅是<strong>暂时</strong>搁浅.等到时机成熟一定会重新拾起.毕竟要成为一个好的,优秀的程序员.算法方面的知识是必不可少的.</p>
<p>暂时,只是暂时.</p>
<hr />
<p><small>© 郭一实 for <a href="http://meiyou.org">meiyou.org</a>, 2009. |
<a href="http://meiyou.org/2009/03/introduction-to-algorithms/">Permalink</a> |
<a href="http://meiyou.org/2009/03/introduction-to-algorithms/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://meiyou.org/2009/03/introduction-to-algorithms/&title=《算法导论》学习记录(暂停更新)">del.icio.us</a>
<br/>
Post tags: <a href="http://meiyou.org/labels/study-note/" rel="tag">学习记录</a>, <a href="http://meiyou.org/labels/algorithms/" rel="tag">算法</a>, <a href="http://meiyou.org/labels/ntroduction-to-algorithms/" rel="tag">算法导论</a>, <a href="http://meiyou.org/labels/programming/" rel="tag">编程</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://meiyou.org/2009/03/introduction-to-algorithms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>数学&amp;算法学习记录(0327更新)</title>
		<link>http://meiyou.org/2009/03/arithmetic-notebook/</link>
		<comments>http://meiyou.org/2009/03/arithmetic-notebook/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 14:24:38 +0000</pubDate>
		<dc:creator>郭一实</dc:creator>
				<category><![CDATA[成长学习]]></category>
		<category><![CDATA[数学]]></category>
		<category><![CDATA[离散数学]]></category>
		<category><![CDATA[算法]]></category>

		<guid isPermaLink="false">http://meiyou.org/?p=35</guid>
		<description><![CDATA[这个学期终于发下了图书证,和长理的图书馆接触多了才发现原来图书馆里有很多好东西,先借两本书看看吧.现在主要看的是算法和离散数学之类的书籍.<算法设计与分析基础>,<算法导论>,<离散数学及其应用>,<离散数学>,<线性代数>...各个都是经典之作.先拿那个<算法设计与分析基础>这本简单的开刀,我翻了翻这几本书,发现这些书有个共同的特点,就是前几章还有笔记翻过的痕迹,后面就很少有笔记划痕.这说明大多数人都是没有完整的看完,这同时说明,要把这几本看完是要一些毅力的.需要付出,不要强制等待回报.]]></description>
			<content:encoded><![CDATA[<p><strong><span style="color: #993300;">不知所云:</span></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;-20090312&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>这个学期终于发下了图书证,和长理的图书馆接触多了才发现原来图书馆里有很多好东西,先借两本书看看吧.现在主要看的是算法和离散数学之类的书籍.&lt;算法设计与分析基础&gt;,&lt;算法导论&gt;,&lt;离散数学及其应用&gt;,&lt;离散数学&gt;,&lt;线性代数&gt;&#8230;各个都是经典之作.先拿那个&lt;算法设计与分析基础&gt;这本简单的开刀,我翻了翻这几本书,发现这些书有个共同的特点,就是前几章还有笔记翻过的痕迹,后面就很少有笔记划痕.这说明大多数人都是没有完整的看完,这同时说明,要把这几本看完是要一些毅力的.需要付出,不要强制等待回报.</p>
<p>还是认认真真做事吧.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;-20090313&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>没有怎么看算法书,主要是没有时间今天,中午睡了老长时间,晚上就用在Java编程上了.准备明天看看有没有时间什么的,好好利用一下,分析一下问题.不过,还有一些事要完成.头疼啊.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;-20090316&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>今天把&lt;离散数学&gt;那本书看了看,感觉外国的书籍和国内的有很大区别,它们都是由应用引出定义或者某个解释,这个书籍就很好.很有趣最起码.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;-20090317&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>把&lt;线性代数&gt;加进来,其实都是数学方面的书籍,有一些共性.先前看了一些内容,没有写太多的记录,今天补进来.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;-20090323&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>把那本&lt;算法设计与分析基础&gt;还到图书馆,还是不喜欢太薄的书,从网上买了本<a title="&lt;算法导论&gt;(第二版)" href="http://www.amazon.cn/dp/bkbk621206" target="_blank">&lt;算法导论&gt;</a>,还是先把C++看完的,在从头开始算法,加上MIT的<a title="MIT:Introduction to Algorithms (SMA 5503)" href="http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-046JFall-2005/CourseHome/index.htm" target="_blank">网上教程</a>.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;-20090327&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>今天把除了新买的&lt;<a title="&lt;算法导论&gt;(第二版)" href="http://meiyou.org/2009/03/introduction-to-algorithms/" target="_blank">算法导论</a>&gt;其他的都送会了图书馆,下面要做的就是专心看我的算法了,加油!</p>
<p><strong><span style="color: #993300;">明细书单 &amp; 学习进程:</span></strong></p>
<p><strong>&lt;算法导论(原书第2版)&gt;:[<a title="&lt;算法导论&gt;(第二版)" href="http://meiyou.org/2009/03/introduction-to-algorithms/" target="_blank">link</a>]</strong></p>
<p>共八部分,35章,754页.</p>
<p><strong>&lt;线性代数(原书第七版)&gt;:</strong></p>
<p>共7章,434页.</p>
<p>&#8212;&#8212;&#8211;200903??&#8212;&#8212;&#8211;</p>
<p>看到1章,看到22页.</p>
<p>&#8212;&#8212;&#8211;20090317&#8212;&#8212;&#8211;</p>
<p><em><strong>&lt;算法设计与分析基础(中文第2版)&gt;:(20090323退还图书馆)</strong></em></p>
<p><em>共12章,409页.</em></p>
<p><em>&#8212;&#8212;&#8211;20090312&#8212;&#8212;&#8211;</em></p>
<p><em>看完第<strong>1</strong>章,看到<strong>31</strong>页.编程<strong>140</strong>行.</em></p>
<p><em>&#8212;&#8212;&#8211;20090313&#8212;&#8212;&#8211;</em></p>
<p><em>看到第<strong>2</strong>章,看到<strong>40</strong>页.编程140行.</em></p>
<p><em><strong>&lt;离散数学(原书第5版)&gt;:</strong></em></p>
<p><em>共10章,477页.</em></p>
<p><em>&#8212;&#8212;&#8211;20090316&#8212;&#8212;&#8212;</em></p>
<p><em>看到第<strong>1</strong>章,看到<strong>22</strong>页,编程<strong>31</strong>行.</em></p>
<p><em>&#8212;&#8212;&#8211;20090317&#8212;&#8212;&#8212;</em></p>
<p><em>看到第<strong>2</strong>章,看到<strong>30</strong>页,编程31行.</em></p>
<p><em><strong>&lt;离散数学及其应用(原书第五版)&gt;:</strong></em></p>
<p><em>共11章,804页.</em></p>
<p>看到<strong>1</strong>章,看到<strong>43</strong>页.</p>
<hr />
<p><small>© 郭一实 for <a href="http://meiyou.org">meiyou.org</a>, 2009. |
<a href="http://meiyou.org/2009/03/arithmetic-notebook/">Permalink</a> |
<a href="http://meiyou.org/2009/03/arithmetic-notebook/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://meiyou.org/2009/03/arithmetic-notebook/&title=数学&#038;算法学习记录(0327更新)">del.icio.us</a>
<br/>
Post tags: <a href="http://meiyou.org/labels/mathematics/" rel="tag">数学</a>, <a href="http://meiyou.org/labels/discrete-mathematics/" rel="tag">离散数学</a>, <a href="http://meiyou.org/labels/algorithms/" rel="tag">算法</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://meiyou.org/2009/03/arithmetic-notebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
