搜索资源列表
老师布置的双序遍历
- 二叉树的双序遍历(Double-order traversal)是指:对于二叉树的每一个结点来说,先访问这个结点,再按双序遍历它的左子树,然后再一次访问这个结点,接下来按双序遍历它的右子树。试写出执行这种双序遍历的算法。
树与二叉树
- (1)输入字符序列,建立二叉链表。 (2)遍历二叉树输出。 (3)请设计一个算法,要求该算法把二叉树的叶子结点按从左到右的顺序连成一个单链表,表头指针为head。 二叉树按二叉链表方式存储,链接时用叶子结点的右指针域来存放单链表指针。请遍历该链表输出所有叶子结点,然后再先序遍历二叉树输出所有叶子结点,并对比两个输出结果,看是否相同。 (4)试写一算法判断某二叉树是否是完全二叉树。 (5)试写一算法判断某二叉树是否是二叉排序树。 (6)在主函数中设计一个简单的菜单,分别调试上述算法。
二叉树的创建于遍历
- 二叉树的创建于遍历
Tree.rar
- 用c创建树结构,树的遍历和各种操作,包括求树长,结点数,叶子节点数等,Create a tree structure with c, tree traversal and a variety of operations, including seeking a tree that grows, nodes, leaf nodes, such as
filetree.rar
- 生成目录树结构的一个好范例,自动读取指定文件夹的内容,并遍历文件夹下的目录,最后生成TREE目录树结构。在XP下测试通过。,Directory tree structure to generate a good example, automatically read the contents of the specified folder, and traverse the directory folder, and finally generate the directory tree str
include.rar
- 1. 输入字符序列,建立二叉链表。 2. 中序遍历二叉树:递归算法。 3. 中序遍历二叉树:非递归算法。 4. 求二叉树的高度。 5. 球二叉树的叶子个数。 6. 将二叉链表视为森林的孩子兄弟链表,计算森林中叶子个数。 7. 建立中序线索二叉树,并实现中序遍历。 8. 借助队列实现线索二叉树的层次遍历。 ,tree
traverce
- 目录树的遍历 UNIX环境下实现目录树遍历寻找目标文件。 报告含-The directory tree traversal UNIX environment to achieve the directory tree traversal to find the target file. Report containing
ercs
- 二叉树的遍历,C语言编写的,呵呵,还不错的哦-This is a c program
dsassdasdasda
- 二叉树建立与遍历源代码,这是我大二时做的实验报告,现在毕业了删了可惜就上传了,通过自己调试编译无误。-Binary Tree Traversal establish the source code, this is my sophomore year when the report of the experiment, and now have decided to graduate a pity on the upload, and through their own correct comp
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
C
- 本文档容括了C(C++)所有算法,分为数值算法、图论算法、背包算法、排序算法、高精度算法、树的遍历、进制转换、全排列和组合生成、查找算法、贪心、回溯法框架、DFS框架、BFS框架、数据结构相关算法。并有实例源码-This document, including the capacity C (C ) for all algorithms, divided into numerical algorithms, graph theory, algorithm, knapsack algorit
btree
- 二叉树的建立,前序遍历,中序遍历及层次遍历-Tree establishment, pre-order traversal, in order traversal and traversal level
shujujiegou
- 树的遍历等数据结构程序代码实现,用的C++编的,简单易懂,适合初学者-Traversal tree data structure, such as program code to achieve with the C++ Series, easy-to-read, suitable for beginners
DataStructureUtil
- 该压缩文件夹内有诸多常用算法和数据结构的c++模板编程实现,可作为您程序开发的辅助工具。具体有栈、队列、优先队列、字典、二叉树、图(包括节点的遍历,连通性判断,3种经典最短路径算法的实现等)。-The compressed folder, there are many commonly used algorithms and data structures c++ Template programming, can be used as your development tool. Specif
binarytree
- 二叉树的操作,程序采用递归可进行树的遍历,求叶子节点的个数,交换左右子树等操作-Binary operation, the procedure can be carried out using recursive tree traversal, and the number of leaf nodes, exchange and other operations around subtree
erchashubianli
- 数据结构中二叉树遍历算法,用C++写的,我们的作业,老师验收通过。-Binary tree data structure traversal algorithm, using C++ Written, our operations, acceptance, through the teacher.
DataStructureTest
- 数据结构的一些基本的相关的试验,如二叉树的遍历,打印,如排序算法,检索算法,动态结构的静态实现实验-Data structures related to some basic tests, such as binary tree traversal, print, such as sorting algorithms, search algorithms, the dynamic structure of the realization of the experimental static
traverse
- 后续遍历非递归 数据结构中二叉树的遍历中 使用后续遍历非递归遍历二叉树-Follow-up data structure traversal non-recursive traversal of binary tree used in the follow-up traversal non-recursive binary tree traversal
DataStructure_Search
- 1.6.1 顺序表的查找 273 范例1-94 顺序表的查找 273 ∷相关函数:Search_Seq函数 1.6.2 静态树表的查找 276 范例1-95 静态树表的查找 276 ∷相关函数:Search_SOSTree函数 1.6.3 二叉排序树的基本操作 280 范例1-96 二叉排序树的基本操作 280 ∷相关函数:InsertBST函数 1.6.4 平衡二叉树的基本操作 285 范例1-97 平衡二叉树的基本操作 285 ∷相关函数:Sear
Treetraversalfolderrecursivealgorithm
- MFC实现,树型递归算法遍历文件夹。列出文件的大小,类型等属性-MFC implementation, recursive algorithm for tree traversal folder. Documents listed in the size, type and other property