摘要:
图的着色问题,转换为最大团问题,只有黑色不相邻就行。1419void clique(int n, int* u, int mat[][MAXN], int size, int& max, int& bb, int* res, int* rr, int* c) { int i, j, vn, v[MAXN]; if (n) { if (size + c[u[0]] <= max) return; for (i = 0; i < n + size - max && i < n; ++ i) { for (j = i + 1, vn = 0; j & 阅读全文
posted @ 2011-06-08 17:24 MDeath-Kid 阅读(255) 评论(0) 推荐(0) 编辑