代码搜索:递归回溯

找到约 2,805 项符合「递归回溯」的源代码

代码结果 2,805
www.eeworm.com/read/393250/8302276

txt 5.34.txt

void Reverse(GList &L) /* 递归逆转广义表L */ { GLNode *a[50]; GList p; int i; if(L->tag||L->un.ptr.tp){ for(i=0,p=L;p;p=p->un.ptr.tp,i++) { if(p->un.ptr.hp)
www.eeworm.com/read/411734/11230653

cpp algo0706.cpp

void BFSTraverse(Graph G, Status (*Visit)(int v )) {// 算法7.6 // 按广度优先非递归遍历图G。使用辅助队列Q和访问标志数组visited。 QElemType v,w; queue Q; QElemType u; for (v=0; v
www.eeworm.com/read/133210/14052113

cpp test.cpp

//实验三 消除产生式左递归 #include #include #include"subg.h" void main() //注解请见本目录下的实验报告...... { sub_G g; ifstream infile; ofstream outfile; infile.open("input.txt");
www.eeworm.com/read/205100/15326520

txt factorial.txt

{递归调用测试} {功能:对于输入n,输出n的阶乘} program sd var integer s; integer t; procedure factor(integer n;var integer m); var integer w; begin if n=0 then m:=1 else factor(n-1,w); m:=n*w fi en
www.eeworm.com/read/205098/15326669

txt factorial.txt

{递归调用测试} {功能:对于输入n,输出n的阶乘} program sd var integer s; integer t; procedure factor(integer n;var integer m); var integer w; begin if n=0 then m:=1 else factor(n-1,w); m:=n*w fi en
www.eeworm.com/read/204479/15337797

c maze_nrec.c

/* 迷宫问题的非递归算法(栈实现)*/ #define MAXNUM 100/* 栈中最大元素个数 */ #define N 11 /*地图的第一维长度*/ #include #include typedef struct { int x;/* 行下标 */ int y;/* 列下标 */
www.eeworm.com/read/201037/15418046

cpp binarysortinsert.cpp

bsnodetype *BinarySortInsert(bsnodetype *t,keytype key,bsnodetype *p) /*在以t为根结点的二叉排序树上查找(不存在时插入)关键字为key结点的*/ /*非递归算法*/ { bsnodetype *s; if(t==NULL) { t=p; return t;
www.eeworm.com/read/111298/15514866

cpp binarysortinsert.cpp

bsnodetype *BinarySortInsert(bsnodetype *t,keytype key,bsnodetype *p) /*在以t为根结点的二叉排序树上查找(不存在时插入)关键字为key结点的*/ /*非递归算法*/ { bsnodetype *s; if(t==NULL) { t=p; return t;
www.eeworm.com/read/106331/15639150

java factorialtest.java

/** 一个简单的应用程序,用来说明递归结构使用 * 程序功能:求n! * @作者:尉哲明 * @日期:2001年5月 */ /** 类FactorialTest */ class FactorialTest{ /** Factorial()方法,用来求n! */ static long Factorial(int n){ if(n==1
www.eeworm.com/read/292235/8365794

cpp bool.cpp

//布尔表达式的文法 //B--->B or L|L //L--->L and M | M //M --->not M | k //K--->(B) | i | true | false //i ---> iSi //S ---> | < | > | = | = //改为无左递归的文法为: //B ---> LB1 | L //B1 --->or L B1