Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| courses:cs211:winter2018:journals:patelk:chapter1 [2018/01/10 03:08] – created patelk | courses:cs211:winter2018:journals:patelk:chapter1 [2018/01/11 00:45] (current) – [1.1 A First Problem: Stable Matching] patelk | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | |||
| ====== 1.1 A First Problem: Stable Matching ====== | ====== 1.1 A First Problem: Stable Matching ====== | ||
| + | |||
| + | **Problem Explanation** | ||
| The Stable Matching Problem originated from two mathematical economists, David Gale and Lloyd Shapley, who wanted to understand if it was possible to design a job recruiting process that was // | The Stable Matching Problem originated from two mathematical economists, David Gale and Lloyd Shapley, who wanted to understand if it was possible to design a job recruiting process that was // | ||
| Line 9: | Line 12: | ||
| Because individuals act in self-interest, | Because individuals act in self-interest, | ||
| - | **__Problem Formulation__** | + | **Problem Formulation** |
| For simplicity, we assume there are n companies, n applicants, and each company accepts only a single applicant. | For simplicity, we assume there are n companies, n applicants, and each company accepts only a single applicant. | ||
| There are two sets, M and W. M and W represent two distinct groups, whether that be companies and applicants or men and women. M x W represents the set of all possible ordered pairs. There are then two options for sets: | There are two sets, M and W. M and W represent two distinct groups, whether that be companies and applicants or men and women. M x W represents the set of all possible ordered pairs. There are then two options for sets: | ||
| - | * Matching: S is a set of ordered pairs, each ordered pair from M x W, where each member of M and each member of W appear in //at most// one pair in S. | + | * __Matching__: S is a set of ordered pairs, each ordered pair from M x W, where each member of M and each member of W appear in //at most// one pair in S. |
| - | * Perfect Matching: S is a set of ordered pairs, each ordered pair from M x W, where each member of M and each member of W appear in //exactly// one pair in S. | + | * __Perfect Matching__: S is a set of ordered pairs, each ordered pair from M x W, where each member of M and each member of W appear in //exactly// one pair in S. |
| + | |||
| + | __Stable__: a matching S is stable if: | ||
| + | - it is perfect | ||
| + | - there is no instability with respect to S | ||
| + | |||
| + | An instance can have more than one stable matching. | ||
| + | ---- | ||
| + | **Brief Sketch** | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ---- | ||
| + | **Runtime** | ||
| + | |||
| + | Worst-case runtime is n² interations, | ||
| + | |||
| + | ---- | ||
| + | **Other** | ||
| + | |||
| + | The G-S algorithm creates an interesting problem, in which the set that proposes the matching will always end up with the best possible stable matching, while the set that is on the other side will end up with the worst problem stable matching. | ||
| + | |||
| + | ---- | ||
| + | **Personal Thoughts** | ||
| + | |||
| + | This chapter section was clear and concise in describing the Stable Matching Problem. It was well-explained and provided an interesting insight into one of the more basic algorithm problems. It is very easy to see where more complexity can be added into this problem, and serves as motivation for why this problem is explored first. It will be interesting to see cases where this problem is morphed (i.e- the example of the two sets of men and women not being completely separate). | ||
| + | Readability: | ||
| + | Interesting: | ||
