Beruflich Dokumente
Kultur Dokumente
• Instructor
CSE 421 – Richard Anderson,
anderson@cs.washington.edu
Algorithms • Teaching Assistant
– Yiannis Giotas, giotas@cs.washington.edu
Richard Anderson
Lecture 1
1
Introductory Problem:
Formal notions
Stable Matching
• Setting: • Perfect matching
– Assign TAs to Instructors • Ranked preference lists
– Avoid having TAs and Instructors wanting • Stability
changes
• E.g., Prof A. would rather have student X than her
m1 w1
current TA, and student X would rather work for
Prof A. than his current instructor.
m2 w2
Examples Examples
• m1: w1 w2 • m1: w1 w2 • m1: w1 w2
• m2: w2 w1 • m2: w1 w2 • m2: w2 w1
• w1: m1 m2 • w1: m1 m2 • w1: m2 m1
• w2: m2 m1 • w2: m1 m2 • w2: m1 m2
2
Claim: The algorithms stops in at
Does this work?
most n2 steps
• Does it terminate? • Why?
• Is the result a stable matching?