I am confused on the second solution with min-cost flow. Specifically, what do they mean in the second paragraph which starts "Unfortunately, the permutation of cows ..."?
Problem: http://usaco.org/index.php?page=viewproblem2&cpid=248 Solution http://usaco.org/current/data/sol_taxi.html