<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<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>毅之博客 - 算法设计</title><link>http://www.wisetoolkit.cn/</link><description>创造机会的是勇者，等待机会的是愚者！ - </description><generator>RainbowSoft Studio Z-Blog 1.8 Walle Build 91204</generator><language>zh-CN</language><copyright>Copyright 2009-2010 wisetoolkit.cn. All Rights Reserved.</copyright><pubDate>Sun, 05 Sep 2010 13:52:15 +0800</pubDate><item><title>输出菱形</title><author>a@b.com (willpower)</author><link>http://www.wisetoolkit.cn/post/27.html</link><pubDate>Fri, 02 Apr 2010 23:30:47 +0800</pubDate><guid>http://www.wisetoolkit.cn/post/27.html</guid><description><![CDATA[<p>有人问如何输出菱形，这个是基础的基础，与数列有关<br /><img title="" alt="" onload="ResizeImage(this,520)" src="http://www.wisetoolkit.cn/upload/diamond-.gif" /><br />代码如下：<br />&lt;script type=&quot;text/javascript&quot;&gt;<br />function DrawDiamond()<br />{<br />&nbsp;var n=window.prompt(&quot;请输入菱形的阶数&quot;,5);<br />...</p>]]></description><category>算法设计</category><comments>http://www.wisetoolkit.cn/post/27.html#comment</comments><wfw:comment>http://www.wisetoolkit.cn/</wfw:comment><wfw:commentRss>http://www.wisetoolkit.cn/feed.asp?cmt=27</wfw:commentRss><trackback:ping>http://www.wisetoolkit.cn/cmd.asp?act=tb&amp;id=27&amp;key=5ab49c37</trackback:ping></item><item><title>由打印正三角形引发的探讨</title><author>a@b.com (willpower)</author><link>http://www.wisetoolkit.cn/post/25.html</link><pubDate>Wed, 17 Mar 2010 10:18:29 +0800</pubDate><guid>http://www.wisetoolkit.cn/post/25.html</guid><description><![CDATA[<p>前些天有个群里的人问如何打印一个正三角形,打出的图形类拟下面的<br /><img alt="" src="http://www.wisetoolkit.cn/upload/tri.JPG" /><br /><span style="color: #ff6600"><strong>首先感谢所有参与此算法讨论的同学们，呵呵，不同的算法折射出你们不同的思维</strong></span></p>]]></description><category>算法设计</category><comments>http://www.wisetoolkit.cn/post/25.html#comment</comments><wfw:comment>http://www.wisetoolkit.cn/</wfw:comment><wfw:commentRss>http://www.wisetoolkit.cn/feed.asp?cmt=25</wfw:commentRss><trackback:ping>http://www.wisetoolkit.cn/cmd.asp?act=tb&amp;id=25&amp;key=973c6189</trackback:ping></item><item><title>输出正三角形</title><author>a@b.com (willpower)</author><link>http://www.wisetoolkit.cn/post/24.html</link><pubDate>Mon, 15 Mar 2010 10:12:17 +0800</pubDate><guid>http://www.wisetoolkit.cn/post/24.html</guid><description><![CDATA[<p>&nbsp;今天群里有人问如何输出等腰三角形，样子如下:<br /><img title="" alt="" onload="ResizeImage(this,520)" src="http://www.wisetoolkit.cn/upload/tri.JPG" /><br />感谢nanyang的回复与思路^_^<br />感谢月影的算法，效率很高哦</p>]]></description><category>算法设计</category><comments>http://www.wisetoolkit.cn/post/24.html#comment</comments><wfw:comment>http://www.wisetoolkit.cn/</wfw:comment><wfw:commentRss>http://www.wisetoolkit.cn/feed.asp?cmt=24</wfw:commentRss><trackback:ping>http://www.wisetoolkit.cn/cmd.asp?act=tb&amp;id=24&amp;key=e84d3c5b</trackback:ping></item><item><title>三种常用的排序算法[JS版]</title><author>a@b.com (willpower)</author><link>http://www.wisetoolkit.cn/post/19.html</link><pubDate>Tue, 26 Jan 2010 10:01:39 +0800</pubDate><guid>http://www.wisetoolkit.cn/post/19.html</guid><description><![CDATA[<p>包括了直接插入法、冒泡法、直接选择法</p>]]></description><category>算法设计</category><comments>http://www.wisetoolkit.cn/post/19.html#comment</comments><wfw:comment>http://www.wisetoolkit.cn/</wfw:comment><wfw:commentRss>http://www.wisetoolkit.cn/feed.asp?cmt=19</wfw:commentRss><trackback:ping>http://www.wisetoolkit.cn/cmd.asp?act=tb&amp;id=19&amp;key=6260a578</trackback:ping></item><item><title>关于两个集合和的差最小的问题</title><author>a@b.com (willpower)</author><link>http://www.wisetoolkit.cn/post/1.html</link><pubDate>Tue, 22 Sep 2009 15:09:27 +0800</pubDate><guid>http://www.wisetoolkit.cn/post/1.html</guid><description><![CDATA[<p>第一种需求：将两个集合中的数分为两个元素个数不等的集合,以达到两数组和的差值最小<br />a:100,40,5,4,3,3,2,2,1,1<br />b:99,98<br />两个集合的和之差为:36<br />第二种需求：将两个集合中的数分为两个元素个数相等的集合,以达到两数组和的差值最小<br />a:100,40,5,4,3,3<br />b:99,98,2,2,1,1<br />两个集合的和之差为:48<br />第三种需求：将两个数组中的元素进行同位置的互换，以达到两数组和的差值最小<br />a:1,99,98,1,2,3<br />b:100,2,3,4,5,40<br />两个集合的和之差为:50<br />&nbsp;</p>]]></description><category>算法设计</category><comments>http://www.wisetoolkit.cn/post/1.html#comment</comments><wfw:comment>http://www.wisetoolkit.cn/</wfw:comment><wfw:commentRss>http://www.wisetoolkit.cn/feed.asp?cmt=1</wfw:commentRss><trackback:ping>http://www.wisetoolkit.cn/cmd.asp?act=tb&amp;id=1&amp;key=ffb24889</trackback:ping></item><item><title>位编码算法实现树</title><author>a@b.com (willpower)</author><link>http://www.wisetoolkit.cn/post/13.html</link><pubDate>Tue, 25 Aug 2009 09:37:13 +0800</pubDate><guid>http://www.wisetoolkit.cn/post/13.html</guid><description><![CDATA[<p>1、 分类算法常常表现为树的表示和遍历问题。那么，请问：如果用数据库中的一个Table来表达树型分类，应该有几个字段？</p><p>2、 如何快速地从这个Table恢复出一棵树；</p><p>3、 如何判断某个分类是否是另一个分类的子类；</p><p>4、 如何查找某个分类的所有产品；</p><p>5、 如何生成分类所在的路径。</p><p>6、 如何新增分类；</p><p>在不限制分类的级数和每级分类的个数时，这些问题并不是可以轻松回答的。本文试图解决这些问题。</p><p>分类的数据结构<br />...</p>]]></description><category>算法设计</category><comments>http://www.wisetoolkit.cn/post/13.html#comment</comments><wfw:comment>http://www.wisetoolkit.cn/</wfw:comment><wfw:commentRss>http://www.wisetoolkit.cn/feed.asp?cmt=13</wfw:commentRss><trackback:ping>http://www.wisetoolkit.cn/cmd.asp?act=tb&amp;id=13&amp;key=a7804e93</trackback:ping></item><item><title>位编码算法的类[分类算法]</title><author>a@b.com (willpower)</author><link>http://www.wisetoolkit.cn/post/12.html</link><pubDate>Tue, 25 Aug 2009 09:35:13 +0800</pubDate><guid>http://www.wisetoolkit.cn/post/12.html</guid><description><![CDATA[<p>php实现的位编码分类算法,一般分类用这个足矣</p>]]></description><category>算法设计</category><comments>http://www.wisetoolkit.cn/post/12.html#comment</comments><wfw:comment>http://www.wisetoolkit.cn/</wfw:comment><wfw:commentRss>http://www.wisetoolkit.cn/feed.asp?cmt=12</wfw:commentRss><trackback:ping>http://www.wisetoolkit.cn/cmd.asp?act=tb&amp;id=12&amp;key=a18757a6</trackback:ping></item><item><title>VbScript实现Dictionary</title><author>a@b.com (willpower)</author><link>http://www.wisetoolkit.cn/post/9.html</link><pubDate>Tue, 25 Aug 2009 09:30:21 +0800</pubDate><guid>http://www.wisetoolkit.cn/post/9.html</guid><description><![CDATA[<p>有些空间禁止了VbScript里的Dictionary,这里我用数组模拟的,核心算法是hash,比其它人用链表实现的要快得多,用1000个以下的键值对测试,速度比内置的Dictionary类稍微差些,但性能足够应付普通需求,欢迎大家提出宝贵意见,我的QQ:20934440</p>]]></description><category>算法设计</category><comments>http://www.wisetoolkit.cn/post/9.html#comment</comments><wfw:comment>http://www.wisetoolkit.cn/</wfw:comment><wfw:commentRss>http://www.wisetoolkit.cn/feed.asp?cmt=9</wfw:commentRss><trackback:ping>http://www.wisetoolkit.cn/cmd.asp?act=tb&amp;id=9&amp;key=51e05987</trackback:ping></item><item><title>VbScript实现循环队列</title><author>a@b.com (willpower)</author><link>http://www.wisetoolkit.cn/post/8.html</link><pubDate>Tue, 25 Aug 2009 09:28:16 +0800</pubDate><guid>http://www.wisetoolkit.cn/post/8.html</guid><description><![CDATA[<p>循环队列与栈同为链表的应用,有时候会用到</p>]]></description><category>算法设计</category><comments>http://www.wisetoolkit.cn/post/8.html#comment</comments><wfw:comment>http://www.wisetoolkit.cn/</wfw:comment><wfw:commentRss>http://www.wisetoolkit.cn/feed.asp?cmt=8</wfw:commentRss><trackback:ping>http://www.wisetoolkit.cn/cmd.asp?act=tb&amp;id=8&amp;key=91ea0f24</trackback:ping></item><item><title>VbSript实现栈类</title><author>a@b.com (willpower)</author><link>http://www.wisetoolkit.cn/post/7.html</link><pubDate>Tue, 25 Aug 2009 09:24:26 +0800</pubDate><guid>http://www.wisetoolkit.cn/post/7.html</guid><description><![CDATA[<p>由于VbScript里没有现成可用的栈,所以才需要模拟,,正好复习一下基础知</p>]]></description><category>算法设计</category><comments>http://www.wisetoolkit.cn/post/7.html#comment</comments><wfw:comment>http://www.wisetoolkit.cn/</wfw:comment><wfw:commentRss>http://www.wisetoolkit.cn/feed.asp?cmt=7</wfw:commentRss><trackback:ping>http://www.wisetoolkit.cn/cmd.asp?act=tb&amp;id=7&amp;key=3c65bd09</trackback:ping></item></channel></rss>
