代码搜索:递归回溯

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

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

txt 6.37.txt

void PreOrder(BiTree bt, void (*visit)(TElemType)) /* 使用栈,非递归先序遍历二叉树bt, */ /* 对每个结点的元素域data调用函数visit */ { Stack s; InitStack(s); BiTNode *p; Push(s,bt); while(!StackEmp
www.eeworm.com/read/270093/11048861

cpp 快速排序算法.cpp

//快速排序递归算法 #include #include int QKPass(int r[], int low, int high) { int k0,Pkey=r[low]; r[0]=r[low]; while(low
www.eeworm.com/read/269043/11110597

cpp 快速排序算法.cpp

//快速排序递归算法 #include #include int QKPass(int r[], int low, int high) { int k0,Pkey=r[low]; r[0]=r[low]; while(low
www.eeworm.com/read/411408/11246416

cpp 00017.cpp

/* 名称编号:00017 实现功能:递归求和fibonaccai 条件如下: (1)若n=1, fib(1)=1; (2)若n=2, fib(2)=1; (3)若n>2, fib(n)=fib(n-1)+fib(n-2); 运行结果:通过 */ /*******************************************************/ #
www.eeworm.com/read/249069/12524656

txt 例4.11.txt

例4.11 用递归方法求n!。 有了例4.10的基础,很容易写出本题的程序: #include using namespace std; long fac(int); //函数声明 int main( ) {int n; //n为需要求阶乘的整数
www.eeworm.com/read/238066/13909520

txt 例4.11.txt

例4.11 用递归方法求n!。 有了例4.10的基础,很容易写出本题的程序: #include using namespace std; long fac(int); //函数声明 int main( ) {int n; //n为需要求阶乘的整数
www.eeworm.com/read/134246/14000119

h 1.h

#include"iostream.h" #include"math.h" #define size 21 class zishu { int * c; int a[size][size]; int * mark; int path[size]; int court; int l; //判断是否为倒栈 和放到递归内一样 public
www.eeworm.com/read/134147/14003788

c 09.c

#include int divi (int n, int m) /*定义一个递归函数divi(),用来实现整数的划分*/ {if(m
www.eeworm.com/read/204479/15337764

c bintree_postorder_nrec.c

/* 二叉树后根周游的非递归算法*/ #include #include typedef char DataType; struct BinTreeNode; /* 二叉树中结点 */ typedef struct BinTreeNode *PBinTreeNode; /* 结点的指针类
www.eeworm.com/read/204479/15337827

c graph_deeptravel_adjmat_nrec.c

/* 用邻接矩阵表示的图的深度优先周游的非递归算法*/ #include #include #define MAXVEX 6 #define MAX 0 #define NON -1 typedef char VexType; typedef float AdjType; typedef struct { int