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

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

于 2022-01-26 发布 文件大小:4.11 kB
0 234
下载积分: 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 个回复

  • 给定N个不等距点上的函数值,计指定区间上的三次插值多项式与指定插值点上的函数值...
    给定N个不等距点上的函数值,计算指定区间上的三次插值多项式与指定插值点上的函数值-Given N non-equidistant points on the function value, calculated on a specified interval with the specified three interpolating polynomial interpolation points on the function value
    2022-02-26 16:23:00下载
    积分:1
  • matlat程序数据拟合例子 要自己再输入数据文件的
    matlat程序数据拟合例子 要自己再输入数据文件的-matlat examples of data fitting procedure to re-enter their own data files
    2023-05-17 17:10:03下载
    积分:1
  • 一个以文本格式存储的矩阵的相关系数矩阵,包括例子数据。...
    计算一个以文本格式存储的矩阵的相关系数矩阵,包括例子数据。-calculated a text format to store the correlation coefficient matrix of matrices, including examples of data.
    2022-02-02 21:59:59下载
    积分:1
  • viterbi213 硬判决 c语言代码
    viterbi 硬判决是指解调器根据其判决门限对接收到的信号波形直接进行判决后输出0或1,换句话说,就是解调器供给译码器作为译码用的每个码元只取0或1两个值,以序列之间的汉明距离作为度量进行译码,适用于二进制对称信道(BSC)
    2022-10-21 21:35:03下载
    积分:1
  • 氢硫化物洗涤器设计
    洗涤器设计与氨气、 硫化氢的特定版本的基本代码。农具填料床吸附例程,基于从库尔森和理查森,相关性和包括润湿数据为填料的纳托尔。
    2022-01-25 20:09:31下载
    积分:1
  • 机编程,用C语言计改进的欧拉的典型题目
    计算机编程,用C语言计算改进的欧拉算法的典型题目-Computer programming, using C language to improve the calculation of the Euler algorithm for a typical subject
    2023-05-10 04:15:03下载
    积分:1
  • 填充矩阵(从外向内顺序填充自然数)
    填充矩阵(从外向内顺序填充自然数)-filled matrix (from the outside in order to fill natural number)
    2022-11-16 16:05:03下载
    积分:1
  • 在MATLAB环境中运行的两种Newton插值
    在MATLAB环境中运行的两种Newton插值法-Newton
    2022-07-15 22:31:19下载
    积分:1
  • 对偶单纯形
    求解线性规划的对偶单纯形法,c语言版。线性规划的对偶单纯形法用c语言实现
    2023-01-05 11:05:03下载
    积分:1
  • 贝塞尔曲线示例
    #include < iostream > #include < 矢量 > #include < math.h > #include"BezierPoint.h" 使用命名空间 std ; BezierPoint 贝塞尔 (方法 < BezierPoint > & pts,双 t) ; 双选择 (双 a,双 b) ; 双 factorial(double num) ; int main(void) { 方法 < < BezierPoint >> 方法警校 ; char endPointCount = 0; 双 inx ; 双 iny ; int ptCount = 0; int 终结点 ; 双 deltaT ; cin >> ptCount >> deltaT ; 为 (int 我 = 0 ; 我 < ptCount; i + +) { cin >> inx >> iny >> 终结点 ; BezierPoint p iny inx) ; 如果 (endPointCount = = 0 & & 终结点 = = 1) { pts.push_back (方法 < BezierPoint > ()) ; pts[pts.size()-1].push_back(p) ; endPointCount + +; 继续 ; } pts[pts.size()-1].push_back(p) ; 如果 (endPointCount! = 0 & & 终结点 = = 1 & & 我! = ptCount-1) { pts.push_back (方法 < BezierPoint > ()) ; pts[pts.size()-1].push_back(p) ; endPointCount + +; } } 为 (std::s
    2022-03-13 19:08:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载