11383 - Golden Tiger Claw

All about problems in Volume 113. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
baodog
Experienced poster
Posts: 202
Joined: Wed Jul 04, 2007 6:53 am

11383 - Golden Tiger Claw

Post by baodog »

I believe this problem is the Primal-Dual of a networkflow problem.
However, I can't quite get it into the right form. Does it require full
integer programming?
mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Post by mf »

It can be shown that the maximum weight of a perfect matching in bipartite graph with weights w_ij is equal to the minimum value of the sum of row and column labels.
Kuhn-Munkres algorithm is the constructive proof.
sonyckson
New poster
Posts: 49
Joined: Tue Feb 06, 2007 9:29 pm
Location: Cordoba, Argentina

Post by sonyckson »

Hi!... how do you get the rows and cols values after getting the maximum weight???( greedy? ), Thanks, Eric.
mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Post by mf »

You get them as a by-product of Kuhn-Munkres algorithm.
shanto86
Experienced poster
Posts: 160
Joined: Wed Jul 30, 2003 8:10 pm

Post by shanto86 »

yes, as mf said it is nothing but plain implementation of Kuhn-Munkres. But i thought it will be solved least. Unfortunately and very surprisingly it was the first problem which got accepted in the contest. :cry:
Self judging is the best judging!
baodog
Experienced poster
Posts: 202
Joined: Wed Jul 04, 2007 6:53 am

correct io format

Post by baodog »

Nevermind, got accepted...
No extra spaces or blanks in the output.
Numbers are separated by one space.
yasuh
New poster
Posts: 7
Joined: Mon Jan 07, 2008 5:34 pm

Post by yasuh »

Hello.
I cannot understand how to change to matching problem :-(
Would someone show me an example?
shanto86
Experienced poster
Posts: 160
Joined: Wed Jul 30, 2003 8:10 pm

Post by shanto86 »

I cant understand one thing, my pc is slow there is no doubt about that, it took approximately 8s, but in judge pc it got AC in only 0.76s. but when i asked official to check my code against judge pc it was more than 3s. But on the same data it is only 0.76s now! how did it happen? anybody any idea?
Self judging is the best judging!
Observer
Guru
Posts: 570
Joined: Sat May 10, 2003 4:20 am
Location: Hong Kong

Post by Observer »

I'm greatly pulling down the acceptance rate... :- )

Could anyone offer some test cases? I am getting WA...

[EDIT] Never mind. I've found a stupid flaw in my alternate-path finding routine. Now I'm facing TLE.

[EDIT] Accepted. Now with the slowest time in ranklist~
7th Contest of Newbies
Date: December 31st, 2011 (Saturday)
Time: 12:00 - 16:00 (UTC)
URL: http://uva.onlinejudge.org
ardiankp
New poster
Posts: 27
Joined: Mon Nov 01, 2004 4:04 pm

Post by ardiankp »

Hi,

Can anyone explain what does J_{Gl}(S) mean in the paper linked?

Thanks :)
mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Post by mf »

J_G(S) means the set of vertices adjacent to S, i.e the set of all y such that (x, y) is an edge of G, and x is in S.
Post Reply

Return to “Volume 113 (11300-11399)”