<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title>算法艺术</title>
<link>http://www.kuqin.com/algorithm/</link>
<description>挖经验 / 算法艺术</description>
<language>zh-cn</language>
<generator>Copyright &amp;copy; 2007-2008 &lt;A href=&quot;http://www.kuqin.com&quot;&gt;酷勤网&lt;/A&gt; All Rights Reserved
&lt;A href=&quot;http://www.miibeian.gov.cn/&quot; target=&quot;_blank&quot;&gt;京ICP备07011765号&lt;/A&gt;</generator>
<webmaster>kuqin.com@163.com</webmaster>
<item>
    <title>一个显示排序过程的Python脚本</title>
    <link>http://www.kuqin.com/algorithm/20090420/46903.html</link>
    <description>本文介绍一个Python脚本，其可以把排序的过程给显示出来。</description>
    <pubDate>2009-04-20</pubDate>
    <category>算法艺术</category>
    <author>秩名</author>
    <comments>酷壳</comments>
</item>
<item>
    <title>一个排序算法比较的网站</title>
    <link>http://www.kuqin.com/algorithm/20090420/46902.html</link>
    <description>本文介绍一个非常不错的排序算法的网站，，当你打开这个网站的时候，请不要因为看到很多个图片的大红叉而鄙视它。你先点击网页上方的Problem Size，选择一个尺寸，20，30，40还是50，都行……</description>
    <pubDate>2009-04-20</pubDate>
    <category>算法艺术</category>
    <author>耗子</author>
    <comments>酷壳</comments>
</item>
<item>
    <title>基于Slope One的相关歌曲推荐算法</title>
    <link>http://www.kuqin.com/algorithm/20090203/33936.html</link>
    <description>Slope one算法中有一个很重要的步骤是获取用户的打分数据，这个对很多网站都很费劲，很多用户都会听歌，但大多懒得去给歌曲打分，另外用户打分的时候会比较困惑，该打多少分呢？喜欢这首歌，是打4分还是5分呢？费劲。</description>
    <pubDate>2009-02-03</pubDate>
    <category>算法艺术</category>
    <author>超群.com</author>
    <comments>超群.com的博客</comments>
</item>
<item>
    <title>基本于匹配树的多关键词过滤算法</title>
    <link>http://www.kuqin.com/algorithm/20090102/32382.html</link>
    <description>在多关键词的匹配算法中，常用的有Aho-Corasick算法、Wu-Manber算法等，在关键词的长度较小的情况下，Aho-Corasick算法能得到比较稳定的复杂度。本文对Aho-Corasick算法作了一定的改进，在存储空间和运行效率之间得到一个比较好的平衡。</description>
    <pubDate>2009-01-02</pubDate>
    <category>算法艺术</category>
    <author>yuxh73</author>
    <comments>阿里巴巴（软件）开发者博客</comments>
</item>
<item>
    <title>算法时间复杂度分析基础</title>
    <link>http://www.kuqin.com/algorithm/20081114/26971.html</link>
    <description>算法时间复杂度分析是一个很重要的问题，任何一个程序员都应该熟练掌握其概念和基本方法，而且要善于从数学层面上探寻其本质，才能准确理解其内涵。</description>
    <pubDate>2008-11-14</pubDate>
    <category>算法艺术</category>
    <author>T2噬菌体</author>
    <comments>博客园</comments>
</item>
<item>
    <title>计算最大公约数的两种算法：辗转相除法和Stein算法</title>
    <link>http://www.kuqin.com/algorithm/20081010/21825.html</link>
    <description>欧几里德算法又称辗转相除法，用于计算两个整数a,b的最大公约数。其计算原理依赖于下面的定理： 
定理：gcd(a,b) = gcd(b,a mod b)
其算法用C++语言描述为：
int gcd(int m, int n)
{
&amp;nbsp;if (m == 0)
&amp;nbsp;&amp;nbsp;return n;
&amp;nbsp;if (n == 0)
&amp;nbsp;&amp;nbsp;return m;
&amp;nbsp;if (m &amp;lt; n)
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;int tmp = m;
</description>
    <pubDate>2008-10-10</pubDate>
    <category>算法艺术</category>
    <author>水</author>
    <comments>c++博客</comments>
</item>
<item>
    <title>我编写过的最漂亮代码——摘自《代码之美》</title>
    <link>http://www.kuqin.com/algorithm/20081005/20853.html</link>
    <description>本章将对经典Quicksort（快速排序）算法的运行时间进行全面的分析，并试图通过这个分析来说明上述观点。在第一节中，我将首先根据我自己的观点来回顾一下Quicksort，并为后面的内容打下基础。第二节的内容将是本章的重点部分。</description>
    <pubDate>2008-10-05</pubDate>
    <category>算法艺术</category>
    <author>Jon Bentley</author>
    <comments>CSDN读书社区</comments>
</item>
<item>
    <title>递归算法的复杂度</title>
    <link>http://www.kuqin.com/algorithm/20080927/20147.html</link>
    <description>动态规划本质上就是保存运算结果的递归，虽然递归算法经常会有指数级别的搜索节点，但这些节点往往重复率特别高，当保存每次运算的节点结果后，在重复节点的计算时，就可以直接使用已经保存过的结果，这样就大大提高了速度。</description>
    <pubDate>2008-09-27</pubDate>
    <category>算法艺术</category>
    <author>zhiqiang</author>
    <comments>阅微堂</comments>
</item>
<item>
    <title>Slope one：简单高效的推荐算法</title>
    <link>http://www.kuqin.com/algorithm/20080903/16387.html</link>
    <description>即将面世的，居于PHP &amp; Mysql的Slope one算法实现将会在http://code.google.com/p/openslopeone/开源出来，主要优化的是海量数据以及分布式处理</description>
    <pubDate>2008-09-03</pubDate>
    <category>算法艺术</category>
    <author>超群.com</author>
    <comments>超群.com的博客</comments>
</item>
<item>
    <title>求二进制数中1的个数</title>
    <link>http://www.kuqin.com/algorithm/20080724/12245.html</link>
    <description>对于一个字节（8bit）的变量，求其二进制表示中“1”的个数。扩展问题：给定两个正整数（二进制形式表示）A和B，问把A变为B需要改变多少位（bit）？也就是说，整数A和B的二进制表示中有多少位是不同的？</description>
    <pubDate>2008-07-24</pubDate>
    <category>算法艺术</category>
    <author>My Life</author>
    <comments>百度空间</comments>
</item>
<item>
    <title>KMP算法详解</title>
    <link>http://www.kuqin.com/algorithm/20080721/11844.html</link>
    <description>个人认为KMP是最没有必要讲的东西，因为这个东西网上能找到很多资料。但网上的讲法基本上都涉及到“移动(shift)”、“Next函数”等概念，这非常容易产生误解（至少一年半前我看这些资料学习KMP时就没搞清楚）。在这里，我换一种方法来解释KMP算法。</description>
    <pubDate>2008-07-21</pubDate>
    <category>算法艺术</category>
    <author>Matrix67</author>
    <comments>Matrix67: My Blog</comments>
</item>
<item>
    <title>经典证明：扫雷游戏是NP完全问题</title>
    <link>http://www.kuqin.com/algorithm/20080716/11436.html</link>
    <description>首先，扫雷一定是NP问题，显然可在多项式的时间里验证一个解。接下来，我们需要把一个已知的NP完全问题归约到扫雷问题上去。我们将给出一种把逻辑电路问题归约到扫雷问题的方法，这样的话我们就可以利用扫雷问题解决逻辑电路问题，从而说明逻辑电路问题不比扫雷难。</description>
    <pubDate>2008-07-16</pubDate>
    <category>算法艺术</category>
    <author>Matrix67</author>
    <comments>Matrix67: My Blog</comments>
</item>
<item>
    <title>算法问题：不可解问题(Undecidable Decision Problem) </title>
    <link>http://www.kuqin.com/algorithm/20080716/11435.html</link>
    <description>不可解问题(Undecidable Decision Problem)指的是这样一种问题：他无论如何也不可能有一个正确的算法来解决。虽然不可思议，但这种问题被证明确实是存在的。图灵在1936年提出了第一个不可解问题的实例：The Halting Problem。</description>
    <pubDate>2008-07-16</pubDate>
    <category>算法艺术</category>
    <author>matrix67</author>
    <comments>matrix67.com</comments>
</item>
<item>
    <title>算法问题：什么是P问题、NP问题和NPC问题</title>
    <link>http://www.kuqin.com/algorithm/20080716/11434.html</link>
    <description>如果把所有P类问题归为一个集合P中，把所有 NP问题划进另一个集合NP中，那么，显然有P属于NP。现在，所有对NP问题的研究都集中在一个问题上，即究竟是否有P=NP？通常所谓的“NP问题”，其实就一句话：证明或推翻P=NP。</description>
    <pubDate>2008-07-16</pubDate>
    <category>算法艺术</category>
    <author>matrix67</author>
    <comments>matrix67.com</comments>
</item>
<item>
    <title>算法趣题：不用除法，如何求n个数的最小公倍数 </title>
    <link>http://www.kuqin.com/algorithm/20080716/11412.html</link>
    <description>本文给出一种算法，该算法只需要使用加法运算和比较运算就可以求出n个数的最小公倍数：每一次操作都把当前最小的那个数加上它的初始值，直到所有数都相等为止。</description>
    <pubDate>2008-07-16</pubDate>
    <category>算法艺术</category>
    <author>Brain Storm</author>
    <comments>Matrix67: My Blog</comments>
</item>
<item>
    <title>[TimusACM][1258]程序员撞墙的问题</title>
    <link>http://www.kuqin.com/algorithm/20080706/10530.html</link>
    <description>程序员撞墙的问题题目：在午休的时候，程序员Vasechkin喜欢在他的矩形房间里闲逛。他从他工作的地方开始溜达，直到他有了再开始工作的念头才停止。我们已知当Vasechkin撞墙时，他的运动规律相当符合“入射角等于反射角”定律。并且Vasechkin走的路线是很直的线段……</description>
    <pubDate>2008-07-06</pubDate>
    <category>算法艺术</category>
    <author>Hollen Zhao</author>
    <comments>博客园</comments>
</item>
<item>
    <title>《程序员》杂志算法擂台：《支援救灾》解答</title>
    <link>http://www.kuqin.com/algorithm/20080704/10405.html</link>
    <description>军备库有两名管理员负责发放物品，为了能够尽快整队出发，官兵们将排成两条队伍，分别在两名管理员处领取物品。每名官兵在领到物品后，马上整装打包，打完包后马上到指定地点集合。已知每名官兵领取物品和整装打包的时间，请你安排一种最佳的分队和排队方案</description>
    <pubDate>2008-07-04</pubDate>
    <category>算法艺术</category>
    <author>《程序员》</author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>应用程序的性能: C# vs C/C++</title>
    <link>http://www.kuqin.com/algorithm/20080703/10335.html</link>
    <description>由于大多数 ACM 题目使用好的算法时需要的时间是很短的，所以如果用 C# 语言做题的话，基本上会发现比 C/C++ 语言慢很多，但是一般来说也不会超时，除非你使用的算法很差。关键还是算法，而不在于程序设计语言。</description>
    <pubDate>2008-07-03</pubDate>
    <category>算法艺术</category>
    <author>银河</author>
    <comments>博客园</comments>
</item>
<item>
    <title>Slope One算法的C#实现</title>
    <link>http://www.kuqin.com/algorithm/20080628/10205.html</link>
    <description>使用基于Slope One算法的推荐需要以下数据: 1. 有一组用户；2. 有一组Items；3. 用户会对其中某些项目打分表达他们的喜好Slope One算法要解决的问题是, 对某个用户, 已知道他对其中一些Item的Rating了, 向他推荐一些他还没有Rating的Items, 以增加销售机会.</description>
    <pubDate>2008-06-28</pubDate>
    <category>算法艺术</category>
    <author>kuber</author>
    <comments>博客园</comments>
</item>
<item>
    <title>Windows游戏中的NP完全问题</title>
    <link>http://www.kuqin.com/algorithm/20080615/9584.html</link>
    <description>不光扫雷，Windows自带的游戏都是NP完全的。Windows自带的游戏除了扫雷，还有空当接龙和蜘蛛纸牌。</description>
    <pubDate>2008-06-15</pubDate>
    <category>算法艺术</category>
    <author>zhiqiang</author>
    <comments>阅微堂</comments>
</item>
<item>
    <title>Windows扫雷游戏是NP完全问题</title>
    <link>http://www.kuqin.com/algorithm/20080615/9583.html</link>
    <description>NP完全问题说明如果程序要想完全正确，所费的时间最坏情况下将是指数的。不过我猜测对于大部分的扫雷的实例还是很容易的，而且NPC所用的规约实例特别大，所以编一个能较快速度解决大部分windows自带的那个高级难度的扫雷问题还是可行的</description>
    <pubDate>2008-06-15</pubDate>
    <category>算法艺术</category>
    <author>zhiqiang</author>
    <comments>阅微堂</comments>
</item>
<item>
    <title>TCS：NP-hard</title>
    <link>http://www.kuqin.com/algorithm/20080615/9582.html</link>
    <description>定理1：所有unary语言都不可能是NP-hard的(除非NP=P)。语言L是unary的，指L里的任一元素都是1n的形式。根据此定理，如果我们能找到一个NP-hard的unary的undecidable问题，就证明NP=P了定理2：Turing机停机问题是NP-hard。</description>
    <pubDate>2008-06-15</pubDate>
    <category>算法艺术</category>
    <author>zhiqiang</author>
    <comments>阅微堂</comments>
</item>
<item>
    <title>数学之美番外篇：快速排序为什么那样快</title>
    <link>http://www.kuqin.com/algorithm/20080615/9581.html</link>
    <description>排序的本质可以这样来表述：一组未排序的N个数字，它们一共有N!种重排，其中只有一种排列是满足题意的（譬如从大到小排列）。换句话说，排序问题的可能性一共有N!种。任何基于比较的排序的基本操作单元都是“比较a和b”，这就相当于猜数字游戏里面的一个问句</description>
    <pubDate>2008-06-15</pubDate>
    <category>算法艺术</category>
    <author>刘未鹏</author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>Slope One：简单高效的协同过滤算法(Collaborative Filtering) </title>
    <link>http://www.kuqin.com/algorithm/20080614/9488.html</link>
    <description>Slope One的基本概念很简单, 例子1, 用户X, Y和A都对Item1打了分. 同时用户X,Y还对Item2打了分, 用户A对Item2可能会打多少分呢?根据Slope One算法, 应该是:4 - ((5-3) + (4-3))/2 = 2.5. </description>
    <pubDate>2008-06-14</pubDate>
    <category>算法艺术</category>
    <author>kuber</author>
    <comments>博客园</comments>
</item>
<item>
    <title>Slope One 算法</title>
    <link>http://www.kuqin.com/algorithm/20080614/9487.html</link>
    <description>Slope One 算法试图同时满足这样的的 5 个目标：1. 易于实现和维护：普通工程师可以轻松解释所有的聚合数据，并且算法易于实现和测试。2. 运行时可更新的：新增一个评分项，应该对预测结果即时产生影响。3. 高效率的查询响应……</description>
    <pubDate>2008-06-14</pubDate>
    <category>算法艺术</category>
    <author>Guwendong</author>
    <comments>Beyond Search</comments>
</item>
<item>
    <title>插入排序思路与泛型版本的实现</title>
    <link>http://www.kuqin.com/algorithm/20080612/9435.html</link>
    <description>假定n是数组的长度，那么插入排序需要n-1遍。对于通用的遍i来说，插入操作从arr[0]到arr[i-1]的子列表中，并且需要平均i/2次比较。插入排序算法的平均运行时间为O(n2)。最好情况为O(n)，最坏情况为O(n2)。</description>
    <pubDate>2008-06-12</pubDate>
    <category>算法艺术</category>
    <author>Brian</author>
    <comments>BlogJava</comments>
</item>
<item>
    <title>线性筛素数方法</title>
    <link>http://www.kuqin.com/algorithm/20080612/9418.html</link>
    <description>测试：筛 [0, 200000) 范围内的素数，第一种素数筛法 15 毫秒，第二种素数筛法 0 毫秒；筛 [0, 25600000) 范围内的素数，第一种素数筛法 4828 毫秒，第二种素数筛法 1187 毫秒</description>
    <pubDate>2008-06-12</pubDate>
    <category>算法艺术</category>
    <author>oyjpart</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>爱因斯坦谜题（英文原版）The Einstein Puzzle</title>
    <link>http://www.kuqin.com/algorithm/20080609/9329.html</link>
    <description>首先根据9，得出挪威人住第一号房屋；接着根据8，得出正中间房屋的人喝牛奶；再接着：根据间接关系描述14，由于挪威人已知道是第一号房屋，所以第二号房屋的颜色是蓝色；根据4，绿色房屋在白色房屋的仅靠着的左边。所以绿色和白色应该作为一个组合来考虑。</description>
    <pubDate>2008-06-09</pubDate>
    <category>算法艺术</category>
    <author>woog</author>
    <comments>博客园</comments>
</item>
<item>
    <title>动态规划与排列组合</title>
    <link>http://www.kuqin.com/algorithm/20080609/9315.html</link>
    <description>动态规划（DP）的理解，一开始我理解为递推，但实际上这是最肤浅的理解，对于如何在特定的问题中找到递推关系毫无帮助和启发。换言之，这只是一个描述性的总结，而不是一个建设性的总结，不含方法论。做（看）了一些题目之后我开始总结怎样寻找到递推关系</description>
    <pubDate>2008-06-09</pubDate>
    <category>算法艺术</category>
    <author>刘未鹏</author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>ACM1003探讨：Hangover</title>
    <link>http://www.kuqin.com/algorithm/20080525/8913.html</link>
    <description>How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be perpendicular to the table.) </description>
    <pubDate>2008-05-25</pubDate>
    <category>算法艺术</category>
    <author>Leon916</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>ACM1001探讨：求高精度幂</title>
    <link>http://www.kuqin.com/algorithm/20080523/8847.html</link>
    <description>对数值很大、精度很高的数进行高精度计算是一类十分常见的问题。比如，对国债进行计算就是属于这类问题。现在要你解决的问题是：对一个实数R( 0.0 &lt; R &lt; 99.999 )，要求写程序精确计算 R 的 n 次方(Rn)，其中n 是整数并且 0 &lt; n &lt;= 25。</description>
    <pubDate>2008-05-23</pubDate>
    <category>算法艺术</category>
    <author>Leon916</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>acm1007探讨：DNA排序</title>
    <link>http://www.kuqin.com/algorithm/20080522/8810.html</link>
    <description> 主要用到了插入排序算法，并且参看了桶排序算法，如果大家有什么好的想法，希望能够共享一下，嘿嘿！我的代码有哪里写的不好，也请大家指教！</description>
    <pubDate>2008-05-22</pubDate>
    <category>算法艺术</category>
    <author>Leon916</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>关于阶乘的两个常见算法及一个相关面试题</title>
    <link>http://www.kuqin.com/algorithm/20080520/8699.html</link>
    <description>阶乘的概念相当简单、直接，但它的应用很广泛。在排列、组合、微积分（如泰勒级数）、概率论中都有它的身影。但我这里最想说的是（与本文主题相关），在计算机科学的教学中，阶乘与斐波那契数列一道经常被选为递归算法的素材</description>
    <pubDate>2008-05-20</pubDate>
    <category>算法艺术</category>
    <author>Anders Cui</author>
    <comments>博客园</comments>
</item>
<item>
    <title>Gzip Zlib PNG 压缩算法</title>
    <link>http://www.kuqin.com/algorithm/20080513/8445.html</link>
    <description>gzip,zlib,以及图形格式png，使用的是同一个压缩算法deflate。我们通过对gzip源码的分析来对deflate压缩算法做一个详细的说明gzip 对于要压缩的文件，首先使用lz77算法进行压缩，对得到的结果再使用huffman编码的方法进行压缩。</description>
    <pubDate>2008-05-13</pubDate>
    <category>算法艺术</category>
    <author>不详</author>
    <comments>互联网</comments>
</item>
<item>
    <title>得到第K个大的数算法研究</title>
    <link>http://www.kuqin.com/algorithm/20080513/8425.html</link>
    <description>另外一种对这种算法做了一下改进，即将数组每5个数一组进行排序，然后取得它的中位数，再对这些中位数进行排序。然后先出的轴X最比较好的，因此X的左边和右边的数总是很平均，所以平均查找速度更快。</description>
    <pubDate>2008-05-13</pubDate>
    <category>算法艺术</category>
    <author>银河使者</author>
    <comments>BlogJava</comments>
</item>
<item>
    <title>拆半查找的递归和非递归算法</title>
    <link>http://www.kuqin.com/algorithm/20080512/8371.html</link>
    <description>本文使用c语言实现拆半查找算法，并且提供递归和非递归两种方法，文中未给出相关测试情况，酷勤网不保证代码的可用新。</description>
    <pubDate>2008-05-12</pubDate>
    <category>算法艺术</category>
    <author>银河使者</author>
    <comments>博客园</comments>
</item>
<item>
    <title>棋盘覆盖问题的算法实现</title>
    <link>http://www.kuqin.com/algorithm/20080512/8369.html</link>
    <description>在一个2^k * 2^k个方格组成的棋盘中，有一个方格与其它的不同，若使用以下四种L型骨牌覆盖除这个特殊方格的其它方格，如何覆盖。将棋盘保存在一个二维数组中。骨牌号从1开始，特殊方格为0，如果是一个4 * 4的棋盘，特殊方格为(2,2)</description>
    <pubDate>2008-05-12</pubDate>
    <category>算法艺术</category>
    <author>银河使者</author>
    <comments>BlogJava</comments>
</item>
<item>
    <title>动态规划算法</title>
    <link>http://www.kuqin.com/algorithm/20080511/8343.html</link>
    <description>上世纪40年代，Richard Bellman最早使用动态规划这一概念表述通过遍历寻找最优决策解问题的求解过程。1953年，Richard Bellman将动态规划赋予现代意义，该领域被IEEE纳入系统分析和工程中。为纪念Bellman的贡献，动态规划的核心方程被命名为贝尔曼方程</description>
    <pubDate>2008-05-11</pubDate>
    <category>算法艺术</category>
    <author>Fox</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>整数划分算法原理与实现</title>
    <link>http://www.kuqin.com/algorithm/20080511/8342.html</link>
    <description>整数划分问题是将一个正整数n拆成一组数连加并等于n的形式，且这组数中的最大加数不大于n。将正整数划分成连续的正整数之和，如15可以划分成4种连续整数相加的形式。</description>
    <pubDate>2008-05-11</pubDate>
    <category>算法艺术</category>
    <author>银河使者</author>
    <comments>博客园</comments>
</item>
<item>
    <title>如何快速生成100万不重复的8位编号</title>
    <link>http://www.kuqin.com/algorithm/20080511/8321.html</link>
    <description>假设我要在10000000 - 99999999之间产生100万个不重复的随机数。可以建立一个表table1，这个表有两个字段，一个是所产生的随机数字段(int型)，另外一个也是int型字段。 使用99999999 - 10000000 =89999999 整除 1000000 = 89(舍去)。</description>
    <pubDate>2008-05-11</pubDate>
    <category>算法艺术</category>
    <author>邹建</author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>全排列算法原理和实现</title>
    <link>http://www.kuqin.com/algorithm/20080511/8320.html</link>
    <description>全排列是将一组数按一定顺序进行排列，如果这组数有n个，那么全排列数为n!个。现以{1, 2, 3, 4, 5}为例说明如何编写全排列的递归算法。递归的话如果排列的数字多了，效率可能会比较低，谁有更高效的递归和非递归算法，请加算法与数据结构QQ群 61180110。</description>
    <pubDate>2008-05-11</pubDate>
    <category>算法艺术</category>
    <author>银河使者</author>
    <comments>博客园</comments>
</item>
<item>
    <title>水波模拟算法</title>
    <link>http://www.kuqin.com/algorithm/20080509/8273.html</link>
    <description>用两个数组来模拟水池。数组大小：水池高度 * 水池宽度。其中一个数组存储水池的上一个状态，另一个用来存储当前用上一个状态正在计算的下一个状态。计算完毕，把新状态渲染出来；然后新的状态就变为“上一个状态”的水池，用它来计算更新的水池状态</description>
    <pubDate>2008-05-09</pubDate>
    <category>算法艺术</category>
    <author>信息加油站义工</author>
    <comments>博客园</comments>
</item>
<item>
    <title>不要被阶乘吓倒</title>
    <link>http://www.kuqin.com/algorithm/20080505/7874.html</link>
    <description>阶乘（Factorial）是个很有意思的函数，但是不少人都比较怕它，我们来看看两个与阶乘相关的问题：1.   给定一个整数N，那么N的阶乘N！末尾有多少个0呢？例如：N＝10，N！＝3 628 800，N！的末尾有两个0。2.   求N！的二进制表示中最低位1的位置。</description>
    <pubDate>2008-05-05</pubDate>
    <category>算法艺术</category>
    <author>智慧碰撞</author>
    <comments>微软亚洲研究院</comments>
</item>
<item>
    <title>PKU2504 Rounding Box</title>
    <link>http://www.kuqin.com/algorithm/20080504/7818.html</link>
    <description>The Archeologists of the Current Millenium (ACM) now and then discover ancient artifacts located at vertices of regular polygons. The moving sand dunes of the desert render the excavations difficult and thus once three vertices of a polygon are disco</description>
    <pubDate>2008-05-04</pubDate>
    <category>算法艺术</category>
    <author>oyjpart</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>Game theory初步</title>
    <link>http://www.kuqin.com/algorithm/20080501/7747.html</link>
    <description>游戏2 Nim游戏：有三堆石子，分别含有x1，x2和x3颗石子。两人轮流取石子，每次可以选择一堆，从这堆里取走任意多颗石子，但不能不取，取走最后一颗石子的人获胜。取走-分割游戏：这种游戏允许取走某些东西，然后将原来的一个游戏分成若干个相同的游戏。</description>
    <pubDate>2008-05-01</pubDate>
    <category>算法艺术</category>
    <author>不详</author>
    <comments>互联网</comments>
</item>
<item>
    <title>寻找必败态——一类博弈问题的快速解法</title>
    <link>http://www.kuqin.com/algorithm/20080501/7746.html</link>
    <description>此类问题一般有如下特点：1、博弈模型为两人轮流决策的非合作博弈。即两人轮流进行决策，并且两人都使用最优策略来获取胜利。2、博弈是有限的。即无论两人怎样决策，都会在有限步后决出胜负。 3、公平博弈。即两人进行决策所遵循的规则相同。</description>
    <pubDate>2008-05-01</pubDate>
    <category>算法艺术</category>
    <author>NEMan</author>
    <comments>blogchina.com</comments>
</item>
<item>
    <title>寻路算法：模仿Tower Defense Flash做了一个小游戏</title>
    <link>http://www.kuqin.com/algorithm/20080501/7745.html</link>
    <description>这个寻路算法是这样的：在16×16的方格上有一些终点，东西在格子上只能上下左右行动。每一个格子需要记录到其中一个终点的最近的路的所有方向（就像三层循环的寻路算法一样，最后给出矩阵的那个）。于是我用了宽度优先搜索和一个队列来搞定这个事情。</description>
    <pubDate>2008-05-01</pubDate>
    <category>算法艺术</category>
    <author>陈梓瀚(vczh)</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>《程序员》杂志算法擂台：《时间表达》解答</title>
    <link>http://www.kuqin.com/algorithm/20080424/7496.html</link>
    <description>程序从键盘输入多行数据，每一行为两个非负整数A和B，分别表示小时数和分钟数。如果输入的某一行为0 0，则表示输入已结束。程序输出要求：对于输入的每一行（最后的0 0行除外），输出相应的时间表达字符串，要求为上面6种句型之一。</description>
    <pubDate>2008-04-24</pubDate>
    <category>算法艺术</category>
    <author>《程序员》杂志</author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>《程序员》杂志算法擂台：《微积分习题》解答</title>
    <link>http://www.kuqin.com/algorithm/20080424/7495.html</link>
    <description>小王是大一的学生，想在寒假里强化一下微积分课程的学习，他从图书馆借了一套吉米多维奇的数学分析习题集。他决定在以后的n天里要做完上面的S道积分题。为了能够尽快地完成任务，小王强迫自己第i天至少要做ai道积分题。</description>
    <pubDate>2008-04-24</pubDate>
    <category>算法艺术</category>
    <author>《程序员》杂志</author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>《程序员》杂志算法擂台：《网友聚会》解答</title>
    <link>http://www.kuqin.com/algorithm/20080424/7494.html</link>
    <description>如果用X和Y来表示某个版主或者某个网友，那么这4类条件是：1） 我不参加，除非X和Y都参加。2） 我参加，除非X和Y都不参加。3） 如果X参加，那么我不参加，否则我参加。4） 我参加，除非X去并且Y不去。对于以上各类条件，只要确定了条件中X和Y是否参加……</description>
    <pubDate>2008-04-24</pubDate>
    <category>算法艺术</category>
    <author>《程序员》杂志</author>
    <comments>CSDN博客</comments>
</item>

</channel>
</rss>
