Reputation: 329
I am trying to design an algorithm that indicates whethere a graph has a perfect matching or not. Is there any known or unknown algorithm to do that?
Thank you in advance.
Upvotes: 0
Views: 1943
Reputation: 101
Well, you can try finding the maximum matching using the Blossom algorithm and then verify if your maximum matching is a perfect matching by checking if your maximum matching is "touching" all the elements in your set of vertices.
http://en.wikipedia.org/wiki/Blossom_algorithm
Upvotes: 3