登录
首页 » 算法 » 对任意给定的二叉树(顶点数自定)建立它的二叉链表存贮结构,并利用栈的五种基本运算(置空栈、进栈、出栈、取栈顶元素、判栈空)实现二叉树的先序、中序、后序三种周游,

对任意给定的二叉树(顶点数自定)建立它的二叉链表存贮结构,并利用栈的五种基本运算(置空栈、进栈、出栈、取栈顶元素、判栈空)实现二叉树的先序、中序、后序三种周游,

于 2022-01-26 发布 文件大小:4.11 kB
0 251
下载积分: 2 下载次数: 1

代码说明:

对任意给定的二叉树(顶点数自定)建立它的二叉链表存贮结构,并利用栈的五种基本运算(置空栈、进栈、出栈、取栈顶元素、判栈空)实现二叉树的先序、中序、后序三种周游,输出三种周游的结果。- To wilfully assigns two forks the tree (to go against points from to decide) establishes it two to fork the chain table storage structure, and (sets at spatial stack after the stack five kind of fundamental operations, enters stack, sends out of the warehouse, takes stack top element, sentences stack to be spatial) realizes two forks the tree first the foreword, center the foreword, the foreword three kinds travels around, outputs the result which three kinds travels around.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Demon RUF also an example. You enter a prime number, followed in the same direct
    恶魔联阵也是一个例子。你输入一个素数,跟在下面生成的同一个目录中。Txt文件,其中有一个n*n的魔法矩阵
    2022-10-31 00:10:02下载
    积分:1
  • 这是一个简单的演示如何评价文本的数学表达式
    This a simple demo of how to evaluate mathematical expressions in text format, including provision for variables and functions. The code consists of three simple classes: 1) Calc - which does the main calculations, 2) Stack - which is used to push and pop intermediate operators and numbers and 3) Symbol Table. The symbol table is a collection of calc symbols, a type structure consisting of various elements, including the expression name, function name, and the final value of the expression The evaluation procedure is done in three steps: 1) simplify the expression by removing all the elements within () and storing them in subexpressions within the symbol table. 2) Each of these sub expressions are then converted to RPN format (Reverse polar notation) and evaluated 3) Finally, the main expression is converted to RPN and evaluated-This is a simple demo of how to evaluate mathematical expressions in text format, including provision for variables and functi
    2022-02-20 06:26:41下载
    积分:1
  • arm7 串口试验
    应用背景采用arm7芯片stm32f103zet6 编写,将单片机中的数据经过串口外设传输到电脑上,实现rs232串口运用关键技术首先编写串口发送和接收函数,在电脑上的串口调试助手上向单片机发送字符串,然后单片机将该字符串在发送回电脑,实现串口
    2022-04-24 06:12:33下载
    积分:1
  • 移动 Ad-hoc 网络模拟
    此应用程序不仅演示使用 Microsoft 基础类的基本知识,也是您编写应用程序的起始点。 此文件包含的什么你会发现在每个文件,让您的广告特设模拟的应用程序的摘要。
    2022-11-17 09:25:02下载
    积分:1
  • 椭圆拟合的误差算法,拟合点到椭圆心的距离减去拟合点对应在椭圆上的点到椭圆心的距离,有效分析椭圆拟合的误差问题,并让其在对话框中显示出来...
    椭圆拟合的误差算法,拟合点到椭圆心的距离减去拟合点对应在椭圆上的点到椭圆心的距离,有效分析椭圆拟合的误差问题,并让其在对话框中显示出来-The error ellipse fitting algorithm, fitting point to the ellipse center distance minus the corresponding fitting point on the ellipse to the ellipse center point of the distance, the effective analysis of the error ellipse fitting problem, and let it be shown in the dialog box
    2022-03-18 15:29:28下载
    积分:1
  • 高斯―塞德尔迭代法。
    高斯―塞德尔迭代法。-Gauss- Seidel iteration.
    2022-05-22 21:37:54下载
    积分:1
  • 一个生成最小树的算法,应用在VLSI中
    一个生成最小树的算法,应用在VLSI中-generate a minimum spanning tree algorithm used in VLSI
    2022-01-26 06:23:22下载
    积分:1
  • 1.限幅滤波 2.中位值滤波 3.算术平均值滤波 4.递推平均滤波...
    1.限幅滤波 2.中位值滤波 3.算术平均值滤波 4.递推平均滤波-1. Limiter filter 2. 3 median filter. Arithmetic mean filtering 4. Recursive average filter
    2023-06-07 03:05:06下载
    积分:1
  • 一款开源基于电子电路理论支持编写的电子电路模拟和分析小软件,可以对电子电路初学者进行模拟试验有点帮助。支持简单电路、串联电路、并联电路、交流电路的R,L,C串行...
    一款开源基于电子电路理论支持编写的电子电路模拟和分析小软件,可以对电子电路初学者进行模拟试验有点帮助。支持简单电路、串联电路、并联电路、交流电路的R,L,C串行电路,交流电路的双回路电路,交流电路的三回路电路的模拟和分析,并提供输出结果和线路图。-An open source-based electronic circuit theory to support the preparation of electronic circuit simulation and analysis of small software, can be carried out on the electronic circuit simulation beginners to some extent. Support a simple circuit, series circuit, parallel circuit, communication circuit R, L, C serial circuit, the exchange of double-loop circuit circuits, communication circuits three-loop circuit simulation and analysis, and provide output results and the circuit diagram.
    2022-01-26 06:21:45下载
    积分:1
  • 第九届飞思卡尔摄像头组参赛
    应用背景该程序是第九届飞思卡尔摄像头组的参赛程序,是用的芯片是KL26,底层库是野火的底层库。本程序下载到芯片里,可以稳定完整的跑完一圈,过坡道无压力,在实验室跑的非常稳定,新手拿过去,可以很快让小车跑起来。关键技术还有手机软件蓝牙调参数的程序,调参软件的程序也很简洁,非常好理解。包括移植到底层的函数也做了详细的注释,方便调小车的参数,提高了调车的效率。而且KL26和K60差不多,可以很方便地移植到K60的上面,程序可读性也很强,加了较多注释,很好理解。使用的是卡尔曼滤波。
    2022-04-12 20:30:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载