简体   繁体   English

将分配问题转换为最大流量问题

[英]convert assignment problem to The Maximum Flow Problem

According to the article I read in this link, the assignment problem can be turned into a maximum flow problem under certain conditions.根据我在此链接中阅读的文章,在某些条件下,分配问题可以变成最大流问题。 I know about the conversion of the minimum-cost flow problem, but I want to know from this method and under what conditions this problem becomes the maximum flow problem?我知道最小成本流问题的转换,但是我想知道从这个方法中,这个问题在什么条件下变成最大流问题?

An assignment problem can be converted to a single maximum flow problem when all the allowed assignments have exactly the same weight.当所有允许的分配具有完全相同的权重时,分配问题可以转换为单个最大流问题。 The idea is to make a bipartite graph (plus global source and sink nodes) with a capacity 1 edge between each person and each allowed task for that person and see if you can find a flow with value equal to the number of people available.这个想法是制作一个二分图(加上全局源和汇节点),每个人和每个允许的任务之间的容量为 1 边,看看你是否能找到一个价值等于可用人数的流。 If you can, then the flow represents the allocation of people to tasks.如果可以,那么流程代表了人员对任务的分配。

The article explains how a more general assignment problem can also be converted to solving a series of maximum flow problems.本文解释了如何将更一般的分配问题也转化为解决一系列最大流问题。 (The assignment problem can be converted into a minimum-cost flow problem. One method of solving a minimum-cost flow problem is the Kuhn-Munkres Algorithm. The Kuhn-Munkres Algorithm works by solving lots of maximum matching problems. Each of these maximum matching problems can be converted into a maximum-flow problem.) (分配问题可以转换为最小成本流问题。解决最小成本流问题的一种方法是 Kuhn-Munkres 算法。Kuhn-Munkres 算法通过解决许多最大匹配问题来工作。这些最大值中的每一个匹配问题可以转化为最大流量问题。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM