<?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>[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>
<item>
    <title>《程序员》杂志算法擂台：《反转棋盘》解答</title>
    <link>http://www.kuqin.com/algorithm/20080424/7493.html</link>
    <description>一个N*M大小的棋盘，每个格子都是0或者1，N和M都是奇数。你每次可以选择反转一行或者一列，被反转的行或列的所有0变成1，所有1变成0。要求使用最少的反转次数，使得每行每列的1的个数是偶数。输入格式：从键盘输入，第一行是两个正整数N和M...</description>
    <pubDate>2008-04-24</pubDate>
    <category>算法艺术</category>
    <author>《程序员》杂志</author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>怎么样把一堆数平均分成N份</title>
    <link>http://www.kuqin.com/algorithm/20080418/6959.html</link>
    <description>把一堆数平均分成N份，保证每一份的和接近于所有数之和除以N，不要求平分以后的每份数据个数相等。这是有现实的程序设计需求的，当时是3份。首先想到要先进行排序，再依次从已排序的数列中抽取，如何进行抽取方法有很多</description>
    <pubDate>2008-04-18</pubDate>
    <category>算法艺术</category>
    <author>胡满超</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>单链表逆序输出</title>
    <link>http://www.kuqin.com/algorithm/20080418/6958.html</link>
    <description>逆序输出单链表，我用了几分钟到网上找了一下，没有找到更好的办法，如果先把链表逆序，再顺序输出时间复杂度更高。我走出大楼以后，忽然想到，是递归呀，对是递归</description>
    <pubDate>2008-04-18</pubDate>
    <category>算法艺术</category>
    <author>胡满超</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>编程之美：让CPU占用率曲线听你指挥</title>
    <link>http://www.kuqin.com/algorithm/20080418/6957.html</link>
    <description>让用户来决定Windows任务管理器的CPU占用率。程序越精简越好，计算机语言不限。例如，可以实现下面三种情况：1. CPU的占用率固定在50%，为一条直线； 2. CPU的占用率为一条直线，但是具体占用率由命令行参数决定； 3.CPU的占用率状态是一个正弦曲线。 </description>
    <pubDate>2008-04-18</pubDate>
    <category>算法艺术</category>
    <author>Fox</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>为二维数组循环赋值</title>
    <link>http://www.kuqin.com/algorithm/20080418/6956.html</link>
    <description>曾经遇到一个为二维数组循环赋值的问题，当时在网上找了一下答案，基本上都是1层大循环套4层小循环还实现的，感觉不够优雅。最近翻了一下数据结构的书，看到迷宫问题受到了一点启发，感觉同样是实现这个功能，如下代码要优雅一些</description>
    <pubDate>2008-04-18</pubDate>
    <category>算法艺术</category>
    <author>胡满超</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>迷宫最短路径问题</title>
    <link>http://www.kuqin.com/algorithm/20080418/6955.html</link>
    <description>求两点路径是一个数据结构上的典型的迷宫问题，很多数据结构的书上都有介绍，解决办法如下：从一点开始出发，向四个方向查找，每走一步，把走过的点的值+1(即本节点值+1)，防止重复行走，并把走过的点压入堆栈(表示路径)，如果遇到墙、或者已走过的点则不能前进……</description>
    <pubDate>2008-04-18</pubDate>
    <category>算法艺术</category>
    <author>胡满超</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>判断单链表是否存在环，判断两个链表是否相交问题详解</title>
    <link>http://www.kuqin.com/algorithm/20080418/6954.html</link>
    <description>有一个单链表，其中可能有一个环，也就是某个节点的next指向的是链表中在它之前的节点，这样在链表的尾部形成一环。1、如何判断一个链表是不是这类链表？2、如果链表为存在环，如果找到环的入口点？扩展：判断两个单链表是否相交，如果相交，给出相交的第一个点。</description>
    <pubDate>2008-04-18</pubDate>
    <category>算法艺术</category>
    <author>胡满超</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>编程之美：中国象棋将帅问题</title>
    <link>http://www.kuqin.com/algorithm/20080418/6943.html</link>
    <description>《中国象棋将帅问题》题目：下过中国象棋的朋友都知道，双方的“将”和“帅”相隔遥远，并且它们不能照面。在象棋残局中，许多高手能利用这一规则走出精妙的杀招。假设棋盘上只有“将”和“帅”二子</description>
    <pubDate>2008-04-18</pubDate>
    <category>算法艺术</category>
    <author>Fox</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>《编程之美》读书笔记：中国象棋将帅问题 </title>
    <link>http://www.kuqin.com/algorithm/20080417/6893.html</link>
    <description>中国象棋将帅问题描述的是：（中国象棋的基本原则）在只有双的将帅棋盘上，找出所有双方可以落子的位置，但只能使用一个变量。直觉上我们想到，只要遍历将帅所有可能的位置，去除将帅冲突的位置即可。可见，剩下的问题就在于如何使用一个变量来做二重循环的遍历。</description>
    <pubDate>2008-04-17</pubDate>
    <category>算法艺术</category>
    <author>薛笛</author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>《编程之美》读书笔记：一摞烙饼的排序问题 </title>
    <link>http://www.kuqin.com/algorithm/20080417/6892.html</link>
    <description>一摞烙饼问题描述的是让一摞随机顺序的烙饼通过单手翻转的方式进行排序，以达到这摞烙饼由小到大顺序放置在盘子上的目的，其特点是每次翻转都会导致第一个烙饼到所要反转的那个烙饼之间的顺序变为逆序。目的是求出次数最少的翻转方案以及翻转次数，是一个最优化问题</description>
    <pubDate>2008-04-17</pubDate>
    <category>算法艺术</category>
    <author>薛笛</author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>《编程之美》读书笔记：烙饼问题与搜索树</title>
    <link>http://www.kuqin.com/algorithm/20080417/6891.html</link>
    <description>烙饼问题之所以难于在多项式时间内解决的关键就在于我们无法为搜索树中的每一条边设定一个合理的权值。在这里，每条边的权值都是1，因为从上一个状态节点到下一个状态节点之需要一次翻转。所以我们不能简单地把每个节点的代价定义为翻转次数</description>
    <pubDate>2008-04-17</pubDate>
    <category>算法艺术</category>
    <author>薛笛</author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>《编程之美》读书笔记：买书折扣问题的贪心解法</title>
    <link>http://www.kuqin.com/algorithm/20080417/6890.html</link>
    <description>问题描述及分析：买书折扣问题的描述是，某出版社的《哈里波特》系列共有5卷，每本单卖都是8块钱，如果读者一次购买不同的k（k&gt;=2）卷，就可以享受不同的折扣优惠，问题是如果给定一个订单，如何计算出最大的折扣数？</description>
    <pubDate>2008-04-17</pubDate>
    <category>算法艺术</category>
    <author>薛笛</author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>《编程之美》一道题目的讨论——“求二进制数中1的个数”</title>
    <link>http://www.kuqin.com/algorithm/20080416/6796.html</link>
    <description>求二进制中1的个数。对于一个字节（8bit）的变量，求其二进制表示中&quot;1&quot;的个数，要求算法的执行效率尽可能的高。先来看看样章上给出的几个算法：解法一，每次除二，看是否为奇数，是的话就累计加一，最后这个结果就是二进制表示中1的个数。解法二……</description>
    <pubDate>2008-04-16</pubDate>
    <category>算法艺术</category>
    <author>ZelluX</author>
    <comments>BlogJava</comments>
</item>
<item>
    <title>如何产生随机数</title>
    <link>http://www.kuqin.com/algorithm/20080415/6760.html</link>
    <description>满足了上述规则后，可以保证序列周期为m。对于前面提到的关于随机性的问题，既然Xn低位的随机性比较弱，可以只取Xn的高位作为输出。高位的随机性和统计意义由a, c确定，其取值涉及统计检验，具体的也还是看3.3吧。这篇文章解决了具有统计意义的随机数的部分理论问题。</description>
    <pubDate>2008-04-15</pubDate>
    <category>算法艺术</category>
    <author>Fox</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>算法与追mm：算法导论之SSM PKU版</title>
    <link>http://www.kuqin.com/humor/20080403/5789.html</link>
    <description>老赵提问：假如一个mm对应NP完全问题,老大给个有效解法？
俺回答：呵呵，那你为什么那么贱，非要去追呢？记住：“天涯何处无芳草！” 不过如果你“非如此不可”的话，建议升级你的硬件，好好学习，好好工作，加强实力，人到中年的时候也许你能解开NP难。</description>
    <pubDate>2008-04-03</pubDate>
    <category>IT幽默</category>
    <author>eshow</author>
    <comments>北软博客</comments>
</item>

</channel>
</rss>
