代码搜索:递归回溯

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

代码结果 2,805
www.eeworm.com/read/386824/8723814

cpp low to hight.cpp

#include using namespace std; bool charge_no(int a[], int n)// 非递归调用函数 { int i; for(i=0;ia[i+1]) return false; } } bool charge_yes(int a[], int n)//
www.eeworm.com/read/360728/10080757

m fractree.m

function Fractree(ss,ms,sf,A); % 递归法生成分形树 % ss is Starting size % ms is Minimum Size % sf is Shrink Factor % A is Angle A=A/180*pi; L=ss; jd=pi/2; z=0; cla; hold on; [z,jd,L]=r
www.eeworm.com/read/274718/10856965

cpp 3_13.cpp

#include using namespace std; long ComputFactor(int n) //计算n! { long f; if (n
www.eeworm.com/read/460348/7252955

c tree_inorder_rec.c

/* 树的中根周游的递归算法*/ #include #define MAXNUM 20 #define null -1 /* typedef int DataType; */ struct ParTreeNode { /*DataType info; 结点中的元素 */ int parent; /* 结点的父结点位置 */ }
www.eeworm.com/read/460348/7253000

c tree_postorder_rec.c

/* 树的后根周游的递归算法*/ #include #define MAXNUM 20 #define null -1 /* typedef int DataType; */ struct ParTreeNode { /*DataType info; 结点中的元素 */ int parent; /* 结点的父结点位置 */ };
www.eeworm.com/read/460348/7253013

c simknap_rec.c

/* 简化背包问题的递归算法*/ #include #include int knap(int s, int n, int w[]) { if ( s == 0 ) return (1); else if ( s0 && n
www.eeworm.com/read/441423/7670583

cpp mazerecursiontotalpath.cpp

// //**********************程序说明******************************* // 该程序是迷宫问题递归求解全部路径的C语言代码, // 迷宫二维数组表示,初值与教材图3.4一致 // wjluo,2004年3月3日 //****************************************************
www.eeworm.com/read/399521/7854460

cpp 24.cpp

#include #include using namespace std; //设置全局变量和常量 double number[4]; const double PRECISION = 1E-6; //递归计算24 bool calculate(int n) { //end if(n==1) {
www.eeworm.com/read/145817/12700686

java gcd.java

// =============== Program Description =============== // 程序名称: gcd.c // 程序目的: 运用递归设计一个求两数之最大公因数的程序 // Written By Kuo-Yu Huang. (WANT Studio.) // ===
www.eeworm.com/read/145150/12749238

cpp mazerecursiontotalpath.cpp

// //**********************程序说明******************************* // 该程序是迷宫问题递归求解全部路径的C语言代码, // 迷宫二维数组表示,初值与教材图3.4一致 // wjluo,2004年3月3日 //****************************************************