ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1099. Work Scheduling

1099,Do we need blossoms?
Posted by Longman 2001 @Killer team ZJU 3 Jun 2001 14:46
I've used the algorithm for bipartite graph to this
problem,and it got WA.So i refer to some graph theory
book,it says that we must handle blossoms,but it did not
say why this!From my test data the bipartite graph
algorithm works fine!Can anybody explain this to me?Or give
out some counter examples that the bipartite graph
algorithm fails...
Re: 1099,Do we need blossoms?
Posted by Petko Minkov 4 Jun 2001 01:38
I asked about this problem. There are some "flowers" things
that make the bipartite algorithm to fail. IT's based on
a true theorem, but the DFS fails. However, I do the
following thing - DFS, but observse the edges in random
way, not for(i=1;i<=n;i++) and things like that but a
permutation.
Damn, i think my English is not good :)))
Re: 1099,Do we need blossoms?
Posted by Jivko Ganev 4 Jun 2001 19:50
I have generated case(not randomly) where your solution
fails. But it is not uploaded, expect rejudge.