代码搜索:递归回溯
找到约 2,805 项符合「递归回溯」的源代码
代码结果 2,805
www.eeworm.com/read/379991/9169501
cpp (循环)(回溯).cpp
#include
#include
#include
int main ( int argc, char * argv[])
{ int q[1024]; int i, j, k, c, n; time_t tm;
switch ( argc )
{ case 1: n = 11; break;
case
www.eeworm.com/read/358598/10184102
rar 回溯算法.rar
www.eeworm.com/read/469156/6978575
pdf 16 回溯.pdf
www.eeworm.com/read/466339/7033983
cpp 回溯法.cpp
/*
以深度优先的方式系统地搜索问题的解的算法称为回溯法
它适用于解一些组合数较大的问题
*/
/*
在用回溯法搜索解空间树的时候,通常采用两种策略来避免无效搜索,提高回溯法的搜索效率
。其一是用约束函数在扩展结点处剪去不满足约束的子树,其二是用限界函数剪去不能得到最
优解的子树。这两类函数统称为剪枝函数。
运用回溯法的三个步骤:
(1)针对所给问题,定义问题的解空间
(2)确 ...
www.eeworm.com/read/299577/7844548
dsw 回溯法.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
www.eeworm.com/read/299577/7844553
cpp 回溯法.cpp
#include
#include
#include
#include
using namespace std;
inline int good(int x,int y,int s[30][30],int n)
{
if(x>=0&&x=0&&y
www.eeworm.com/read/299577/7844557
plg 回溯法.plg
Build Log
--------------------Configuration: 回溯法 - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\luotuo\LO
www.eeworm.com/read/299577/7844561
opt 回溯法.opt
www.eeworm.com/read/299577/7844562
ncb 回溯法.ncb
www.eeworm.com/read/299577/7844570
dsp 回溯法.dsp
# Microsoft Developer Studio Project File - Name="回溯法" - Package Owner=
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Conso