搜索资源列表
马踏棋盘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;
迷宫求解的非递归算法
- #include #include #include #define N 20 int aa[N][N]; int yes=0; int x[100][2],n=0; void fun1(int (*aa)[N],int (*a)[N]); int fun(int (*a)[N],int i,int j); void begain(int (*t)[N]); void pr(int (*t)[N],int nn); void win(int (*t)[N]); void lose(); void
yufafenxi.rar
- 语法分析器是函数绘图语言解释器的核心,因此语法分析器的构造是整个解释权构造的关键。语法分析器的构造分为两个重要步骤:规定语言的文法和根据文风编写程序。由于采用递归下降子程序方法,因此在文法的设计上要求是LL(1)文法。具体到此绘图语言,需要构造语法树的语言结构仅限于表达式,因为后继语义处理需要对表达式求值,而对语法树进行遍历即可得到表达式的值。 我们最终构造的是递归下降的语法分析器,要求文法是LL(1)文法,因此需要对二义文法进行改造:即先将文法改写为非二义文法,消除左递归,提取公共左因子,
qipan.rar
- 设计一个国际象棋的马踏棋盘的演示程序。以一二维数组Board[8][8]表示国际象棋棋盘,以用户输入任一位置作为马的起始位置,设为(i,j),其中0≤i,j≤7,马按照走棋的规则在棋盘范围内进行移动。本程序只求出一种遍历路径,用非递归程序实现吗的行走路线。,To design a chess board horse riding demo program. A two-dimensional array Board [8] [8] that the chess board to the user
quicksort
- 快速排序[非递归]算法 by buptwugh-Quick sort [non-recursive] algorithm made by buptwugh
migongqiujie
- 可以输入一个任意大小的迷宫数据,用非递归的方法求出一条走出迷宫的路径,并将路径输出-You can enter a maze of any size data obtained with a non-recursive way out of the labyrinth path and output path
数据结构中关于单链表的算法
- 数据结构中关于单链表的算法,将两个链表有序链合并成一个非递归有序的单链表,并不占用其他的存储空间,data structure of single-chain algorithm Listless and orderly of the two chains merged into a non- recursive and orderly single linked list, does not occupy other storage space
sudoku
- 用C++编写的数独游戏,采用回溯法,非递归,计算超快,代码精炼,注解详细-Using C++ Game Sudoku prepared using retrospective law, non-recursive calculation of ultrafast, code refining, detailed comments
19840356
- 阿克曼函数的非递归算法,一种非常经典的函数,数据结构中的典型函数-Ackermann function is non-recursive algorithm, a very classic function, data structure typical function
HanoiStack
- 建立抽象基类栈Stack及其派生类顺序栈,然后利用栈实现汉诺塔问题的非递归算法。-Non-recursive algorithm of Hanoi Tower using Stack
code
- 1、猴子选大王 2、约瑟夫环 3、迷宫求解 4、回文游戏 5、地图四染色问题 6、八皇后问题 7、原四则表达式求值 8、k阶斐波那契序列 9、遍历二叉树 10、编写DFS算法的非递归函数。 编写BFS算法。 11、简单选择排序, 折半插入排序, 冒泡排序, 快速排序, 堆排序 12、顺序查找,折半查找-err
yufafenxiqi
- 语法分析器(C++)源代码+其详细的课程设计报告 输入的文法可以消除左递归并提取公共左因子求出文法的非终结集合——FIRST和FOLLOW集并对输入的算符优先文法,构造算符优先关系表 -Parser (C++) Source code its detailed report on curriculum design input left recursive grammar can be eliminated and the public left factor extract der
datastructure
- 非递归创建二叉树.并且用非递归算法实现对二叉树的前序、中序、后序和广度遍历。 实现语言:C-Create a binary tree non-recursive. And the use of non-recursive algorithm for binary tree of the former order, in sequence, after the traversal sequence and breadth. Implementation language: C
DFSfunction
- DFS非递归函数 函数功能:图的dfs的非递归算法(用堆栈实现) 输入:图的邻接矩阵 输出:dfs序列 -DFS non-recursive function function function: dfs map non-recursive algorithm (using the stack to achieve) Input: adjacency matrix graph output: dfs sequence