Minimal Perfect Matching in Full Graphs...

Let's talk about algorithms!

Moderator: Board moderators

Post Reply
cyfra
Experienced poster
Posts: 144
Joined: Thu Nov 22, 2001 2:00 am
Location: Gdynia, Poland

Minimal Perfect Matching in Full Graphs...

Post 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...
babe
New poster
Posts: 4
Joined: Wed Jul 24, 2002 1:23 pm

Post 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
arnsfelt
New poster
Posts: 44
Joined: Wed Oct 17, 2001 2:00 am
Location: Denmark
Contact:

Post by arnsfelt »

The Kuhn-Munkres algorithm is for bipartite graphs only.
For general graphs try Edmonds primal-dual algorithm.
cyfra
Experienced poster
Posts: 144
Joined: Thu Nov 22, 2001 2:00 am
Location: Gdynia, Poland

Post 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
Post Reply

Return to “Algorithms”