Doubt in Flow modelling

Revision en1, by ujzwt4it, 2016-09-25 14:07:59

I was trying to solve this problem http://codeforces.com/gym/100703/problem/F

In the discussion given, people have discussed about DP and flows solution to the problem. The DP is well understood.

Can someone please explain the flows solution for the problem?

Also, is there a way to ensure exactly k edges are selected in the min-cut of a network?

Thanks in advance.

Tags flows, #gym

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ujzwt4it 2016-09-25 14:07:59 402 Initial revision (published)