Donovan Young on Nostr: Perfect matchings aren't always possible. For example if we have a bi-partite graph ...
Perfect matchings aren't always possible. For example if we have a bi-partite graph with \(k=2\) sets of unequal size, we won't be able to match-up each vertex without leaving some unmatched.
If the two sets are of the same size \(k_1\), then there are \(k_1!\) perfect matchings. We can understand this count as follows:
Imagine that the \(k_1\) edges are coloured with \(k_1\) different colours, then there are \(k_1!\) ways to attach the \(k_1\) vertices in the first set to (one side of) the \(k_1\) edges. There are also \(k_1!\) ways to attach the \(k_1\) vertices in the second set to (the other sides of) the \(k_1\) edges. But then we should divide by the \(k_1!\) ways of colouring the edges as they are, in fact, indistinguishable. This gives:
\(\frac{k_1!k_1!}{k_1!} = k_1!\) .
(If this counting seems a little heavy-handed to you, I am using it because it generalises nicely to higher \(k\).)
Published at
2024-12-30 17:16:14Event JSON
{
"id": "8216d75af5c3b822a08330753d5140e3b67fee77385bc8dc165f1e82e85c5ffa",
"pubkey": "d658209f2a1f55ab90972eb8bd7db4bb0513c5f305db38b4cfd626f59332f2ab",
"created_at": 1735578974,
"kind": 1,
"tags": [
[
"e",
"83739c0f256761bf13941a426a0678fffc6eb0200ca38c4c19a7970b96970232",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mathstodon.xyz/users/Dyoung/statuses/113742903647501188",
"activitypub"
]
],
"content": "Perfect matchings aren't always possible. For example if we have a bi-partite graph with \\(k=2\\) sets of unequal size, we won't be able to match-up each vertex without leaving some unmatched. \n\nIf the two sets are of the same size \\(k_1\\), then there are \\(k_1!\\) perfect matchings. We can understand this count as follows:\n\nImagine that the \\(k_1\\) edges are coloured with \\(k_1\\) different colours, then there are \\(k_1!\\) ways to attach the \\(k_1\\) vertices in the first set to (one side of) the \\(k_1\\) edges. There are also \\(k_1!\\) ways to attach the \\(k_1\\) vertices in the second set to (the other sides of) the \\(k_1\\) edges. But then we should divide by the \\(k_1!\\) ways of colouring the edges as they are, in fact, indistinguishable. This gives:\n\n\\(\\frac{k_1!k_1!}{k_1!} = k_1!\\) .\n\n(If this counting seems a little heavy-handed to you, I am using it because it generalises nicely to higher \\(k\\).)",
"sig": "a838cebceb452d1ff0ae691d056bbc399f3fec9d3c365569a9e2366d424bac2c845ac400d643c2c7c57301233eded4a6df4291cd034026d19d8ee1a466890783"
}