The deferred acceptance algorithim (used by hospitals and residents for the national residency matching program).