着色问题
摘要:
转自:http://www.cnblogs.com/qinyg/archive/2012/06/19/2543583.html#include<stdio.h>int color[100];//int c[100][100];bool ok(int k ,int c[][100])//判断顶点k的着色是否发生冲突{ int i,j; for(i=1;i<k;i++) if(c[k][i]==1&&color[i]==color[k]) return false; return true;}void graphcolor(int n,... 阅读全文
posted @ 2012-06-19 22:20 矮人狙击手! 阅读(213) 评论(0) 推荐(0) 编辑