Introduction

Problem 1
There are 2𝑛 candies, each with a potentially different color. Determine whether it’s possible to split theminto 𝑛 pairs such that no pair contains two candies of the same color.

We first note that it’s necessary for the most frequent candy to appear at most 𝑛 times, i.e. max𝑐𝑖≀𝑛. To show that this condition is also sufficient, we induct on 𝑛 and split into two cases:

  1. Tight (max𝑐𝑖=𝑛): We can pair the 𝑛 same-color candies with all the others.
  2. Loose (max𝑐𝑖<𝑛): We can pair any two different-color candies, and the condition max𝑐′𝑖≀𝑛′=π‘›βˆ’1 will still hold.

The general flow of tight-slack induction is:

  1. Derive several necessary inequalities.
  2. Prove sufficiency by induction. When an inequality is tight, we must find a forced move and prove its validity; otherwise, we must show that any move is valid.

Hall’s marriage theorem

Problem 2
When does a bipartite graph have a perfect matching?

To first derive some necessary conditions, it may help to consider some examples. Draw some graphs that have perfect matchings and some that don’t, and think about what makes/breaks them.

We can now prove sufficiency (by the way, 𝑛 denotes the number of nodes on each side, so there are there 2𝑛 nodes in total):