Page 1 of 1

Minimal Perfect Matching in Full Graphs...

Posted: Fri Jan 03, 2003 10:50 am
by cyfra
Hi!

I have a problem with this..

To explain:

We have a graph with n (n is even) nodes... each node is connected to each other by an edge with a positive cost.... We have to match all the nodes in such a way that the cost is minimal..

So I know that there is a fast solution for this problem, but I know only the method O(n^n) with is not the best time :wink:


Thanks in advance...

Posted: Fri Jan 03, 2003 4:00 pm
by babe
Hi there,

I think that algorithm Kuhn-Munkres is really good. Its time complexity is just O(n^3).

You can take a look at this site:
http://www.mc.edu/campus/users/travis/s ... notes.html

Regards

Posted: Fri Jan 03, 2003 4:17 pm
by arnsfelt
The Kuhn-Munkres algorithm is for bipartite graphs only.
For general graphs try Edmonds primal-dual algorithm.

Posted: Sat Jan 04, 2003 11:57 am
by cyfra
Hi!

Thanks for help..

arnsfelt: Could you tell me more about this Edmonds algorithm ( or tell me where could I find it )

Thanks a lot :D