{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CSE331 Lecture 6

# CSE331 Lecture 6 - Lecture 6 CSE 331 Grading Rubric for HW...

This preview shows pages 1–6. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Lecture 6 CSE 331 Sep 12, 2011 Grading Rubric for HW 1 ≤ n 2 iterations of the while loop Intially all men and women are free While there exists a free woman who can propose Let w be such a woman and m be the best man she has not proposed to w proposes to m If m is free (m,w) get engaged Else (m,w’) are engaged If m prefers w’ to w w remains free Else (m,w) get engaged and w’ is free Output the engaged pairs as the final output Each iteration has one proposal Each iteration has one proposal Each proposal is new Each proposal is new # iterations ≤ # proposals ≤ # pairs (m,w) ≤ n 2 # iterations ≤ # proposals ≤ # pairs (m,w) ≤ n 2 Why do all the formal progress stuff? Notion of proof by progress will be useful later Example of writing a proof idea/ formal proof ≤ n 2 iterations of the while loop Intially all men and women are free While there exists a free woman who can propose Let w be such a woman and m be the best man she has not proposed to w proposes to m If m is free...
View Full Document

{[ snackBarMessage ]}

### Page1 / 11

CSE331 Lecture 6 - Lecture 6 CSE 331 Grading Rubric for HW...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online