Atching: Stable Matching Problem Gale-Shapley Algorithm Hospital Optimality Context
Atching: Stable Matching Problem Gale-Shapley Algorithm Hospital Optimality Context
S TABLE M ATCHING
‣ stable matching problem
‣ Gale–Shapley algorithm
‣ hospital optimality
‣ context
1. S TABLE M
ATCHING
‣ stable matching problem
‣ Gale–Shapley algorithm
‣ hospital optimality
‣ context
SECTION
1.1
Matching med-school students to hospitals
3
Stable matching problem: input
hospitals.
7
Stable matching problem
Stable roommate
problem.
2 n people; each person ranks others from 1 to 2 n –
1. Assign roommate pairs so that no unstable pairs.
SECTION
1.1
Gale–Shapley deferred acceptance algorithm
s rejects h.
12
Proof of correctness: termination
1st 2nd 3rd 4th 5th 1st 2nd 3rd 4th 5th
A V W X Y Z V B C D E A
B W X Y V Z W C D E A B
C X Y V W Z X D E A B C
D Y V W X Z Y E A B C D
E V W X Y Z Z A B C D E
n(n-1) + 1
proposals
13
Proof of correctness: perfect matching
Case 2: h proposed to
s.
⇒ s rejected h (either right away or
later) ⇒ s prefers Gale–Shapley partner
h–
⇒ to
hʹ h–sh.is not unstable. sʹ
students only trade
up hʹ –
s
⋮
In either case, the pair h–s is not unstable.
▪
Gale–Shapley matching
M*
15
Summary
16
Stable matching: quiz 2
17
1. S TABLE M
ATCHING
‣ stable matching problem
‣ Gale–Shapley algorithm
‣ hospital optimality
‣ context
SECTION
1.1
Understanding the solution
A X Y Z X B A C
B Y X Z Y A B C
C X Y Z Z A B C
Ex.
Both X and Y are valid partners for
A. Both X and Y are valid partners
for B. Z is the only valid partner for
C.
A X Y Z X B A C
B Y X Z Y A B C
C X Y Z Z A B C
A 6 stable matchings
. { A–W, B–X, C–Y, D–
B
Z } { A–X, B–W, C–Y,
.
D–Z } { A–X, B–Y, C–
C
. W, D–Z } { A–Z, B–
A Y Z X W W D A B C
B Z Y W X X C B A D
C W Y X Z Y C B A D
D X Z W Y Z D A B C
21
Understanding the solution
23
Hospital optimality
25
Stable matching: quiz 4
26
1. S TABLE M
ATCHING
‣ stable matching problem
‣ Gale–Shapley algorithm
‣ hospital optimality
‣ context
SECTION
1.1
Extensions
29
Historical context
We report on the design of the new clearinghouse adopted by the National Resident
Matching Program, which annually fills approximately 20,000 jobs for new physi-
cians. Because the market has complementarities between applicants and between
positions, the theory of simple matching markets does not apply directly. However,
computational experiments show the theory provides good approximations. Fur-
thermore, the set of stable matchings, and the opportunities for strategic manipu-
lation, are surprisingly small. A new kind of “core convergence” result explains
this; that each applicant interviews only a small fraction of available positions is
important. We also describe engineering aspects of the design process. (JEL C78,
B41, J44)
The entry-level labor market for new physi- employment, rather than waiting to participate
cians in the United States is organized via a in the larger market. (By the 1940’s, contracts 30
centralized clearinghouse called the National were typically being signed two years in ad-
2012 Nobel Prize in Economics
original
applications:
college admissions
and
opposite-sex
marriage
Lloyd Alvin
31
Shapley Roth
New York City high school match
32
Questbridge national college match
33
A modern application
The authors take full responsibility for this article’s technical content. Comments can be posted through CCR Online.
ABSTRACT Edge%Server%
This paper “peeks under the covers” at the subsystems Overlay%
that
provide the basic functionality of a leading content deliv- Rou4ng%
ery network. Based on our experiences in building one of Client%
the largest distributed systems in the world, we illustrate
how sophisticated algorithmic research has been adapted to
balance the load between and within server clusters, man-
age the caches on servers, select paths through an
overlay
routing network, and elect leaders in various contexts. In
each instance, we first explain the theory underlying the Origin%
algorithms, then introduce practical considerations not cap-
tured by the theoretical models, and finally describe what is Content%
implemented in practice. Through these examples, we high- Authorita4ve%Name%Server%
DNS% %(Global%and%Local%Load%
light the role of algorithmic research in the design of com-
Balancing)%
plex networked systems. The paper also illustrates the close
synergy that exists between research and industry where
research ideas cross over into products and product require-
ments drive future research.
Figure 1: A C D N serves content in response to a
1. INTRODUCTION client’s request.
The top-three objectives for the designers and operators
of a content delivery network (CDN) are high reliability, 34
fast and consistent performance, and low operating cost. CDN’s authoritative name server. The authoritative name
While many techniques must be employed to achieve these server examines the network address of the resolving name