Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| courses:cs211:winter2018:journals:holmesr:section_1.1 [2018/01/16 21:26] – holmesr | courses:cs211:winter2018:journals:holmesr:section_1.1 [2018/01/21 17:37] (current) – holmesr | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Section 1.1 ====== | + | ====== Chapter 1 ====== |
| + | |||
| + | ===== Section 1.1 ===== | ||
| Section 1.1 deals with the Stable Matching Problem. The algorithm that solves this problem can be used for a variety of different applications, | Section 1.1 deals with the Stable Matching Problem. The algorithm that solves this problem can be used for a variety of different applications, | ||
| Line 7: | Line 9: | ||
| The algorithm works by choosing a man //m// and looping through the women in his preference list from top to bottom. If a woman is not engaged or is engaged to a man //m'// who ranks lower on her preference list than //m//, then she will accept // | The algorithm works by choosing a man //m// and looping through the women in his preference list from top to bottom. If a woman is not engaged or is engaged to a man //m'// who ranks lower on her preference list than //m//, then she will accept // | ||
| - | Finally, this algorithm runs in O(n< | + | Finally, this algorithm runs in O(n< |
