Search found 5 matches

by davidsun
Sun Aug 23, 2009 2:57 am
Forum: Volume 116 (11600-11699)
Topic: 11647 - Judgment Day
Replies: 1
Views: 887

Re: 11647 - Judgment Day

Ok, finally, I understand why a judge can judge a segment of participants... A maximum flow with minimum cost algorithm can be used.
by davidsun
Sun Aug 23, 2009 2:24 am
Forum: Volume 116 (11600-11699)
Topic: 11647 - Judgment Day
Replies: 1
Views: 887

11647 - Judgment Day

This is quite a strange problem. I have been thinking about the algorithm for a long time. I tried to solve this problem using maximum flow with minimum cost, but at last, I didn't come up with the right solution. Also, I don't know whether a greedy algorithm exists.
So, can someone give some ...
by davidsun
Fri May 23, 2008 3:15 am
Forum: Algorithms
Topic: MinCost MaxFlow code
Replies: 20
Views: 18677

Re: MinCost MaxFlow code

I have a problem on UVA 3562... I used Igor's code to find the min cost, and then negated all the edges. I tried to use BellmanFord algorithm to find every circle with negative cost, and delete them. So, At last, my algorithm could get the max cost. But, I got WA and my program ran really slowly ...
by davidsun
Thu May 22, 2008 2:56 pm
Forum: Algorithms
Topic: MinCost MaxFlow code
Replies: 20
Views: 18677

Re: MinCost MaxFlow code

I have a problem on UVA 3562... I used Igor's code to find the min cost, and then negated all the edges. I tried to use BellmanFord algorithm to find every circle with negative cost, and delete them. So, At last, my algorithm could get the max cost. But, I got WA and my program ran really slowly - 2 ...
by davidsun
Fri Apr 11, 2008 3:13 pm
Forum: Volume 113 (11300-11399)
Topic: 11354 - Bond
Replies: 13
Views: 8944

Re: 11354 - Bond

I really want to know what your algorithm is. I know I can use a segment tree or something like this, but I really don't know HOW to use it.
I'm interested in your O(log N) solution, so can you explain it more carefully, or do you have any lecture about it?

Go to advanced search