搜索资源列表
tree
- 二叉树的非递归遍历算法 可以直接上交,方便实用
tree-
- 树的非递归深度遍历,安全方便可以直接下载上交
datastructure
- 设计邻接表类,实现无向图的深度优先非递归遍历,无向图的广度优先遍历,并设计主函数输入数据进行测试
KNIGHT
- 在西洋棋中的武士与象棋中的马相似,走的都是L形的路,本程序以一个非递归的程序,输入一个表示棋盘的大小值n,在输入一个起点的坐标,找出一条从第一格起可以让武士棋走完n2格而不重复的路径。
dfs
- 数据结构里的dfs算法,包括递归与非递归。用vc6.0编写-data structure, the dfs algorithms, including recursive and non - recursive. Prepared with vc6.0
数据结构的一些较难题答案
- 有许多是考研要用的!三路归并算法,快速排序的非递归算法,无向连通图的非递归的深度优先遍历等,,希望大家用得着-many are taking tests to use! Three road merging algorithm, rapid sequencing of non - recursive algorithm, undirected graph of the non - recursive depth-first traver
testcfindfileext
- 大家经常需要对指定目录下的所有文件进行搜索或其它相同操作。若文件数很多,逐一对每个文件手工操作,很费时。这里提供一个搜索或处理指定目录下的所有文件的C++类。作者用基于层次遍历的非递归算法(以减少运行时的时间和空间开销)实现了一个 CFileFind 的扩展类 CFileFindExt,该类可以对指定目录下的所有文件进行搜索或相同的处理操作。-designated directories on the search for all d
DFS算法的非递归函数
- 我的数据结构作业 是比较经典的算法 请大家参考-operating data structure is more classical algorithm please refer to
knap
- 用贪婪法的策论,用非递归实现背包问题的求解,并求出放如背包中的物品.-greedy law with political discourse, the use of non - recursive Knapsack Problem Solving and sought release if the items backpack.
maze4444
- 由系统随机建立一个迷宫,然后屏幕输出路径。为在完成作业的同时复习所学过的内容,完成一条路径的时候用到了递归的方法 而做全部路径的时候用非递归的方法。用户界面友好,有用户使用说明.每一步操作都有说明与提示。程序运行通过,有详细的解释说明-system by the establishment of a random maze, and then screen output path. For the complete review of
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 mo
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 i
马踏棋盘(第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 require
cw_bitree
- 与清华大学版的《数据结构》匹配二叉树的实现:BITREE1.CPP:为主程序,其中实现了递归算法以及非递归算法的前序遍历,中序遍历,后序遍历。TSTACK1.H: 为头文件,其中定义了一些常量的值,其中也包括了书中第三章的栈的实现,只需要将注解符去掉即可。运行环境为:VC++6 或 TC3-and Tsinghua University version of the "data structure" matching
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 maxs
诺汉塔画图版
- 汉诺塔算法。数据结构经典常用算法,非递归算法图形版-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 r
马踏棋盘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 r
新建 RTF 文档 (3)
- 这是一个典型的非数值问题,如果使用非递归算法求解此问题,要设计复杂的算法,编写很长的程序。而使用递归算法可以使整个算法清晰,使程序简洁。本问题分析并建立递归算法的过程是典型的抽取问题本质、建立递归算法 并最终解决非数值问题递归实例。-This is a typical non_numerical value problem.you must design complicated arithmetic and long program i