搜索资源列表
wangxinwen
- 树的建立,各种遍历(先根递归,先根非递归,中根递归,中根非递归,后根递归,后根非递归,层次遍历,最近公共祖先的查找,树的删除-tree establishment of various traverse (first - recursive and non - recursive first root, root recursive and non - recursive root, root recursive, non - recursive root level, traverse, th
vtree
- 异质树的实现,程序具有良好的交互性.可实现按层次遍历.
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
Complete_binary_tree
- 在完全二叉树中,在层次遍历和先根序遍历中,已知某节点在一种遍历中的编号,求该节点在另一种遍历中的编号.-Complete binary tree in level order traversal and first traversal of the root, known to a certain node in a traversal of the code, and the node in a traversal of the code.
shujujiegou
- 1.实现顺序表的基本操作,包括顺序表的初始化、第i个元素前插入一个新的元素、删除第i个元素、查找某元素、顺序表的销毁。2.实现单链表、循环链表、双向链表的所有基本操作 3.定义顺序栈类型,实现栈的所有基本操作。定义链栈类型,实现栈的所有基本操作。应用栈实现数制的转换。4.定义顺序队列类型,实现栈的所有基本操作。定义链队列类型,实现栈的所有基本操作。将字符串转换为整形。5.定义二叉链表类型,建立二叉树。先序、中序、后序、层次遍历二叉树,并输出遍历结果。-1. Achieve the basic o
binary-tree
- (1)输入字符序列,建立二叉链表。 (2)先序、中序、后序遍历二叉树:递归算法。 (3)中序遍历二叉树:非递归算法。(最好也能实现先序、后序非递归算法) (4)求二叉树的高度 。 (5)求二叉树的叶子个数。 (6)借助队列实现二叉树的层次遍历。 (7)在主函数中设计一个简单的菜单,分别调试上述算法。-(1) Enter the character sequence to build binary list. (2) first order, in sequence, a
AgenesCluster
- 层次聚类,经典算法agenescluster-Hierarchical clustering, the classical algorithm agenescluster
trees
- 树或森林的函数库,包括从文件读取数据构造森林,层次遍历森林,将森林转换成广义表形式等。-Trees or forests library, including reading data from a file structure forest, traversing the forest level, the forest is converted into generalized table form and so on.
hire-and-fire-6
- 在这个问题中,你被要求跟踪组织的变化工作人员的层次结构。作为一个组织的人生第一大事,首席执行官(CEO)的名字命名。随后,可能会发生任何数量的员工和火灾。该组织(包括CEO)的任何成员都可以雇佣任意数量的直接下属和组织(包括CEO)的任何成员都可以被解雇。该组织的层级结构可以用一棵树来表示。-Descr iption In this problem, you are asked to keep track of the hierarchical structure of an orga
