搜索资源列表
echsh
- 二叉树的各种遍历。递归和非递归遍历以及层次遍历。-the binary tree traversal. And recursive and non - recursive traversal level traverse.
inordervisit
- 该程序完成对二叉树的非递归中序遍历,因为其中涉及到二叉树的构造,而且使用类来构造,所以代码比较多。-completion of the process of non - recursive binary tree which preorder because it involved the construction of a binary tree, but the use of class structure, the code more.
preorder
- 该程序完成对二叉树的非递归的前序遍历,在三种遍历方法中,这种遍历最简单,所以,核心代码自然要少很多。-completion of the process of non - recursive binary tree of the former preorder, the three traverse method, which traverse the most simple, so natural to the core code is much less.
马踏棋盘(第2章)
- 1. 问题描述设计一个国际象棋的马踏遍棋盘的演示程序。2. 基本要求将马随机放在国际象棋8*8棋盘的某个方格中,马按走棋规则进行移动。编制非递归程序,求出马的行走路线,将数字1,2,3,4,…,64依次填入一个8*8方阵。-1. Problem descr iption design of a chess board Ma travels in the demonstration program. 2. Ma basic requirements on random chess 8 * 8 ch
cw_bitree
- 与清华大学版的《数据结构》匹配二叉树的实现:BITREE1.CPP:为主程序,其中实现了递归算法以及非递归算法的前序遍历,中序遍历,后序遍历。TSTACK1.H: 为头文件,其中定义了一些常量的值,其中也包括了书中第三章的栈的实现,只需要将注解符去掉即可。运行环境为:VC++6 或 TC3-and Tsinghua University version of the "data structure" matching the achievement of a binary t
51623457
- 先序遍历非递归算法 #define maxsize 100 typedef struct { Bitree Elem[maxsize] int top }SqStack void PreOrderUnrec(Bitree t) { SqStack s StackInit(s) p=t while (p!=null !StackEmpty(s-preorder non - recursive algorithm # define maxsize 100 typedef struct (Bitree
诺汉塔画图版
- 汉诺塔算法。数据结构经典常用算法,非递归算法图形版-HANOR algorithm. Data structure algorithms commonly used classic, non-graphic version of recursive algorithm
马踏棋盘问题.
- 将马随即放在国际象棋的8×8棋盘Board[8][8]的某个方格中,马按走棋规则进行移动。要求每个方格只进入一次,走遍棋盘上全部64个方格。编制非递归程序,求出马的行走路线,并按求出的行走路线,将数字1,2,……,64依次填入一个8×8的方阵,输出之。-Ma immediately on the international chess 8 8 chessboard Board [8] [8] of a box, MA by the rules of chess go mobile. Requi
马踏棋盘127457
- 将马随即放在国际象棋的8×8棋盘Board[8][8]的某个方格中,马按走棋规则进行移动。要求每个方格只进入一次,走遍棋盘上全部64个方格。编制非递归程序,求出马的行走路线,并按求出的行走路线,将数字1,2,……,64依次填入一个8×8的方阵,输出之。-Ma immediately on the international chess 8 8 chessboard Board [8] [8] of a box, MA by the rules of chess go mobile. Requi
新建 RTF 文档 (3)
- 这是一个典型的非数值问题,如果使用非递归算法求解此问题,要设计复杂的算法,编写很长的程序。而使用递归算法可以使整个算法清晰,使程序简洁。本问题分析并建立递归算法的过程是典型的抽取问题本质、建立递归算法 并最终解决非数值问题递归实例。-This is a typical non_numerical value problem.you must design complicated arithmetic and long program if you use non_recursion arithm
新建 RTF 文档 (2)
- 这是一个典型的非数值问题,如果使用非递归算法求解此问题,要设计复杂的算法,编写很长的程序。而使用递归算法可以使整个算法清晰,使程序简洁。本问题分析并建立递归算法的过程是典型的抽取问题本质、建立递归算法 并最终解决非数值问题递归实例。-This one a typical one number value issue, is it is it belong to algorithm ask and solve this question to pass to use, design the com
新建 写字板文档 (2)
- 这是一个典型的非数值问题,如果使用非递归算法求解此问题,要设计复杂的算法,编写很长的程序。而使用递归算法可以使整个算法清晰,使程序简洁。本问题分析并建立递归算法的过程是典型的抽取问题本质、建立递归算法 并最终解决非数值问题递归实例。-This one a typical one number value issue, is it is it belong to algorithm ask and solve this question to pass to use, design the com
二叉树的所有程序
- 二叉树的结点数,叶子数,深度,遍历,非递归的遍历等等!!!
线索化二叉树遍历算法
- 本程序的主要功能在于先序输入一个二叉树,用三种递归,三种非递归进行遍历,并进行中序线索化以及其遍历,后进行中序去线索化,再进行后序线索化以及其遍历,最后后序去线索花进行中序遍历.程序的基本目的是了解二叉树的基本操作.
AVL树实现
- 纯C实现的AVL树,Demo是MFC的。非递归的遍历,完全支持添加、删除和搜索节点。设计灵活,容易扩展。以下是API struct tagAvlTree; typedef struct tagAvlTree AvlTree; struct tagAvlNode; typedef struct tagAvlNode AvlNode; struct tagAvlNode { AvlNode *left; AvlNode *right; int32_t height;
树的遍历操作
- 主要用MFC实现树的递归前序,中序,后序遍历,中序非递归遍历
二叉树的各种遍历方法—TreeVisit
- 包含二叉树先序、中序、后序的递归及非递归遍历,还有层次遍历、层次遍历从下到上、从左到右或者从右到左的遍历算法,并附加了测试代码
BinaryTree Visit,all methods
- 二叉树的所有遍历算法,包括前序、中序、后序的递归与非递归算法,还有层次遍历从上至下、从下至上、从左到右、从右到左遍历方法。
二叉树基本功能实现
- 实现了二叉树的建立,递归遍历,层次遍历,非递归遍历等。