搜索资源列表
hanoi.zip
- 不利用递归实现汗诺塔
rec_qsort.zip
- 使用递归实现的快速排序法
递归中序遍历排序二叉树
- 这是一个中序遍历二叉树的VC实现,要注意的是输入节点后,以-1结束-which is a binary tree traversal sequence VC, to pay attention to the input nodes, in the end -1
实验7 二叉树 北京师范大学数学科学院
- 自创的算法,输入表达式,建立二叉树的程序,然后输出前缀中缀后缀表示法,利用的对表达式的分割与递归实现输入,同时这也是一个完整的波兰式转换程序,相当稳健-own algorithm, the importation of expression, the establishment of the binary tree and then output the suffix prefix which is made up of the method, using the right expressio
背包问题的两种算法实现
- 本例编程实现背包问题的递归和非递归算法,让你彻底了解这种算法-the cases Programming knapsack problem of recursive and non - recursive algorithm, so you thoroughly understand this algorithm
递归算法快速排序
- 分而治之方法还可以用于实现另一种完全不同的排序方法,这种排序法称为快速排序(quick sort)。在这种方法中, n 个元素被分成三段(组):左段l e f t,右段r i g h t和中段m i d d l e。中段仅包含一个元素。左段中各元素都小于等于中段元素,右段中各元素都大于等于中段元素。因此l e f t和r i g h t中的元素可以独立排序,并且不必对l e f t和r i g h t的排序结果进行合并。m i d d l e中的元素被称为支点( p i v o t )。图1 4
cbi
- 计算组合数公式C(ele,sel)=A(ele,sel)/sel! 不用递归实现,放心使用-calculation formula portfolio C (ele, sel) = A (ele, sel) / sel! Recursive not achieved, the use of confidence
递归转递推的一个例子
- 递归转递推的一个例子,用c++实现。-pushed the recursive transmitting an example, using c achieve.
zyqueen
- 一个简单的递归实现八皇后算法-a simple recursive algorithm to achieve eight Queen's
xianxuxunhuan
- 二叉数先序循环的非递归实现,一般先序循环都是由递归实现的,按照完全二叉树格式输入字符型结点值-binary sequence a few first cycle of non - recursive, the general first order recursive cycle are achieved, In accordance with the format completely binary tree node input character values
Matrix
- 实现计算行列式的值功能,该程序利用递归实现了求解行列式的定义
Range
- 采用定义计算行列式,利用递归实现原理,可以理解递归算法。
a
- 递归实现折半查找的C++源程序,快速查找一个数在数列中位置.
2fen
- 算法设计中的一个问题。。这是一个递归实现的2分收索问题
TestTree
- 本程序实现了二叉树遍历算法的递归和非递归实现。
Java语言TSP递归程序的优化
- 因为递归程序运行的效率一般都比较低,本程序用java语言来实现TSP递归程序的优化-because recursive program run average efficiency are low, the procedure used java language to achieve TSP recursive process optimization
快速排序非递归算法(队列实现)
- 快速排序的非递归方法
asdas
- 算术表达式递归下降分析程序设计 编程实现给定算术表达式的递归下降分析器。 算术表达式文法如下: E E+T | T T T*F | F F (E) | i -Arithmetic expressions recursive descent analysis program design programming for a given arithmetic expression recursive descent pars
BTree 二叉树的遍历与应用
- 二叉树的建立,前序中序后序遍历,线索化,递归非递归遍历,查找前驱或后继结点,输出,菜单实现。-The establishment of a binary tree, inorder preorder postorder traversal, threaded, non-recursive traversal recursion, find precursor or successor nodes, output, menu implementation.
cycle_output
- 使用Python语言,利用递归的方式,实现顺时针输出整个矩阵中的每一个元素。同时还写了实现这个方法的超级简化版代码,体现了Python编程语言简洁的优点(Using Python language and recursive method, each element of the whole matrix can be output clockwise. At the same time, the simplified code to implement this method is also