一道算法题 伪代码解题
The Edmonds-Karp algorithm for max flow finds shortest augmenting paths in the residual network. Consider the pseudo-code for Ford-Fulkerson on page 724 of your text, and replace the condition for the while-loop with pseudo-code that constructs the residual network Gf and then finds a shortest augmenting path p in that residual network. Your pseudo-code should run in O(E) time for each iteration of the while-loop.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论