代码搜索:递归回溯

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

代码结果 2,805
www.eeworm.com/read/460348/7253021

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
www.eeworm.com/read/460348/7253033

c tree_preorder_nrec.c

/* 树的先根周游的非递归算法*/ #include #include typedef int DataType; #define MAXNUM 20 /* 栈中最大元素个数 */ struct SeqStack { /* 顺序栈类型定义 */ DataType s[MAXNUM]; int t
www.eeworm.com/read/452964/7428586

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/438832/7725771

sh ex63.sh

#!/bin/bash # 阶乘 # ---- # bash允许递归吗? # 嗯, 允许, 但是... # 他太慢了, 所以恐怕你难以忍受. MAX_ARG=5 E_WRONG_ARGS=65 E_RANGE_ERR=66 if [ -z "$1" ] then echo "Usage: `basename $0` nu
www.eeworm.com/read/433514/7924973

c dg.c

//阶乘的递归算法 unsigned long f(unsigned n) reentrant { if (n
www.eeworm.com/read/198320/7940438

c 习题4-二叉树左右子树交换.c

#include "datastru.h" #include #include #include "二叉树.c" BTCHINALR *change(BTCHINALR *bt) /*二叉树左右子树交换递归算法*/ { BTCHINALR *p; if(bt!=NULL) if(bt->lchild!=NULL |
www.eeworm.com/read/144420/12796030

java recur-02.java

//=====================程序描述================== //程序名称:recur-02.java //程序目的:演示递归方法反向输出一个字符串 //作者:张中强 //=====================程序描述================== class recur02 { static String str=null; stati
www.eeworm.com/read/143612/12856508

c dg.c

//阶乘的递归算法 unsigned long f(unsigned n) reentrant { if (n
www.eeworm.com/read/244241/12876981

h visit2.h

#include void preorder(TREE2 * head) /*pre-order前序遍历(递归法)*/ { TREE2 * j=head; if(j!=NULL) { printf("%c",j->data); j->access=0; /*清除Access标记*/ preorder(j->llin
www.eeworm.com/read/243219/12954554

c nqueuefei.c

//n皇后问题的非递归算法 #include #define MaxStackSize 100 typedef int DataType; #include"SeqStack.h" int n, result=0, line[100]; int main() { int i, j, t; //int stack[100]; //栈顶记录当前行