欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

Implementation of Edmonds Karp algorithm that calculates maxFlow of graph. Input: For each test c

JavaScript 2 K 199 次下载

资源详细信息

文件格式
RAR
文件大小
2 K
资源分类
上传者
发布时间
下载统计
199
所需积分
2 积分

Implementation of Edmonds Karp algorithm that calculates maxFlow of graph. Input: For each test c - 资源详细说明

Implementation of Edmonds Karp algorithm that calculates maxFlow of graph. Input: For each test case, the first line contains the number of vertices (n) and the number of arcs (m). Then, there exist m lines, one for each arc (source vertex, ending vertex and arc weight, separated by a space). The nodes are numbered from 1 to n. The node 1 and node n should be in different sets. There are no more than 30 arcs and 15 nodes. The arc weights vary between 1 and 1 000 000. Output: The output is a single line for each case, with the corresponding minimum size cut. Example: Input: 7 11 1 2 3 1 4 3 2 3 4 3 1 3 3 4 1 3 5 2 4 6 6 4 5 2 5 2 1 5 7 1 6 7 9 Output: 5

Implementation of Edmonds Karp algorithm that calculates maxFlow of graph. Input: For each test c - 源码文件列表

本资源包含 1 个源码文件 支持在线预览,点击文件名即可查看

温馨提示:点击文件名或"查看源码"按钮可在线浏览源代码,支持语法高亮显示。

立即下载 Implementation of Edmonds Karp

提示:下载后请用压缩软件解压,推荐使用 WinRAR 或 7-Zip

下载说明与使用指南

下载说明

  • 本资源需消耗 2积分
  • 24小时内重复下载不扣分
  • 支持断点续传功能
  • 资源永久有效可用

使用说明

  • 下载后使用解压软件解压
  • 推荐使用 WinRAR 或 7-Zip
  • 如有密码请查看资源说明
  • 解压后即可正常使用

积分获取方式

  • 上传优质资源获得积分
  • 每日签到免费领取积分
  • 邀请好友注册获得奖励
  • 查看详情 →

相关技术标签

点击标签浏览更多相关JavaScript资源:

相关JavaScript资源推荐