In the mathematical discipline of graph theory a matching or edge independent set in a graph is a set of edges without common vertices.
We say that a vertex is matched if it is incident to an edge in the matching. Otherwise the vertex is unmatched.
A maximum matching is a matching that contains the largest possible number of edges. There may be many maximum matchings. The matching number of a graph is the size of a maximum matching.
A maximal matching is a matching M of a graph G with the property that if any edge not in M is added to M, it is no longer a matching. In other words, a matching M of a graph G is maximal if every edge in G has non-empty intersection with at least one edge in M. Note that every maximum matching must be maximal, but not every maximal matching must be maximum.
A perfect matching is a matching which covers all vertices of the graph. That is, every vertex of the graph is incident to exactly one edge of the matching. Every perfect matching is both maximum and maximal.
Given a matching M,
Note that a matching is maximum if and only if it does not contain any augmenting path.
In a weighted bipartite graph, each edge has an assosiated value. A maximum weighted bipartite matching is defined as a perfect matching where the sum of the values of the edges in the matching have a maximal value. If the graph is not complete bipartite, missing edges inserted with value zero. Finding such a matching is known as the assignment problem. You can solve it by using a modified shortest path search in the augmenting path algorithm. If you use the Bellman-Ford algorithm, the running time becomes . (You cannot use Dijkstras algorithm, as you get negative weight edges from to .) The more specialised Hungarian algorithm solves the assignment problem in time.
The marriage theorem provides a characterization of bipartite graphs which have a perfect matching and the Tutte theorem provides a characterization for arbitrary graphs.
There is a polynomial time algorithm to find a maximum matching in a graph that is not bipartite; it is due to Edmonds, is called the paths, trees, and flowers method, and uses bidirected edges.
A related problem is, given a graph G, to determine the number of perfect matchings in G. This problem is #P Complete. For bipartite graphs, it can be approximately solved in polynomial time. That is, for any ε>0, there is a probabilistic polynomial time algorithm that determines, with high probability, the number of perfect matchings M within an error of at most εM.
Paarung (Graphentheorie) | שידוך (תורת הגרפים) | マッチング (グラフ理論) | Skojarzenie (teoria grafów)
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Matching".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world