2012年11月10日
摘要: POJ_2989 求极大团的数量,我的程序是参照维基上的伪代码写的http://en.wikipedia.org/wiki/Bron%E2%80%93Kerbosch_algorithm。#include<stdio.h>#include<string.h>#define MAXN 130int N, M, a[MAXN], g[MAXN][MAXN];void input(){ memset(g, 0, sizeof(g)); for(int i = 0; i < M; i ++) { int x, y; scanf("%d%d", & 阅读全文
posted @ 2012-11-10 23:04 Staginner 阅读(922) 评论(0) 推荐(0) 编辑