Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCMF (Minimum Cost Maximum Flow) #30

Open
WonYong-Jang opened this issue Mar 16, 2019 · 0 comments
Open

MCMF (Minimum Cost Maximum Flow) #30

WonYong-Jang opened this issue Mar 16, 2019 · 0 comments

Comments

@WonYong-Jang
Copy link
Owner

WonYong-Jang commented Mar 16, 2019

MCMF

  • 최소 비용을 구하여 그 최소 비용에 해당하는 간선으로 최대 유량을 구하는 문제
  • 최소 비용이라 함은 최단 거리를 구하는 문제가 되고 이때, 최단 거리는 최단 거리알고리즘을
    쓰면 되지만, 이 문제에서는 비용이 음수가 될 수 있기에 벨만 포드 알고리즘을 써도 가능
    하지만 벨만포드 성능을 향상시킨 SPFA 알고리즘 이용
  • SPFA 를 통한 최소 비용을 구하고 그때의 최대 유량을 구하면 되니 결과값은
    경로 비용의 합 * 유량

11408 열혈강호 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant