1. 首页
  2. 游戏开发
  3. Unity3D
  4. 张乃孝版的数据结构课本课件讲解代码colorUp.c.doc

张乃孝版的数据结构课本课件讲解代码colorUp.c.doc

上传者: 2020-12-12 10:41:40上传 DOC文件 24KB 热度 6次
/*colorUp.c*/ int colorUp(Graph G) { int color = 0; //记录使用的颜色数 set V1 = G.V; //V1初始化为图G的结点集V set NEW; while!isEmpty(V1) { NEW = {}; while (v ?V1 notAdjacentWith(NEW, v, G) { add(NEW,v; remove(V1,v; }
下载地址
用户评论