文件名称:stack
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.4kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
主要操作过程:
建立一般的二叉链表,通过遍历进行线化,设p为当前处理结点,pre为p的前驱填标志:
若p无左:p->ltag=1;若p无右:p—>rtag=1;填线索:若p->ltag==1: p->lchild=pre 若pre->rtag== pre->rchild=p
-The main process: the establishment of a general binary list, for through the traverse line, and set up to deal with p for the current node, pre filled for signs precursor p: p if not left: p-> ltag = 1 if the p-free Right: p-> rtag = 1 filling clue: If p-> ltag == 1: p-> lchild = pre if the pre-> rtag == pre-> rchild = p
建立一般的二叉链表,通过遍历进行线化,设p为当前处理结点,pre为p的前驱填标志:
若p无左:p->ltag=1;若p无右:p—>rtag=1;填线索:若p->ltag==1: p->lchild=pre 若pre->rtag== pre->rchild=p
-The main process: the establishment of a general binary list, for through the traverse line, and set up to deal with p for the current node, pre filled for signs precursor p: p if not left: p-> ltag = 1 if the p-free Right: p-> rtag = 1 filling clue: If p-> ltag == 1: p-> lchild = pre if the pre-> rtag == pre-> rchild = p
(系统自动生成,下载前可以参看下载内容)
下载文件列表
二叉树的基本运算btree.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.