ArticleslgStudy

science

Perfect matching

Perfect matching is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Perfect matching rather than just read about it. In short: In graph theory, a perfect matching in a graph is a matching that covers every vertex of the graph. More formally, given a graph G with edges E and vertices V, a perfect matching in G is a subset M of E, such that every vertex in V is adjacent to exactly one edge in M.

Perfect matching — main illustration
Perfect matching — illustration

Key takeaways

  • Perfect matching belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Perfect matching to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Perfect matching from memory before moving on to harder problems.

Reference excerpt

In graph theory, a perfect matching in a graph is a matching that covers every vertex of the graph. More formally, given a graph G with edges E and vertices V, a perfect matching in G is a subset M of E, such that every vertex in V is adjacent to exactly one edge in M. The adjacency matrix of a perfect matching is a symmetric permutation matrix. A perfect matching is also called a 1-factor; see Graph factorization for an explanation of this term. In some literature, the term complete matching is used. Every perfect matching is a maximum-cardinality matching, but the opposite is not true. For example, consider the following graphs:

In graph (b) there is a perfect matching (of size 3) since all 6 vertices are matched; in graphs (a) and (c) there is a maximum-cardinality matching (of size 2) which is not perfect, since some vertices are unmatched. A perfect matching is also a minimum-size edge cover. If there is a perfect matching, then both the matching number and the edge cover number equal |V| / 2. A perfect matching can only occur when the graph has an even number of vertices. A near-perfect matching is one in which exactly one vertex is unmatched. This can only occur when the graph has an odd number of vertices, and such a matching must be maximum. In the above figure, part (c) shows a near-perfect matching. If, for every vertex in a graph, there is a near-perfect matching that omits only that vertex, the graph is also called factor-critical.

Characterizations Hall's marriage theorem provides a characterization of bipartite graphs which have a perfect matching. Tutte's theorem on perfect matchings provides a characterization for arbitrary graphs. A perfect matching is a spanning 1-regular subgraph, a.k.a. a 1-factor. In general, a spanning k-regular subgraph is a k-factor. A spectral characterization for a graph to have a perfect matching is given by Hassani Monfared and Mallik as follows: Let G {\displaystyle G} be a graph on even n {\displaystyle n} vertices and λ 1 > λ 2 > … > λ n 2 > 0 {\displaystyle \lambda _{1}>\lambda _{2}>\ldots >\lambda _{\frac {n}{2}}>0} be n 2 {\displaystyle {\frac {n}{2}}} distinct nonzero purely imaginary numbers. Then G {\displaystyle G} has a perfect matching if and only if there is a real skew-symmetric matrix A {\displaystyle A} with graph G {\displaystyle G} and eigenvalues ± λ 1 , ± λ 2 , … , ± λ n 2 {\displaystyle \pm \lambda _{1},\pm \lambda _{2},\ldots ,\pm \lambda _{\frac {n}{2}}} . Note that the (simple) graph of a real symmetric or skew-symmetric matrix A {\displaystyle A} of order n {\displaystyle n} has n {\displaystyle n} vertices and edges given by the nonzero off-diagonal entries of A {\displaystyle A} .

Computation Deciding whether a graph admits a perfect matching can be done in polynomial time, using any algorithm for finding a maximum cardinality matching. However, counting the number of perfect matchings, even in bipartite graphs, is #P-complete. This is because computing the permanent of an arbitrary 0–1 matrix (another #P-complete problem) is the same as computing the number of perfect matchings in the bipartite graph having the given matrix as its biadjacency matrix. A theorem of Pieter Kasteleyn states that the number of perfect matchings in a planar graph can be computed exactly in polynomial time via the FKT algorithm. The number of perfect matchings in a complete graph Kn (with n even) is given by the double factorial: ( n − 1 ) ! ! {\displaystyle (n-1)!!}

Connection to Graph Coloring An edge-colored graph can induce a number of (not necessarily proper) vertex colorings equal to the number of perfect matchings, as every vertex is covered exactly once in each matching. This property has been investigated in quantum physics and computational complexity theory.

Perfect matching polytope

The perfect matching polytope of a graph is a polytope in R|E| in which each corner is an incidence vector of a perfect matching.

See also Envy-free matching Maximum-cardinality matching Perfect matching in high-degree hypergraphs Hall-type theorems for hypergraphs The unique perfect matching problem

References

Worked examples

Example 1 — a first encounter with Perfect matching

Start with the simplest possible case. Write down what Perfect matching claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Perfect matching before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Perfect matching ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Perfect matching

In research
Perfect matching appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Perfect matching in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Perfect matching is common in secondary-school and first-year university syllabi. It links to neighbouring topics Matching (graph theory), so understanding it makes those chapters shorter.
In everyday life
Look for Perfect matching outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Perfect matching in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Perfect matching means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Perfect matching out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Perfect matching in simple terms?

In graph theory, a perfect matching in a graph is a matching that covers every vertex of the graph. More formally, given a graph G with edges E and vertices V, a perfect matching in G is a subset M of E, such that every vertex in V is adjacent to exactly one edge in M.

Why does Perfect matching matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Perfect matching?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Perfect matching.

Tags

  • Matching (graph theory)

Keep exploring