搜索资源列表
er
- 遍历二叉树(*)任务:按先序次序输入二叉树中结点的值(一个字符),`0`表示空树,生成二叉树的二叉链表存储结构,然后按中序顺序遍历二叉树。-Binary Tree Traversal (*) Missions: According to the first sequence in the order of input binary tree node value (a character), `0` express empty tree, Binary tree generated list s
erchashu
- 二叉树的建立、显示、遍历(包含非递归及递归2种算法)-The establishment of a binary tree, display, traverse (including non-recursive and recursive algorithm 2)
erchashu102
- 二叉树排序 采用中序遍历的方式 从小到大排序输出-Binary tree traversal order used in a way to sort the output small to large
BinarySearchTree
- 根据用户输入的一系列整数,生成一棵二叉查找树。对该二叉查找树实现中序遍历,生成排序后的整数数列。对该二叉查找树进行中序遍历,计算累加和。-According to a series of integer user input and generates a binary search tree. The realization of a binary search tree traversal generates integer sequence sorted. The binary searc
tree
- 数据结构中二叉树的前序遍历,中序遍历,后序遍历代码-Binary tree before, during and after preorder codes
main
- 二叉树的前中后序遍历,利用链表和栈来实现。-Before the binary tree traversal after
Binary-tree-arithmetic-calculation
- 构建二叉树结构进行四则运算。在控制台程序中输入书写习惯的表达式(可以包含括号),程序首先遍历提取运算符号,分辨优先级,然后构造二叉树,对二叉树后序遍历,运算得到结果。 输出运算结果和遍历顺序。-Construction of the structure of four binary arithmetic. Enter the writing habits of expression in the console program (may contain parentheses), the pro
binary-tree
- 数据结构课程设计 已知二叉树的前序遍历序列和中序遍历序列,确定唯一的一棵二叉树。-Data structure course design The preamble of known binary tree traversal sequence and the sequence traversal sequence, to determine the only a binary tree.
Reconstruction-of-Binary-Tree
- 实现了二叉树的重构,根据二叉树的顺序可以重构一颗二叉树,输入先序、后序遍历的结构,重构出一颗二叉树。-Reconstruction of Binary Tree
Tree
- 包括二叉树的建立、遍历、节点的删除以及纵向打印二叉树-Binary tree
WordCounting
- 读取一个文本文件(英文,ASCII编码),对出现的单词次数进行统计,并按照出现次数从低到高排序,输出到一个文本文件中(每行一个单词信息,格式:单词 出现次数)。采用二叉树结构存储,中序遍历,快速排序。-Reads a text file (English, ASCII encoding), the number of occurrences of the word statistics, and in accordance with the number of occurrences of th
tree
- 二叉树树是一种重要的非线性数据结构,直观地看,它是数据元素(在树中称为结点)按分支关系组织起来的结构,很象自然界中的树那样。树结构在客观世界中广泛存在,如人类社会的族谱和各种社会组织机构都可用树形象表示。树在计算机领域中也得到广泛应用,如在编译源程序如下时,可用树表示源源程序如下的语法结构。又如在数据库系统中,树型结构也是信息的重要组织形式之一。一切具有层次关系的问题都可用树来描述。满二叉树,完全二叉树,排序二叉树。中序遍历,先序遍历,后序遍历-Binary tree is an importa
tree
- 树的递归与非递归三序遍历,计算树的繁茂度和交换树的左右孩子并输出。-Tree recursive and non recursive traversal of the three order, the calculation of the tree s lush and exchange trees around the child and output
3
- 1.创建一个二叉树 2.可以生成先序遍历二叉树 3.可以生成中序遍历二叉树 4.可以生成后序遍历二叉树 5.计算二叉树的结点总数和叶点数 6.可以建立无向图的邻接矩阵 7.可以生成深度优先遍历图-1. Create a binary tree 2. The first sequence can be generated traversing binary tree 3. Can be generated in order traversing binary tre
shuheerchashu
- 1.基本题 (1)输入字符序列,建立二叉链表。 (2)遍历二叉树输出。 (3)在二叉树中查找值为x的结点,请编写一算法用以打印值为x的结点的所有祖先,假设值为x的结点不多于1个。 -1. Basic questions (1) Enter the character sequence, build binary list. (2) output binary tree traversal. (3) Find a binary tree node in the val
shu
- 创建二叉树:广义表式创建和先序创建; 2) 遍历二叉树:先,中,后,层序遍历,广义表式遍历,凹凸式遍历; 3) 二叉树属性:深度,宽度,结点数,叶子结点数 4) 二叉树路径:叶子结点到根结点的路径; 5)二叉树线索:中序线索二叉树; 6)二叉树置空:清空二叉树。 -reate a binary tree: generalized table type creation and first order created 2) traversing b
tree
- C语言二叉树三种遍历算法及其广义表表示 VS2012编写 基于先序遍历的构造算法:输入是二叉树的先序序列,但必须在其中加入虚结点以示空指针的位置。假设虚结点输入时用’.’字符表示。 分别利用先序遍历、中序遍历、后序遍历所建二叉树-Three kinds of C language binary tree traversal algorithm and generalized table said visual programming based on first order traversal
BiTree
- 二叉树的创建以及三种遍历算法(使用递归)-Two fork tree and the creation of the three traversal algorithm (using recursi
erchashu
- C语言编程,二叉树的创建,以及二叉树的先序遍历,中序遍历,后序遍历程序-C programming language to create a binary tree and binary tree preorder, preorder, after preorder program
wq
- 本程序的要求是给出一个二叉树的中序和后序遍历,运用递归和非递归两种方法确定二叉树,并输出二叉树的前序序列和显示二叉树的树形结构。-The requirements of this program is to give a binary tree in inorder and preorder using recursive and non-recursive two methods to determine the binary tree, and outputs the preamble se