iriszero   8년 전

0번을 source, N+M+1번을 sink

사람은 1~N, 작업은 N+1~ N+M까지


capacity는

a. src와 사람은 2

b. 사람과 작업은 1

c. 작업과 sink는 1


로 해서 maximum flow 를 구했는데 accepted를 못 받았습니다.


어디가 잘못된 건지 알 수 있을까요?


https://en.wikipedia.org/wiki/Edmonds%E2%80%93Karp... 의 pseudo code 참고했습니다.

iriszero   8년 전

@cubelover 죄송한데 이유를 좀 알 수 있을까요???

댓글을 작성하려면 로그인해야 합니다.