二分图判定算法(邻接矩阵广度遍历)

上传者: wucs32 | 上传时间: 2021-07-03 19:56:36 | 文件大小: 34KB | 文件类型: RAR
for (j = 1; j <= Pub.Vertexnum; j++) { if (Pub.color[j] == -1) Pub.color[j] = 0; for (i = 1; i <= Pub.Vertexnum; i++) { if (Pub.graphs[j, i] == 1) { if (Pub.color[i] == -1) { Pub.color[i] = 1 - Pub.color[j]; } else if (Pub.color[j] == Pub.color[i]) { return false; } } } } if (Pub.Vertexnum != 0 &&j==Pub.Vertexnum + 1) { return true; } else return false;

文件下载

资源详情

[{"title":"( 21 个子文件 34KB ) 二分图判定算法(邻接矩阵广度遍历)","children":[{"title":"二分图判定","children":[{"title":"ReadeMe.txt <span style='color:#111;'> 234B </span>","children":null,"spread":false},{"title":"Bipartite Graph","children":[{"title":"Bipartite Graph.suo <span style='color:#111;'> 20.50KB </span>","children":null,"spread":false},{"title":"Bipartite Graph.sln <span style='color:#111;'> 938B </span>","children":null,"spread":false},{"title":"Bipartite Graph.cpp","children":[{"title":"Form1.cs <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"Bipartite Graph.csproj <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Bipartite Graph.exe <span style='color:#111;'> 24.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Bipartite Graph.csproj.FileList.txt <span style='color:#111;'> 344B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Bipartite_Graph.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Bipartite Graph.csproj.GenerateResource.Cache <span style='color:#111;'> 842B </span>","children":null,"spread":false},{"title":"Bipartite_Graph.cpp.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Bipartite Graph.cpp.exe <span style='color:#111;'> 24.00KB </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"Bipartite Graph.cpp.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 474B </span>","children":null,"spread":false},{"title":"Bipartite.cs <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 8.10KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 6.75KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • zm526001314 :
    不是自己想要的c语言写的
    2014-12-15
  • wangong :
    可以参照进行学习
    2013-05-23
  • quanruiwen :
    学习了跟自己想要的还差一些
    2013-04-27

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明