Perfect matching

From WikiMD's Wellness Encyclopedia

Maximum-matching-labels.svg

Perfect matching is a concept in graph theory, a branch of discrete mathematics. A perfect matching is a matching in which every vertex of the graph is connected to exactly one edge of the matching. In other words, it is a set of edges that covers every vertex of the graph exactly once.

Definition[edit | edit source]

In a given graph \( G = (V, E) \), a matching \( M \subseteq E \) is called a perfect matching if every vertex \( v \in V \) is incident to exactly one edge in \( M \). This implies that the graph must have an even number of vertices for a perfect matching to exist.

Properties[edit | edit source]

  • A graph with a perfect matching must have an even number of vertices.
  • If a graph has a perfect matching, then it is a 1-factor.
  • The permanent of the adjacency matrix of a bipartite graph can be used to count the number of perfect matchings in the graph.

Examples[edit | edit source]

  • In a complete graph \( K_{2n} \), there are \((2n-1)!!\) perfect matchings.
  • In a bipartite graph \( K_{n,n} \), there are \( n! \) perfect matchings.

Algorithms[edit | edit source]

Several algorithms exist to find a perfect matching in a graph:

Applications[edit | edit source]

Perfect matchings have applications in various fields such as:

Related Concepts[edit | edit source]

See Also[edit | edit source]



WikiMD
Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD

Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD