<?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/%E4%BA%8C%E5%8F%89%E6%A0%91/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Sat, 02 Jun 2012 11:18:24 +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/3317</link>
					<comments>https://www.coder4.com/archives/3317#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sat, 02 Jun 2012 11:17:45 +0000</pubDate>
				<category><![CDATA[算法&数据结构]]></category>
		<category><![CDATA[二叉树]]></category>
		<category><![CDATA[镜像]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=3317</guid>

					<description><![CDATA[就是对二叉树及其子树，交换左右子树。 这种就是先序遍历的变种。 递归版本： void mirror(struct Node* root) { if(root==NULL) { return ; } swap(&#38;root-&#62;left, &#38;root-&#62;right); mirror(root-&#62;left); mirror(root-&#62;right); retur[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/3317/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>在二叉树中找出和为某一值的所有路径</title>
		<link>https://www.coder4.com/archives/3245</link>
					<comments>https://www.coder4.com/archives/3245#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Tue, 29 May 2012 12:14:06 +0000</pubDate>
				<category><![CDATA[C && C++]]></category>
		<category><![CDATA[算法&数据结构]]></category>
		<category><![CDATA[二叉树]]></category>
		<category><![CDATA[路径和]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=3245</guid>

					<description><![CDATA[题目：输入一个整数和一棵二元树。 从树的根结点开始往下访问一直到叶结点所经过的所有结点形成一条路径。 打印出和与输入整数相等的所有路径。 例如： 10 /     \ 5       12 / \ 4   7 输入整数22，输出如下路径： 10  12 10  5  7 解：就是最简单的先序遍历，只不过要记录路径，可以使用数组，我这里用的stl::vector。 注意left和right遍历后，要回退当前结点在path中状态。 算法： v[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/3245/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>数据结构重读 – 二叉树</title>
		<link>https://www.coder4.com/archives/3177</link>
					<comments>https://www.coder4.com/archives/3177#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sat, 19 May 2012 08:01:01 +0000</pubDate>
				<category><![CDATA[算法&数据结构]]></category>
		<category><![CDATA[二叉树]]></category>
		<category><![CDATA[数据结构]]></category>
		<category><![CDATA[重读]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=3177</guid>

					<description><![CDATA[1、二叉树(Binary Tree)是一种特殊的树形结构：每个结点至多有两棵子树，即二叉树中不存在度大于2的结点。 2、二叉树的子树有左右之分，次序不能任意颠倒。 3、性质1：二叉树的第i层上至多有2^(i-1)个结点，i从1下标开始。所有 4、性质2：深度为k的二叉树至多有2^k -1个结点，k也是从1下标开始。 5、性质3：对于任何一棵二叉树，如果终端结点数为n0，度为2的结点数为n2，则n0 = n2+1。这个很简单： (1)设度为1的结点数为n1，则总结点数[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/3177/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>《数据结构》读书笔记 第六章 二叉树的三叉链表存储</title>
		<link>https://www.coder4.com/archives/252</link>
					<comments>https://www.coder4.com/archives/252#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sat, 26 Dec 2009 13:20:54 +0000</pubDate>
				<category><![CDATA[C && C++]]></category>
		<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=252</guid>

					<description><![CDATA[今天好像大脑有点疲劳了，或者是今天写得太多了，接近400行啊～ 犯了两个有意思的错误，分享一下： (1)写查双亲节点成员函数的时候 对数据2测试怎么怎么也过不去。把parent用2种方法分别写了2次 崩溃了。然后骤然发现在之前调用了一次assign 把根结点 1--&#62;2....... (2)还是写这个parent的时候 居然开了个队列开始准备塞东西 然后想起来这是三叉 好像有parent指针哦&#8230;&#8230; 是该歇歇了，假期《数据结构》已经啃了大半本了，修养下该开学了。这[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/252/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>《数据结构》读书笔记 第六章 二叉树的二叉链表实现</title>
		<link>https://www.coder4.com/archives/250</link>
					<comments>https://www.coder4.com/archives/250#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sat, 26 Dec 2009 06:20:20 +0000</pubDate>
				<category><![CDATA[算法&数据结构]]></category>
		<category><![CDATA[c语言]]></category>
		<category><![CDATA[二叉树]]></category>
		<category><![CDATA[二叉链表]]></category>
		<category><![CDATA[数据结构]]></category>
		<category><![CDATA[类]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=250</guid>

					<description><![CDATA[没想到真的能写出来，因为这是第一次用类的方式封装描述。真的是第一次写类。而且加上二叉树这个比较难描述的东东，确实费了不少劲。发现面向对象确实是很好的。真的是让用户无需关心数据细节。当然可能是还没习惯，写得有点慢。 期间，递归的不熟练导致犯下了几次严重错误，好在自己都纠正了。 但是还有以下没有解决： 1、如何在类中调用函数指针？ 2、Parent函数能不能用递归描述？ ... 若有高手看到指点一二，不胜感激～&#160;&#160; BiTree.h：定义了二叉类 BiTree以及基本操作 #in[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/250/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>《数据结构》第六章 二叉树的顺序存储</title>
		<link>https://www.coder4.com/archives/248</link>
					<comments>https://www.coder4.com/archives/248#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sat, 26 Dec 2009 06:19:44 +0000</pubDate>
				<category><![CDATA[算法&数据结构]]></category>
		<category><![CDATA[二叉树]]></category>
		<category><![CDATA[数据结构]]></category>
		<category><![CDATA[顺序存储]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=248</guid>

					<description><![CDATA[BiTree.h:顺序存储二叉树及其基本操作 enum {MAX_TREE=100,OK=0,WRONG=-1}; typedef int BTree[MAX_TREE]; typedef int Status; struct position { &#160;int level,order; }; void InitBiTree(BTree &#38;T) { &#160;memset(T,0,sizeof(int)*MAX_TREE); } Status CreateBiTr[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/248/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
