<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>Robin's Log - Algorithm and Data Structure</title><link>http://blog.csdn.net/hongweijin/category/31769.aspx</link><description>酌起小酒求自醉,醉上偈身依她睡</description><dc:language>zh-CN</dc:language><lastUpdateTime>Sat, 01 Sep 2007 13:28:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>hongweijin</dc:creator><title>最大子序列和线性算法</title><link>http://blog.csdn.net/hongweijin/archive/2005/03/27/332130.aspx</link><pubDate>Sun, 27 Mar 2005 21:06:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2005/03/27/332130.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/332130.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2005/03/27/332130.aspx#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/332130.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=332130</trackback:ping><description>最大子序列和线性算法
 
问题描述：
       给定整数A1， A2，……AN （可能有负数），求I到j的最大值。
例如：
       -2, 11, -4, 13, -5, -2时答案为20
 
对于这个问题的算法有很多，当然我要说的是使用“动态规划”算法实现的程序，对于这个算法，我可以说很多人都曾经想到，但是没有想全（因为我就是这样的）。还有一点对于这个问题的动态规划的解法是非常经典的，她的时间复杂度是O(n),也就是线性的。而对于穷举法它的时间复杂度可是O(n3), 这样看来可以巨大的改进了。
&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/332130.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>最长公共子序列</title><link>http://blog.csdn.net/hongweijin/archive/2005/03/24/328652.aspx</link><pubDate>Thu, 24 Mar 2005 11:59:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2005/03/24/328652.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/328652.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2005/03/24/328652.aspx#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/328652.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=328652</trackback:ping><description>若给定序列X={x1,x2,…,xm}，则另一序列Z={z1,z2,…,zk}，是X的子序列是指存在一个严格递增下标序列{i1,i2,…,ik}使得对于所有j=1,2,…,k有：zj=xij。例如，序列Z={B，C，D，B}是序列X={A，B，C，B，D，A，B}的子序列，相应的递增下标序列为{2，3，5，7}。 •给定2个序列X和Y，当另一序列Z既是X的子序列又是Y的子序列时，称Z是序列X和Y的公共子序列。 

•给定2个序列X={x1,x2,…,xm}和Y={y1,y2,…,yn}，找出X和Y的最长公共子序列。
&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/328652.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>求出一列数中的“逆序对”</title><link>http://blog.csdn.net/hongweijin/archive/2005/03/12/317854.aspx</link><pubDate>Sat, 12 Mar 2005 10:31:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2005/03/12/317854.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/317854.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2005/03/12/317854.aspx#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/317854.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=317854</trackback:ping><description>求出一列数中的“逆序对”的个数;所谓“逆序对”就是指数的大小与其在序列中的顺序相反的一对数；例 如：中“逆序对”有,,,,这5个；要求时间复杂度为O(nlogn)；

&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/317854.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>Prim 算法代码例子</title><link>http://blog.csdn.net/hongweijin/archive/2004/12/10/211570.aspx</link><pubDate>Fri, 10 Dec 2004 11:54:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2004/12/10/211570.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/211570.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2004/12/10/211570.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/211570.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=211570</trackback:ping><description>Prim 算法代码例子&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/211570.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>对于图的遍历的四种问题</title><link>http://blog.csdn.net/hongweijin/archive/2004/12/03/203098.aspx</link><pubDate>Fri, 03 Dec 2004 11:09:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2004/12/03/203098.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/203098.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2004/12/03/203098.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/203098.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=203098</trackback:ping><description>表图和矩阵图的广度和深度遍历&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/203098.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>AES (http://www.cryptosystem.net/aes/)</title><link>http://blog.csdn.net/hongweijin/archive/2004/11/18/186397.aspx</link><pubDate>Thu, 18 Nov 2004 19:54:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2004/11/18/186397.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/186397.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2004/11/18/186397.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/186397.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=186397</trackback:ping><description>AES (http://www.cryptosystem.net/aes/)&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/186397.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>huffman树和huffman编码</title><link>http://blog.csdn.net/hongweijin/archive/2004/11/18/186347.aspx</link><pubDate>Thu, 18 Nov 2004 19:15:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2004/11/18/186347.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/186347.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2004/11/18/186347.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/186347.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=186347</trackback:ping><description>huffman树和huffman编码&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/186347.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>MD5算法研究</title><link>http://blog.csdn.net/hongweijin/archive/2004/11/15/183122.aspx</link><pubDate>Mon, 15 Nov 2004 22:07:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2004/11/15/183122.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/183122.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2004/11/15/183122.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/183122.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=183122</trackback:ping><description>MD5的全称是message-digest algorithm 5（信息-摘要算法），在90年代初由mit laboratory for computer science和rsa data security inc的ronald l. rivest开发出来，经md2、md3和md4发展而来。它的作用是让大容量信息在用数字签名软件签署私人密匙前被"压缩"成一种保密的格式（就是把一个任意长度的字节串变换成一定长的大整数）。不管是md2、md4还是md5，它们都需要获得一个随机长度的信息并产生一个128位的信息摘要。虽然这些算法的结构或多或少有些相似，但md2的设计与md4和md5完全不同，那是因为md2是为8位机器做过设计优化的，而md4和md5却是面向32位的电脑。这三个算法的描述和c语言源代码在internet rfcs 1321中有详细的描述（http://www.ietf.org/rfc/rfc1321.txt），这是一份最权威的文档，由ronald l. rivest在1992年8月向ieft提交。 

&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/183122.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>汇编中的不同进制的输入与输出操作</title><link>http://blog.csdn.net/hongweijin/archive/2004/10/27/155612.aspx</link><pubDate>Wed, 27 Oct 2004 23:59:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2004/10/27/155612.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/155612.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2004/10/27/155612.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/155612.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=155612</trackback:ping><description>从键盘上接受两个4位十六进制数，在下一行以二进制形式输出两数的异或的结果。并将此二进制数的结果中的第3到第0与第15位到第12位对调，再以十六进制输出！&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/155612.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>字符串编程，将字符串S中出现的子串T1用字符串T2替代。</title><link>http://blog.csdn.net/hongweijin/archive/2004/10/21/146141.aspx</link><pubDate>Thu, 21 Oct 2004 19:19:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2004/10/21/146141.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/146141.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2004/10/21/146141.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/146141.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=146141</trackback:ping><description>字符串编程，将字符串S中出现的子串T1用字符串T2替代。&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/146141.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>循环队列的基本函数操作</title><link>http://blog.csdn.net/hongweijin/archive/2004/10/14/136859.aspx</link><pubDate>Thu, 14 Oct 2004 19:38:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2004/10/14/136859.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/136859.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2004/10/14/136859.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/136859.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=136859</trackback:ping><description>循环队列的基本函数操作&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/136859.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>链表堆栈的基本函数</title><link>http://blog.csdn.net/hongweijin/archive/2004/10/13/134869.aspx</link><pubDate>Wed, 13 Oct 2004 14:13:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2004/10/13/134869.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/134869.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2004/10/13/134869.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/134869.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=134869</trackback:ping><description>PtrToNode	InitStack();
Status		DestroyStack( PtrToNode );
Status		StackEmpty( PtrToNode );
int		StackLength( PtrToNode );
Status		GetTop( PtrToNode, ElementType&amp; );
Status		Push( PtrToNode, ElementType );
Status		Pop( PtrToNode, ElementType&amp; );
&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/134869.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>最大子序列和问题的思考</title><link>http://blog.csdn.net/hongweijin/archive/2004/09/28/119695.aspx</link><pubDate>Tue, 28 Sep 2004 16:55:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2004/09/28/119695.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/119695.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2004/09/28/119695.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/119695.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=119695</trackback:ping><description>/*
 * 问题描述：
 * 最大的子序列和问题：给定整数A1, A2, ....AN (可能有负数)，
 *      求Ak到Aj的最大和值k--j是连续的
 *      可以给出线性的算法(看MaxSubsequenceSum2.cpp)
 */&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/119695.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>很好玩的手机通讯“算法”</title><link>http://blog.csdn.net/hongweijin/archive/2004/08/10/70752.aspx</link><pubDate>Tue, 10 Aug 2004 23:09:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2004/08/10/70752.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/70752.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2004/08/10/70752.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/70752.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=70752</trackback:ping><description>可以玩玩！可以看看!&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/70752.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>hongweijin</dc:creator><title>约瑟夫环的循环链表实现</title><link>http://blog.csdn.net/hongweijin/archive/2004/08/06/67571.aspx</link><pubDate>Fri, 06 Aug 2004 23:33:00 GMT</pubDate><guid>http://blog.csdn.net/hongweijin/archive/2004/08/06/67571.aspx</guid><wfw:comment>http://blog.csdn.net/hongweijin/comments/67571.aspx</wfw:comment><comments>http://blog.csdn.net/hongweijin/archive/2004/08/06/67571.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/hongweijin/comments/commentRss/67571.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=67571</trackback:ping><description>约瑟夫环的循环链表实现&lt;img src ="http://blog.csdn.net/hongweijin/aggbug/67571.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>