<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	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>汉诺塔 - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/%E6%B1%89%E8%AF%BA%E5%A1%94/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Fri, 23 May 2025 01:35:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>数据结构重读 – 递归与汉诺塔</title>
		<link>https://www.coder4.com/archives/3105</link>
					<comments>https://www.coder4.com/archives/3105#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 04 May 2012 15:03:34 +0000</pubDate>
				<category><![CDATA[算法&数据结构]]></category>
		<category><![CDATA[数据结构]]></category>
		<category><![CDATA[栈]]></category>
		<category><![CDATA[汉诺塔]]></category>
		<category><![CDATA[递归]]></category>
		<category><![CDATA[重读]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=3105</guid>

					<description><![CDATA[堆栈与递归是相辅相成的。 比如Fibnacci数列就是递归定义： Fib(n) = Fib(n-1) + Fib(n-2) (n&#62;=2) Fib(0) = 0 Fib(1) = 1 Fibnacci数列：1, 1, 2, 3, 5, 8, 13, 21, .... 说到这里再写个Fibnacci的通项公公式： 这个还是很无敌的…… 然后再一个例子是书上的Ackerman函数： &#160; 转回经典的汉诺塔问题：假设有三个命名为X，Y[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/3105/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>七层汉诺塔的解法</title>
		<link>https://www.coder4.com/archives/218</link>
					<comments>https://www.coder4.com/archives/218#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sat, 26 Dec 2009 06:00:26 +0000</pubDate>
				<category><![CDATA[算法&数据结构]]></category>
		<category><![CDATA[7层]]></category>
		<category><![CDATA[汉诺塔]]></category>
		<category><![CDATA[解法]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=218</guid>

					<description><![CDATA[玩汉诺塔疯狂的可以参考一下了 以下是7层汉诺塔的解法: 把1号从a挪动到c 把2号从a挪动到b 把1号从c挪动到b 把3号从a挪动到c 把1号从b挪动到a 把2号从b挪动到c 把1号从a挪动到c 把4号从a挪动到b 把1号从c挪动到b 把2号从c挪动到a 把1号从b挪动到a 把3号从c挪动到b 把1号从a挪动到c 把2号从a挪动到b 把1号从c挪动到b 把5号从a挪动到c 把1号从b挪动到a 把2号从b挪动到c 把1号从a挪动到c 把3号从b挪动到a 把[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/218/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>《数据结构》递归实现汉诺塔</title>
		<link>https://www.coder4.com/archives/216</link>
					<comments>https://www.coder4.com/archives/216#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sat, 26 Dec 2009 05:59:29 +0000</pubDate>
				<category><![CDATA[算法&数据结构]]></category>
		<category><![CDATA[数据结构]]></category>
		<category><![CDATA[汉诺塔]]></category>
		<category><![CDATA[递归]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=216</guid>

					<description><![CDATA[main.cpp：汉诺塔实现。 思路分析： 若n=1，则只需把盘子从a挪动到c 若n&#62;1， （1）把前n-1个盘子从a经过c挪动到b （2）把第n个盘子从a挪动到c （3）把前n-1个盘子从b经过a挪动回c 实现： #include &#60;fstream&#62; #include &#60;iostream&#62; using namespace std; ofstream fout(&#34;out.txt&#34;); void Move(int n,char x,char y[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/216/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
