搜索资源列表
非递归前序,中序,后序遍历二叉树(优化算法)
- 非递归前序,中序,后序遍历二叉树(优化算法)-before non - recursive sequence, sequence after sequence binary tree traversal (optimization algorithm)
BiTree分割视图版
- 将视图分割成两部分,左边为显示取,右边为数据录入区,每录入一个节点数据,立即在左边显示节点图形,能实现二叉树的插入、删除、前序遍历、中序遍历、后序遍历。-View will be divided into two parts, shown from left to right for the data entry areas, each node a data entry immediately on the left shows nodes graphics can achieve binar
BinTreeExp
- 二叉树的创建、前序递归遍历、中序递归遍历、后序递归遍历、层次遍历、前序非递归遍历、中序非递归遍历、后序非递归遍历算法。里面包含了顺序栈和队列的实现代码。-Binary tree creation, pre-order recursive traversal, recursive in order traversal, postorder recursive traversal, traverse the level, pre-order traversal non-recursive, in t
bitree
- 二叉树的前序遍历改变为中序遍历输出,C++库封装实现-Pre-order traversal of the tree to change the traversal of the output, C++ library package to achieve
rebuild
- 树重建问题。 给出树的后序、中序遍历顺序,求出数的前序遍历顺序。-Tree reconstruction. After the tree given sequence, the order of traversal, the number of pre-calculated sequence traversal.
2
- 根据二叉树的抽象数据类型的定义,使用二叉链表实现一个二叉树。 二叉树的基本功能: 1、二叉树的建立 2、前序遍历二叉树 3、中序遍历二叉树 4、后序遍历二叉树 5、按层序遍历二叉树 6、求二叉树的深度 7、求指定结点到根的路径 8、二叉树的销毁 9、其他:自定义操作-According to a binary tree definition of abstract data types, use two forks to achieve a binary
erchashu
- 实现二叉树的基本功能,包括前序遍历,中序遍历,后序遍历,层次遍历-To achieve the basic functions of a binary tree, including the pre-order traversal, inorder traversal, postorder, level traversal
BiTreeAll
- 使用二叉链表实现二叉树的基本功能: 1、二叉树的建立 2、前序遍历二叉树 3、中序遍历二叉树 4、后序遍历二叉树 5、按层序遍历二叉树 6、求二叉树的深度 7、求指定结点到根的路径 8、二叉树的销毁 -Use two forks linked to achieve the basic functions of a binary tree: 1, the establishment of two binary tree, preorder traversal b
BT
- 二叉树的前序遍历以及中序遍历以及后序遍历-BinaryTree
tree
- 程序功能:选择二叉链式存储结构作为二叉树的存储结构,设计一个程序实现二叉树的基本操作 (包括建立、输出、前序遍历、中序遍历、后序遍历、求树高、统计叶子总数等)-Program features: Choose binary chain store structure as the binary tree memory structure, design a program to achieve the basic binary operations (including the creati
binarytree
- 输入二叉树的前序排列以及中序排列,对二叉树进行遍历,并计算二叉树叶子节点总数以及树的深度。-Input binary tree arrangement of the first order and arrangement in the sequence of binary tree traversal, and calculate the total number of binary tree leaf nodes and tree depth.
homework
- 设二叉树的结点的数据场之值仅为一大写英文字母。其前序和中序的遍历结果(打印结点的数据场之值)分别保存在字符串数组 preorder[N] 及 inorder[N]之中,其中 N 为常数。请设计程序以标准形式存储保存该二叉树。-Based binary tree node data field of the value is only a capital letter. The pre-order traversal order and the results (the data field t
3rd
- 树状结构,前序遍历,后续遍历,中序遍历,还有高度和交换等功能。-The tree traversal, follow-up traversal in preorder traversal, as well as height and exchange functions.
tree
- 创建二叉树并以根结点为参数交换每个结点的左右子树,查找x结点并输出其所有的祖先结点,以中序遍历和前序遍历创建二叉树。-Create a binary tree and parameter exchange for each node of the root node to the left and right subtree, find x nodes and output nodes of all its ancestors, create a binary tree in order tra
trees-DLR-and-LDR
- 设二叉树结点值为大写字母,输入二叉树的前序遍历和中序遍历序列,生成此二叉树,输出该二叉树的后序遍历和按层次遍历序列。输入某结点值,在二叉树中查找该结点,若该结点存在,则输出从根到该结点的路径,否则给出不存在信息。 -Let binary tree node value of capital letters input binary tree preorder traversal and inorder traversal sequences, this binary tree is gene
yy
- 实现二叉树中所有节点左右子树的交换,有前序遍历、中序遍历、后序遍历以及层序遍历-About all the nodes in a binary tree subtree exchange, there are pre-order traversal, preorder, and postorder traversal sequence
war
- 某年某月,A军与B军之间发生了一次战争。为了不让A军轻易的找到自己的总部,B军布下了一个二叉树型的阵形,这样既可以相互沟通,也可以很好的隐藏总部的位置。共有n个节点,每个节点用一个数字标号,总部就在其中的某个节点处。知道在前序遍历中B军总部排在标号串的第m位。 A军找到学过数据结构的你,请你根据已知的中序遍历和后序遍历得到B军的前序遍历,并得出B军总部究竟在标号为多少的节点上。 -A certain period, A B between army troops and a war br
BinaryTree
- 二叉树前序中序后序遍历遍历代码,使用c++编写(Two fork tree preorder, in order, after traversal traversal code, using c++ write)
二叉树遍历
- 简单的二叉树遍历,中序遍历,后序遍历,前序遍历(Simple two tree traversal)
Tree
- 创建二叉树,前序中序后序遍历二叉树,计算叶子结点树以及树的深度。(The two forked tree is created, and the two forked tree is traversed in the preorder of the preorder, and the leaf node tree and the depth of the tree are calculated.)