代码搜索:递归回溯

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

代码结果 2,805
www.eeworm.com/read/362558/9992847

txt 6_8.txt

int PostTreeDepth(BiTree bt) /* 后序遍历求二叉树的高度递归算法 */ { int hl,hr,max; if(bt!=NULL) { hl=PostTreeDepth(bt->LChild); /* 求左子树的深度 */ hr=PostTreeDepth(bt->RChild); /* 求右子树的深度 */ max=hl>hr
www.eeworm.com/read/423311/10571042

m mat_inv.m

function iA=mat_inv(A) %MAT_INV 函数用来演示矩阵的递归分块求逆。 % % iA=mat_inv(A) % % 其中,A 为原矩阵, iA 为逆矩阵。 %Designed by Prof D Xue (c) 2000 [nr,nc]=size(A); if nr==nc switch nr case 1, iA=
www.eeworm.com/read/277584/10618362

cpp lab2.cpp

//底向上非递归 #include using namespace std; void Merge(int c[],int c1[],int l,int m,int r) { int i,j,k; i=l; j=m+1; k=l; while((i
www.eeworm.com/read/351570/10639569

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/349837/10797850

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/416681/11017986

txt 4.3readme.txt

要点: 找最小的两个数,用分治将大问题化为小问题,本题主要观察是用递归方法来实现分治的思想。 input 10 output 10 2.0 5.8 8.9 11.4 13.2 14.4 15.0 14.9 14.2 12.8 2.0 5.8
www.eeworm.com/read/227643/6939876

bas mod_retree.bas

Attribute VB_Name = "Mod_Retree" Option Explicit '用递归算法删除带有多级子目录的目录 Sub RecurseTree(CurrPath As String) On Error GoTo ErrorHandle SetAttr CurrPath, vbNormal '此行主要是为了检查文件夹名称的有效性
www.eeworm.com/read/466563/7029080

java factorialtest.java

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

c maze_nrec.c

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

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