摘要:
#if 1#include<iostream>using namespace std; class Color { friend int mColoring(int, int, int**);private: bool Ok(int k);//检查颜色可用性 void Backtrack(int t 阅读全文
摘要:
#include<iostream>#include<algorithm>using namespace std;#define MAX 999; class Flowshop { friend int Flow(int** M, int n, int* bestx);private: void B 阅读全文
摘要:
#if 0#include<iostream>using namespace std;#define maxint 999 template<class Type> void Prim(int n, Type ** c) {//c[i][j]表示边(i,j)的权值,n是顶点个数 Type *lowc 阅读全文
摘要:
#include<iostream>using namespace std; class Loading { friend int MaxLoading(int* w, int c, int n, int* bestx);private: void Backtrack(int i); int n;/ 阅读全文