The Stable Matching Problem asks to find a stable matching, if one exists.

  • STABLE MATCHING
    • Given a matching, check the pairs one-by-one if they are unstable or not
    • If no unstable pair, then matching is stable
  • Brute-force algorithm for STABLE MATCHING ?
    • Tries all the matchings. How many are there ?
    • This is too slow
    • Brute force takes

Gale-Shapley algorithm (1962) for complete lists:

  • There is always a stable matching! (where everyone is allocated)
  • time algorithm to find a stable matching
  • STABLE MATCHING