//P155 增加上界函数 public class Loading1 { //类数据成员 static int n; //集装箱数 static int[] w; …
BackTrack 源代码
BackTrack,是一套专业的计算机安全检测的Linux操作系统,简称BT。
#include #include #define max_board 30 int sum=0; // 计数所得解数目 int x[max_board]; // 存放当前解的向量 int board_size; …
#include #include # define max_board 30 int sum=0; // 计数所得解数目 int x[max_board]; // 存放当前解的向量 int board_size; …
#include #include #define LEN 1000 /**********************************************/ /* 存放物品重量wight[],价值value[] */ /* …
function [xHat,wHat,nv,nf,nl] = SEA_det(m,xMax,y,H,cplx) % % [xHat,wHat,nv,nf,nl] = SEA_det(m,xMax,y,H,cplx) % % Given inputs - % …
// QUEEN.cpp: implementation of the CQUEEN class. // ////////////////////////////////////////////////////////////////////// #…
// Circle.cpp: implementation of the CCircle class. // ////////////////////////////////////////////////////////////////////// …
// adjacency matrix representation of a graph #include class Clique { friend MaxClique(int**, int[],int); public: vo…
#include #include #include class Queen {friend nQueen(ofstream&,int); private: bool Place(int); void Backtrac…
// ANPAI.cpp: implementation of the CANPAI class. // ////////////////////////////////////////////////////////////////////// #…