Matching and Stable Matching

Size: px
Start display at page:

Download "Matching and Stable Matching"

Transcription

1 8/21/2017 Matching and Stable Matching CS 320 Fall 2017 Dr. Geri Georg Instructor A human with a beard A human who always wears a hat A human who likes to wear red shirts A human who only wears sandals A human who wears glasses CS320 Matching and Stable Matching 1 CS320 Matching and Stable Matchng 6 A Great Dane But they have preferences A Yorkshire Terrier A Norwegian Forest Kitten A Cockatoo A Parakeet CS320 Matching and Stable Matchng 11 CS320 Matching and Stable Matchng 12 1

2 Match them up!? Formulate problem. Our Approach Design algorithm. Prove correctness. Analyze complexity. Implement. CS320 Matching and Stable Matchng 13 CS320 Introduction Formulate the problem Example: Pets: P={p 1..p n } Humans: H={h 1..h n } Pets = P x H is set of all possible ordered pairs Humans = CS320 Matching and Stable Matchng 15 CS320 Matching and Stable Matchng 16 2

3 Possible Matchings Perfect Matchings CS320 Matching and Stable Matchng 17 CS320 Matching and Stable Matchng 18 Matching Requirements Every pet is matched with only 1 human; so every human has 1 pet. This is called a perfect matching. Instability Example Assume these preferences: : : We d also like a matching where no pet and no human prefer each other to the match they ended up with. If this happens it is called an instability. A stable matching is a perfect matching with no instabilities. : What about this matching? : Perfect? Yes. Stable? No. CS320 Matching and Stable Matchng 19 CS320 Matching and Stable Matchng 20 3

4 Matching algorithm 1 Free for all! Do your best to get your first choice You have 2 minutes. Matching algorithm 1 Free for all! How did it work? Was there any swapping that went on (i.e. across pairs that had already been matched up)? What were the conditions? CS320 Matching and Stable Matchng 21 CS320 Matching and Stable Matchng 22 Matching algorithm 1 Who got their first choice? Did anyone end up with their last choice? 2. Design the algorithm 1 every pet and every human start out free 2 while (some pet p is free and hasn t considered every human) 3 choose p 4 h = highest-ranked human in p s list who hasn t been considered 5 if h is free (p h) are in a trial 6 else if (h prefers p to current match p ) (p h) enter a trial and p becomes free 7 else h prefers p and p remains free 8 return the set S of matched pets and humans CS320 Matching and Stable Matchng 23 CS320 Matching and Stable Matchng 24 4

5 Matching algorithm 2 Gale Shapley round 1 pets got to consider humans How did it go? 3. Prove correctness Does it terminate? When? Who got their first choice? Did anyone end up with their last choice? CS320 Matching and Stable Matchng 25 CS320 Matching and Stable Matchng 26 1 every pet and every human start out free 2 while there is a pet p who is free and who hasn t considered every human 3 choose such a pet p 4 choose the highest-ranked human h in p s preference not yet considered 5 if h is free then (p h) are in a trial 6 else h is currently in a trial with p 7 if h prefers p to p then p remains free 8 else h prefers p to p and (p h) enter a trial and p becomes free 9 return the set S of matched pets and CS320 Matching and Stable Matchng 27 humans Correctness Does it terminate? Yes. When? When there are no free pets. Does it come up with a perfect matching? CS320 Matching and Stable Matchng 28 5

6 By contradiction: Assume the size of sets Pets and Humans is n. Assume there is a free pet p after the algorithm terminates. Since the loop terminated p had considered all the humans. If a human gets into a trial they stay in some trial until the algorithm ends so all n humans are in a trial. The set of trial pairs is a matching so there must be n pets also in trials. Since there are only n pets in total and p is not in a trial this is a contradiction. Correctness Does it terminate? Yes. When? When there are no free pets. Does it come up with a perfect matching? Yes. Does it come up with a stable matching? CS320 Matching and Stable Matchng 29 CS320 Matching and Stable Matchng 30 By contradiction: Assume a matching: S = {(p h ) (p h) } and an unstable pair: (p h) where p would prefer h to h and h would prefer p to p. Case 1: p never considered h This means p prefers h so (p h) is not an instability. Case 2: p did consider h This means: h rejected p by trading up to p and h prefers p over p so (p h) is not an instability. In either case (p h) is not an instability so this is a contradiction. CS320 Matching and Stable Matchng 31 Correctness Does it terminate? Yes. When? When there are no free pets. Does it come up with a perfect matching? Yes. Does it come up with a stable matching? Yes. CS320 Matching and Stable Matchng 32 6

7 4. Analyze complexity While proving termination we proved the worst case number of iterations is n 2 for sets of Pets and Humans of size n. What about the lower bound? Image Credits Great Dane: E1 zrhyv9ge3bhb0ioscemrvdr1wziaeb_1qvtmlwkj4khijesyphq1qb URHbLA0fAVSGwqEglqAVUZl4YuJxEY80_1PfIgVwSoSCTrPqWTCkSwfEQhPkZNOKkPB&tbo=u&sa=X&ved=0ahUKEwi3tL2lbHVAhVj44MKHXJWDCAQ9C8IHw&biw=1172&bih=799&dpr=1.15#imgrc=y3YOz4qQax0lNM: Yorkshire Terrier: terrier puppies/ Norwegian Forest Kitten: breeds encyclopedia.com/long haired cat breeds.html Cockatoo: australia/sulphur crested cockatoo photos/ Parakeet: Person with a Beard: Person wearing a Hat: People wearing Red shirts: red t shirts for men and women in india/ People wearing Sandals: scandal/ Person wearing Glasses: tvshows/harry potter/luna lovegood in astrange glasses wallpaper/download/ chalkformulation: tutoring online/online math tutoring for kids designroutes: today.org/orms 6 02/frnetwork.html DijAlgoProof: proof.html 3lineComplex: complexity analysis why its important impl: 0.1d/ods cpp/ CS320 Matching and Stable Matchng 33 CS320 Matching and Stable Matchng 34 7

Complexity. CS 320, Fall Dr. Geri Georg, Instructor Some materials adapted from Prof. Wim Bohm.

Complexity. CS 320, Fall Dr. Geri Georg, Instructor Some materials adapted from Prof. Wim Bohm. Complexity CS 320, Fall 2017 Dr. Geri Georg, Instructor georg@colostate.edu Some materials adapted from Prof. Wim Bohm CS320 Complexity 1 Interval Scheduling (Greedy algorithms) CS320 Complexity 2 Weighted

More information

Consider a complete bipartite graph with sets A and B, each with n vertices.

Consider a complete bipartite graph with sets A and B, each with n vertices. When DFS discovers a non-tree edge, check if its two vertices have the same color (red or black). If all non-tree edges join vertices of different color then the graph is bipartite. (Note that all tree

More information

Analysis of Algorithms Fall Some Representative Problems Stable Matching

Analysis of Algorithms Fall Some Representative Problems Stable Matching Analysis of Algorithms Fall 2017 Some Representative Problems Stable Matching Mohammad Ashiqur Rahman Department of Computer Science College of Engineering Tennessee Tech University Matching Med-school

More information

Matchings in Graphs. Definition 3 A matching N in G is said to be stable if it does not contain a blocking pair.

Matchings in Graphs. Definition 3 A matching N in G is said to be stable if it does not contain a blocking pair. Matchings in Graphs Lecturer: Scribe: Prajakta Jose Mathew Meeting: 6 11th February 2010 We will be considering finite bipartite graphs. Think of one part of the vertex partition as representing men M,

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 2 Analysis of Stable Matching Asymptotic Notation Adam Smith Stable Matching Problem Goal: Given n men and n women, find a "suitable" matching. Participants rate members

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 2 Analysis of Algorithms Stable matching problem Asymptotic growth Adam Smith Stable Matching Problem Unstable pair: man m and woman w are unstable if m prefers w

More information

CS 6901 (Applied Algorithms) Lecture 2

CS 6901 (Applied Algorithms) Lecture 2 CS 6901 (Applied Algorithms) Lecture 2 Antonina Kolokolova September 15, 2016 1 Stable Matching Recall the Stable Matching problem from the last class: there are two groups of equal size (e.g. men and

More information

Matching Theory and the Allocation of Kidney Transplantations

Matching Theory and the Allocation of Kidney Transplantations University of Utrecht Bachelor Thesis Matching Theory and the Allocation of Kidney Transplantations Kim de Bakker Supervised by Dr. M. Ruijgrok 14 June 2016 Introduction Matching Theory has been around

More information

Omega notation. Transitivity etc.

Omega notation. Transitivity etc. Omega notation Big-Omega: Lecture 2, Sept. 25, 2014 f () n (()) g n const cn, s.t. n n : cg() n f () n Small-omega: 0 0 0 f () n (()) g n const c, n s.t. n n : cg() n f () n 0 0 0 Intuition (works most

More information

COMP251: Bipartite graphs

COMP251: Bipartite graphs COMP251: Bipartite graphs Jérôme Waldispühl School of Computer Science McGill University Based on slides fom M. Langer (McGill) & P. Beame (UofW) Recap: Dijkstra s algorithm DIJKSTRA(V, E,w,s) INIT-SINGLE-SOURCE(V,s)

More information

COMP251: Bipartite graphs

COMP251: Bipartite graphs COMP251: Bipartite graphs Jérôme Waldispühl School of Computer Science McGill University Based on slides fom M. Langer (McGill) & P. Beame (UofW) Recap: Dijkstra s algorithm DIJKSTRA(V, E,w,s) INIT-SINGLE-SOURCE(V,s)

More information

Game Theory: Lecture #5

Game Theory: Lecture #5 Game Theory: Lecture #5 Outline: Stable Matchings The Gale-Shapley Algorithm Optimality Uniqueness Stable Matchings Example: The Roommate Problem Potential Roommates: {A, B, C, D} Goal: Divide into two

More information

1. REPRESENTATIVE PROBLEMS

1. REPRESENTATIVE PROBLEMS 1. REPRESENTATIVE PROBLEMS stable matching five representative problems Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley Copyright 2013 Kevin Wayne http://www.cs.princeton.edu/~wayne/kleinberg-tardos

More information

1. STABLE MATCHING. stable matching problem Gale Shapley algorithm hospital optimality context

1. STABLE MATCHING. stable matching problem Gale Shapley algorithm hospital optimality context 1. STABLE MATCHING stable matching problem Gale Shapley algorithm hospital optimality context Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley http://www.cs.princeton.edu/~wayne/kleinberg-tardos

More information

What do you do when you can t use money to solve your problems?

What do you do when you can t use money to solve your problems? Markets without money What do you do when you can t use money to solve your problems? Matching: heterosexual men and women marrying in a small town, students matching to universities, workers to jobs where

More information

Algorithms: COMP3121/3821/9101/9801

Algorithms: COMP3121/3821/9101/9801 Algorithms: COMP311/381/9101/9801 Aleks Ignjatović, ignjat@cse.unsw.edu.au office: 504 (CSE building); phone: 5-6659 Course Admin: Amin Malekpour, a.malekpour@unsw.edu.au School of Computer Science and

More information

Stable Matching Existence, Computation, Convergence Correlated Preferences. Stable Matching. Algorithmic Game Theory.

Stable Matching Existence, Computation, Convergence Correlated Preferences. Stable Matching. Algorithmic Game Theory. Existence, Computation, Convergence Correlated Preferences Existence, Computation, Convergence Correlated Preferences Stable Marriage Set of Women Y Set of Men X Existence, Computation, Convergence Correlated

More information

Matching Problems. Roberto Lucchetti. Politecnico di Milano

Matching Problems. Roberto Lucchetti. Politecnico di Milano Politecnico di Milano Background setting Problems introduced in 1962 by Gale and Shapley for the study of two sided markets: 1) workers & employers 2) interns & hospitals 3) students & universities 4)

More information

Algorithms. [Knuth, TAOCP] An algorithm is a finite, definite, effective procedure, with some input and some output.

Algorithms. [Knuth, TAOCP] An algorithm is a finite, definite, effective procedure, with some input and some output. Algorithms Algorithm. [webster.com] A procedure for solving a mathematical problem (as of finding the greatest common divisor) in a finite number of steps that frequently involves repetition of an operation.

More information

1. REPRESENTATIVE PROBLEMS

1. REPRESENTATIVE PROBLEMS 1. REPRESENTATIVE PROBLEMS stable matching five representative problems Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley http://www.cs.princeton.edu/~wayne/kleinberg-tardos Last updated

More information

CSC2556. Lecture 5. Matching - Stable Matching - Kidney Exchange [Slides : Ariel D. Procaccia]

CSC2556. Lecture 5. Matching - Stable Matching - Kidney Exchange [Slides : Ariel D. Procaccia] CSC2556 Lecture 5 Matching - Stable Matching - Kidney Exchange [Slides : Ariel D. Procaccia] CSC2556 - Nisarg Shah 1 Announcements The assignment is up! It is complete, and no more questions will be added.

More information

Subramanian s stable matching algorithm

Subramanian s stable matching algorithm Subramanian s stable matching algorithm Yuval Filmus November 2011 Abstract Gale and Shapley introduced the well-known stable matching problem in 1962, giving an algorithm for the problem. Subramanian

More information

Matching Problems. Roberto Lucchetti. Politecnico di Milano

Matching Problems. Roberto Lucchetti. Politecnico di Milano Politecnico di Milano Background setting Problems introduced in 1962 by Gale and Shapley for the study of two sided markets: 1) workers & employers; 2) interns & hospitals; 3) students & universities;

More information

Matching. Terence Johnson. April 17, University of Notre Dame. Terence Johnson (ND) Matching April 17, / 41

Matching. Terence Johnson. April 17, University of Notre Dame. Terence Johnson (ND) Matching April 17, / 41 Matching Terence Johnson University of Notre Dame April 17, 2018 Terence Johnson (ND) Matching April 17, 2018 1 / 41 Markets without money What do you do when you can t use money to solve your problems?

More information

PROBLEMS OF MARRIAGE Eugene Mukhin

PROBLEMS OF MARRIAGE Eugene Mukhin PROBLEMS OF MARRIAGE Eugene Mukhin 1. The best strategy to find the best spouse. A person A is looking for a spouse, so A starts dating. After A dates the person B, A decides whether s/he wants to marry

More information

1. REPRESENTATIVE PROBLEMS

1. REPRESENTATIVE PROBLEMS 1. REPRESENTATIVE PROBLEMS stable matching five representative problems Special thanks to Kevin Wayne for sharing the slides Copyright 2005 Pearson-Addison Wesley Last updated on 15/9/12 下午 10:33 1. REPRESENTATIVE

More information

CS320 Algorithms: Theory and Practice. Course Introduction

CS320 Algorithms: Theory and Practice. Course Introduction Course Objectives CS320 Algorithms: Theory and Practice Algorithms: Design strategies for algorithmic problem solving Course Introduction "For me, great algorithms are the poetry of computation. Just like

More information

Lecture 5: The Principle of Deferred Decisions. Chernoff Bounds

Lecture 5: The Principle of Deferred Decisions. Chernoff Bounds Randomized Algorithms Lecture 5: The Principle of Deferred Decisions. Chernoff Bounds Sotiris Nikoletseas Associate Professor CEID - ETY Course 2013-2014 Sotiris Nikoletseas, Associate Professor Randomized

More information

Equilibrium. Why? Model 1 A Reversible Reaction. At what point is a reversible reaction completed?

Equilibrium. Why? Model 1 A Reversible Reaction. At what point is a reversible reaction completed? Why? Equilibrium At what point is a reversible reaction completed? Most of the reactions that we have studied this year have been forward reactions once the reactant has changed into the product it stays

More information

Factorial Designs. Outline. Definition. Factorial designs. Factorial designs. Higher order interactions

Factorial Designs. Outline. Definition. Factorial designs. Factorial designs. Higher order interactions 1 Factorial Designs Outline 2 Factorial designs Conditions vs. levels Naming Why use them Main effects Interactions Simple main effect Graphical definition Additivity definition Factorial designs Independent

More information

The key is that there are two disjoint populations, and everyone in the market is on either one side or the other

The key is that there are two disjoint populations, and everyone in the market is on either one side or the other Econ 805 Advanced Micro Theory I Dan Quint Fall 2009 Lecture 17 So... two-sided matching markets. First off, sources. I ve updated the syllabus for the next few lectures. As always, most of the papers

More information

3-1 Solving Systems of Equations. Solve each system of equations by using a table. 1. ANSWER: (3, 5) ANSWER: (2, 7)

3-1 Solving Systems of Equations. Solve each system of equations by using a table. 1. ANSWER: (3, 5) ANSWER: (2, 7) Solve each system of equations by using a table. 1. 9. CCSS MODELING Refer to the table below. (3, 5) 2. (2, 7) Solve each system of equations by graphing. 3. a. Write equations that represent the cost

More information

Assignment 3 Logic and Reasoning KEY

Assignment 3 Logic and Reasoning KEY Assignment 3 Logic and Reasoning KEY Print this sheet and fill in your answers. Please staple the sheets together. Turn in at the beginning of class on Friday, September 8. Recall this about logic: Suppose

More information

Surveying Prof. Bharat Lohani Indian Institute of Technology, Kanpur. Module - 5 Lecture - 3 Theodolites and Total Stations

Surveying Prof. Bharat Lohani Indian Institute of Technology, Kanpur. Module - 5 Lecture - 3 Theodolites and Total Stations Surveying Prof. Bharat Lohani Indian Institute of Technology, Kanpur Module - 5 Lecture - 3 Theodolites and Total Stations (Refer Slide Time: 00:31) Welcome to another lecture on basic surveying. This

More information

Greedy Homework Problems

Greedy Homework Problems CS 1510 Greedy Homework Problems 1. Consider the following problem: INPUT: A set S = {(x i, y i ) 1 i n} of intervals over the real line. OUTPUT: A maximum cardinality subset S of S such that no pair of

More information

Two-Sided Matching. Terence Johnson. December 1, University of Notre Dame. Terence Johnson (ND) Two-Sided Matching December 1, / 47

Two-Sided Matching. Terence Johnson. December 1, University of Notre Dame. Terence Johnson (ND) Two-Sided Matching December 1, / 47 Two-Sided Matching Terence Johnson University of Notre Dame December 1, 2017 Terence Johnson (ND) Two-Sided Matching December 1, 2017 1 / 47 Markets without money What do you do when you can t use money

More information

Bipartite Matchings and Stable Marriage

Bipartite Matchings and Stable Marriage Bipartite Matchings and Stable Marriage Meghana Nasre Department of Computer Science and Engineering Indian Institute of Technology, Madras Faculty Development Program SSN College of Engineering, Chennai

More information

CS/SE 2C03. Sample solutions to the assignment 1.

CS/SE 2C03. Sample solutions to the assignment 1. CS/SE 2C03. Sample solutions to the assignment 1. Total of this assignment is 131pts, but 100% = 111pts. There are 21 bonus points. Each assignment is worth 7%. If you think your solution has been marked

More information

Algorithms 2/6/2018. Algorithms. Enough Mathematical Appetizers! Algorithm Examples. Algorithms. Algorithm Examples. Algorithm Examples

Algorithms 2/6/2018. Algorithms. Enough Mathematical Appetizers! Algorithm Examples. Algorithms. Algorithm Examples. Algorithm Examples Enough Mathematical Appetizers! Algorithms What is an algorithm? Let us look at something more interesting: Algorithms An algorithm is a finite set of precise instructions for performing a computation

More information

1 Definitions and Things You Know

1 Definitions and Things You Know We will discuss an algorithm for finding stable matchings (not the one you re probably familiar with). The Instability Chaining Algorithm is the most similar algorithm in the literature to the one actually

More information

1 Mendel and His Peas

1 Mendel and His Peas CHAPTER 6 1 Mendel and His Peas SECTION Heredity 7.2.d California Science Standards BEFORE YOU READ After you read this section, you should be able to answer these questions: What is heredity? Who was

More information

Ma/CS 6b Class 3: Stable Matchings

Ma/CS 6b Class 3: Stable Matchings Ma/CS 6b Class 3: Stable Matchings α p 5 p 12 p 15 q 1 q 7 q 12 By Adam Sheffer Reminder: Alternating Paths Let G = V 1 V 2, E be a bipartite graph, and let M be a matching of G. A path is alternating

More information

We set up the basic model of two-sided, one-to-one matching

We set up the basic model of two-sided, one-to-one matching Econ 805 Advanced Micro Theory I Dan Quint Fall 2009 Lecture 18 To recap Tuesday: We set up the basic model of two-sided, one-to-one matching Two finite populations, call them Men and Women, who want to

More information

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Homework 3. This homework is due September 22, 2014, at 12:00 noon.

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Homework 3. This homework is due September 22, 2014, at 12:00 noon. EECS 70 Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Homework 3 This homework is due September 22, 2014, at 12:00 noon. 1. Propose-and-Reject Lab In this week s Virtual Lab, we will

More information

Factoring. Number Theory # 2

Factoring. Number Theory # 2 1 Number Theory # 2 Factoring In the last homework problem, it takes many steps of the Euclidean algorithm to find that the gcd of the two numbers is 1. However, if we had initially observed that 11384623=5393*2111,

More information

One sided tests. An example of a two sided alternative is what we ve been using for our two sample tests:

One sided tests. An example of a two sided alternative is what we ve been using for our two sample tests: One sided tests So far all of our tests have been two sided. While this may be a bit easier to understand, this is often not the best way to do a hypothesis test. One simple thing that we can do to get

More information

Computational Thinking

Computational Thinking Computational Thinking Giri Narasimhan School of Computing and Information Sciences College of Engineering and Computing 2 What is Computational Thinking? u [J. Wing, CACM 2006] Thought processes involved

More information

Strategic Behavior and Manipulation in Gender- Neutral Matching Algorithms

Strategic Behavior and Manipulation in Gender- Neutral Matching Algorithms Rochester Institute of Technology RIT Scholar Works Theses Thesis/Dissertation Collections 12-2018 Strategic Behavior and Manipulation in Gender- Neutral Matching Algorithms Sanjay Varma Rudraraju sr2567@rit.edu

More information

Approximation and Randomized Algorithms (ARA) Lecture 1, September 3, 2012

Approximation and Randomized Algorithms (ARA) Lecture 1, September 3, 2012 Approximation and Randomized Algorithms (ARA) Lecture 1, September 3, 2012 Practicalities Code: 456314.0 intermediate and optional course Previous knowledge 456305.0 Datastrukturer II (Algoritmer) Period

More information

1.1 First Problem: Stable Matching. Six medical students and four hospitals. Student Preferences. s6 h3 h1 h4 h2. Stable Matching Problem

1.1 First Problem: Stable Matching. Six medical students and four hospitals. Student Preferences. s6 h3 h1 h4 h2. Stable Matching Problem //0 hapter Introduction: Some Representative Problems Slides by Kevin ayne. opyright 00 Pearson-ddison esley. ll rights reserved.. First Problem: Stable Matching Six medical students and four hospitals

More information

Math 301: Matchings in Graphs

Math 301: Matchings in Graphs Math 301: Matchings in Graphs Mary Radcliffe 1 Definitions and Basics We begin by first recalling some basic definitions about matchings. A matching in a graph G is a set M = {e 1, e 2,..., e k } of edges

More information

An improved approximation algorithm for the stable marriage problem with one-sided ties

An improved approximation algorithm for the stable marriage problem with one-sided ties Noname manuscript No. (will be inserted by the editor) An improved approximation algorithm for the stable marriage problem with one-sided ties Chien-Chung Huang Telikepalli Kavitha Received: date / Accepted:

More information

CSE 417, Winter Introduc6on, Examples, and Analysis. Ben Birnbaum Widad Machmouchi

CSE 417, Winter Introduc6on, Examples, and Analysis. Ben Birnbaum Widad Machmouchi SE 417, Winter 2012 Introduc6on, Examples, and nalysis en irnbaum Widad Machmouchi Slides adapted from Larry Ruzzo, Steve Tanimoto, and Kevin Wayne 1 Instructors: SE 417: lgorithms and omputa6onal omplexity

More information

Answer #5. Economics 630: Mathematical Economics I Professor Rebecca Menes

Answer #5. Economics 630: Mathematical Economics I Professor Rebecca Menes Answer #5 Economics 630: Mathematical Economics I Professor Rebecca Menes rmenes@gmu.edu 703-993-1156 Fall 2003, Department of Economics, George Mason University Worth 3 points each (24 points total) 1.

More information

Name: Exam 2 Solutions. March 13, 2017

Name: Exam 2 Solutions. March 13, 2017 Department of Mathematics University of Notre Dame Math 00 Finite Math Spring 07 Name: Instructors: Conant/Galvin Exam Solutions March, 07 This exam is in two parts on pages and contains problems worth

More information

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Midterm 1

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Midterm 1 EECS 70 Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Midterm 1 Exam location: 10 Evans, Last name starting with A-B or R-T PRINT your student ID: PRINT AND SIGN your name:, (last)

More information

Practice Midterm Exam

Practice Midterm Exam CS/MATH320L - Applied Discrete Math Spring 2013 Instructor: Marc Pomplun Practice Midterm Exam Sample Solutions Question 1: out of points Question 2: out of points Question 3: out of points Question 4:

More information

Matching Theory. Mihai Manea. Based on slides by Fuhito Kojima. MIT

Matching Theory. Mihai Manea. Based on slides by Fuhito Kojima. MIT Matching Theory Mihai Manea MIT Based on slides by Fuhito Kojima. Market Design Traditional economics focuses mostly on decentralized markets. Recently, economists are helping to design economic institutions

More information

AQA GCSE Physics. 60 minutes. 60 marks. Q1 to Q4 to be worked through with tutor. Q5 to Q8 to be worked through independently.

AQA GCSE Physics. 60 minutes. 60 marks. Q1 to Q4 to be worked through with tutor. Q5 to Q8 to be worked through independently. AQA GCSE Physics Electricity 4.2.5: Static Electricity & Electric Fields Name: Class: Date: Time: 60 minutes Marks: 60 marks Comments: Q to Q4 to be worked through with tutor. Q5 to Q8 to be worked through

More information

Lecture 2: Just married

Lecture 2: Just married COMP36111: Advanced Algorithms I Lecture 2: Just married Ian Pratt-Hartmann Room KB2.38: email: ipratt@cs.man.ac.uk 2017 18 Outline Matching Flow networks Third-year projects The stable marriage problem

More information

CSE 21 Practice Exam for Midterm 2 Fall 2017

CSE 21 Practice Exam for Midterm 2 Fall 2017 CSE 1 Practice Exam for Midterm Fall 017 These practice problems should help prepare you for the second midterm, which is on monday, November 11 This is longer than the actual exam will be, but good practice

More information

Lecture Tutorial: Measuring the Frequency and Period of Sunspots

Lecture Tutorial: Measuring the Frequency and Period of Sunspots Lecture Tutorial: Measuring the Frequency and Period of Sunspots Description: This data analysis activity requires students to analyze sunspots on NASA s SOHO coronagraph images to make meaning of cyclical

More information

CPSC 320 Sample Final Examination December 2013

CPSC 320 Sample Final Examination December 2013 CPSC 320 Sample Final Examination December 2013 [10] 1. Answer each of the following questions with true or false. Give a short justification for each of your answers. [5] a. 6 n O(5 n ) lim n + This is

More information

Module 03 Lecture 14 Inferential Statistics ANOVA and TOI

Module 03 Lecture 14 Inferential Statistics ANOVA and TOI Introduction of Data Analytics Prof. Nandan Sudarsanam and Prof. B Ravindran Department of Management Studies and Department of Computer Science and Engineering Indian Institute of Technology, Madras Module

More information

CS711008Z Algorithm Design and Analysis

CS711008Z Algorithm Design and Analysis CS711008Z Algorithm Design and Analysis Lecture 1 Introduction and some representative problems 1 Dongbo Bu Institute of Computing Technology Chinese Academy of Sciences, Beijing, China 1 The slides are

More information

Midterm 1. Your Exam Room: Name of Person Sitting on Your Left: Name of Person Sitting on Your Right: Name of Person Sitting in Front of You:

Midterm 1. Your Exam Room: Name of Person Sitting on Your Left: Name of Person Sitting on Your Right: Name of Person Sitting in Front of You: CS70 Discrete Mathematics and Probability Theory, Fall 2018 Midterm 1 8:00-10:00pm, 24 September Your First Name: SIGN Your Name: Your Last Name: Your Exam Room: Name of Person Sitting on Your Left: Name

More information

CSE 355 Test 2, Fall 2016

CSE 355 Test 2, Fall 2016 CSE 355 Test 2, Fall 2016 28 October 2016, 8:35-9:25 a.m., LSA 191 Last Name SAMPLE ASU ID 1357924680 First Name(s) Ima Regrading of Midterms If you believe that your grade has not been added up correctly,

More information

Solutions to the Mathematics Masters Examination

Solutions to the Mathematics Masters Examination Solutions to the Mathematics Masters Examination OPTION 4 Spring 2007 COMPUTER SCIENCE 2 5 PM NOTE: Any student whose answers require clarification may be required to submit to an oral examination. Each

More information

Creating new worlds inside the computer. COS 116: 2/10/2011 Sanjeev Arora

Creating new worlds inside the computer. COS 116: 2/10/2011 Sanjeev Arora Creating new worlds inside the computer COS 116: 2/10/2011 Sanjeev Arora Pseudocode Simple instructions: involve +, -,, Compound instructions Conditionals Loops No need to sweat over exact wording during

More information

A PARALLEL ALGORITHM TO SOLVE THE STABLE MARRIAGE PROBLEM. S. S. TSENG and R. C. T. LEE

A PARALLEL ALGORITHM TO SOLVE THE STABLE MARRIAGE PROBLEM. S. S. TSENG and R. C. T. LEE BIT 24 (1984), 308 316 A PARALLEL ALGORITHM TO SOLVE THE STABLE MARRIAGE PROBLEM S. S. TSENG and R. C. T. LEE Institute of Computer Engineering, Institute of Computer and Decision Sciences, College of

More information

Algebra Year 9. Language

Algebra Year 9. Language Algebra Year 9 Introduction In Algebra we do Maths with numbers, but some of those numbers are not known. They are represented with letters, and called unknowns, variables or, most formally, literals.

More information

Useful for Multiplication Rule: When two events, A and B, are independent, P(A and B) = P(A) P(B).

Useful for Multiplication Rule: When two events, A and B, are independent, P(A and B) = P(A) P(B). Probability Independence Last time: Two events are indpt if knowing that one did or did not happen tells you nothing about whether the other will or will not. It doesn't change the probability. Example:

More information

Math-2A Lesson 2-1. Number Systems

Math-2A Lesson 2-1. Number Systems Math-A Lesson -1 Number Systems Natural Numbers Whole Numbers Lesson 1-1 Vocabulary Integers Rational Numbers Irrational Numbers Real Numbers Imaginary Numbers Complex Numbers Closure Why do we need numbers?

More information

The set of all outcomes or sample points is called the SAMPLE SPACE of the experiment.

The set of all outcomes or sample points is called the SAMPLE SPACE of the experiment. Chapter 7 Probability 7.1 xperiments, Sample Spaces and vents Start with some definitions we will need in our study of probability. An XPRIMN is an activity with an observable result. ossing coins, rolling

More information

CPSC 320 Sample Solution, The Stable Marriage Problem

CPSC 320 Sample Solution, The Stable Marriage Problem CPSC 320 Sample Solution, The Stable Marriage Problem September 10, 2016 This is a sample solution that illustrates how we might solve parts of this worksheet. Your answers may vary greatly from ours and

More information

UNIVERSITY OF CONNECTICUT. CSE (15626) & ECE (15284) Secure Computation and Storage: Spring 2016.

UNIVERSITY OF CONNECTICUT. CSE (15626) & ECE (15284) Secure Computation and Storage: Spring 2016. Department of Electrical and Computing Engineering UNIVERSITY OF CONNECTICUT CSE 5095-004 (15626) & ECE 6095-006 (15284) Secure Computation and Storage: Spring 2016 Oral Exam: Theory There are three problem

More information

Strategy-Proofness and the Core in House Allocation Problems

Strategy-Proofness and the Core in House Allocation Problems Strategy-Proofness and the Core in House Allocation Problems Eiichi Miyagawa Department of Economics, Columbia University 420 West 118th Street, New York, NY 10027 Email: em437@columbia.edu July 28, 1999

More information

Strategies for dealing with Missing Data

Strategies for dealing with Missing Data Institut für Soziologie Eberhard Karls Universität Tübingen http://www.maartenbuis.nl What do we want from an analysis strategy? Simple example We have a theory that working for cash is mainly men s work

More information

Math 58. Rumbos Fall More Review Problems Solutions

Math 58. Rumbos Fall More Review Problems Solutions Math 58. Rumbos Fall 2008 1 More Review Problems Solutions 1. A particularly common question in the study of wildlife behavior involves observing contests between residents of a particular area and intruders.

More information

Math 166: Topics in Contemporary Mathematics II

Math 166: Topics in Contemporary Mathematics II Math 166: Topics in Contemporary Mathematics II Xin Ma Texas A&M University November 26, 2017 Xin Ma (TAMU) Math 166 November 26, 2017 1 / 14 A Review A Markov process is a finite sequence of experiments

More information

Distributed Stable Matching with Similar Preference Lists

Distributed Stable Matching with Similar Preference Lists Distributed Stable Matching with Similar Preference Lists Pankaj Khanchandani 1 and Roger Wattenhofer 1 1 ETH Zurich, Switzerland kpankaj@ethz.ch (contact author), wattenhofer@ethz.ch Abstract Consider

More information

Contingency Tables. Safety equipment in use Fatal Non-fatal Total. None 1, , ,128 Seat belt , ,878

Contingency Tables. Safety equipment in use Fatal Non-fatal Total. None 1, , ,128 Seat belt , ,878 Contingency Tables I. Definition & Examples. A) Contingency tables are tables where we are looking at two (or more - but we won t cover three or more way tables, it s way too complicated) factors, each

More information

University of Georgia Department of Mathematics. Math 1113 Final Exam Fall 2016

University of Georgia Department of Mathematics. Math 1113 Final Exam Fall 2016 University of Georgia Department of Mathematics Math 1113 Final Exam Fall 2016 By providing my signature below I acknowledge that I abide by the University s academic honesty policy. This is my work, and

More information

University of California, San Diego Department of Computer Science and Engineering CSE 20. Solutions to Midterm Exam Winter 2018

University of California, San Diego Department of Computer Science and Engineering CSE 20. Solutions to Midterm Exam Winter 2018 University of California, San Diego Department of Computer Science and Engineering CSE 20 Solutions to Midterm Exam Winter 2018 Problem 1 (30 points) a. The boolean function f(p, q) = (q p) ( q p) is specified

More information

The Three Possibilities Summary No solution Infinitely many solutions Unique solution Existence of Infinitely Many Solutions More unknowns than

The Three Possibilities Summary No solution Infinitely many solutions Unique solution Existence of Infinitely Many Solutions More unknowns than The Three Possibilities Summary No solution Infinitely many solutions Unique solution Existence of Infinitely Many Solutions More unknowns than equations Missing variable Zero equations Example: Three

More information

Random Variables Example:

Random Variables Example: Random Variables Example: We roll a fair die 6 times. Suppose we are interested in the number of 5 s in the 6 rolls. Let X = number of 5 s. Then X could be 0, 1, 2, 3, 4, 5, 6. X = 0 corresponds to the

More information

Non-fiction: Talk About Dense

Non-fiction: Talk About Dense Non-fiction: Talk About Dense Talk About Dense When you drop ice cubes into a glass of water, the ice floats to the top. Why? Ice is not as dense as water. But is that always a cold, hard fact? In most

More information

8th Grade. Two Variable Data. Slide 1 / 122 Slide 2 / 122. Slide 4 / 122. Slide 3 / 122. Slide 6 / 122. Slide 5 / 122. Data.

8th Grade. Two Variable Data. Slide 1 / 122 Slide 2 / 122. Slide 4 / 122. Slide 3 / 122. Slide 6 / 122. Slide 5 / 122. Data. Slide 1 / 122 Slide 2 / 122 8th Grade ata 2015-11-20 www.njctl.org Slide 3 / 122 Slide 4 / 122 Table of ontents click on the topic to go to that section Two Variable ata Line of est Fit etermining the

More information

cs.washington.edu/417

cs.washington.edu/417 SE 417, Winter 2012 Introduc8on, Examples, and nalysis en irnbaum Widad Machmouchi SE 417: lgorithms and omputa8onal omplexity Instructors: en irnbaum (omputer Science Ph.D.) Widad Machmouchi (omputer

More information

STABLE MARRIAGE PROBLEM WITH TIES AND INCOMPLETE BOUNDED LENGTH PREFERENCE LIST UNDER SOCIAL STABILITY

STABLE MARRIAGE PROBLEM WITH TIES AND INCOMPLETE BOUNDED LENGTH PREFERENCE LIST UNDER SOCIAL STABILITY STABLE MARRIAGE PROBLEM WITH TIES AND INCOMPLETE BOUNDED LENGTH PREFERENCE LIST UNDER SOCIAL STABILITY Ashish Shrivastava and C. Pandu Rangan Department of Computer Science and Engineering, Indian Institute

More information

Divide & Conquer. CS 320, Fall Dr. Geri Georg, Instructor CS320 Div&Conq 1

Divide & Conquer. CS 320, Fall Dr. Geri Georg, Instructor CS320 Div&Conq 1 Divide & Conquer CS 320, Fall 2017 Dr. Geri Georg, Instructor georg@colostate.edu CS320 Div&Conq 1 Strategy 1. Divide the problem up into equal sized sub problems 2. Solve the sub problems recursively

More information

Accuracy and Precision of Laboratory Glassware: Determining the Density of Water

Accuracy and Precision of Laboratory Glassware: Determining the Density of Water Accuracy and Precision of Laboratory Glassware: Determining the Density of Water During the semester in the general chemistry lab, you will come into contact with various pieces of laboratory glassware.

More information

For all For every For each For any There exists at least one There exists There is Some

For all For every For each For any There exists at least one There exists There is Some Section 1.3 Predicates and Quantifiers Assume universe of discourse is all the people who are participating in this course. Also let us assume that we know each person in the course. Consider the following

More information

CSE 421 Algorithms. Richard Anderson Autumn 2015 Lecture 1

CSE 421 Algorithms. Richard Anderson Autumn 2015 Lecture 1 CSE 421 Algorithms Richard Anderson Autumn 2015 Lecture 1 CSE 421 Course Introduction CSE 421, Introduction to Algorithms MWF, 1:30-2:20 pm MGH 421 Instructor Richard Anderson, anderson@cs.washington.edu

More information

Pendulum Activity! Frequency, Length, and Gravity. Materials

Pendulum Activity! Frequency, Length, and Gravity. Materials Pendulum Activity! Frequency, Length, and Gravity A Pendulum is a weight (bob) that swings back and forth. Frequency is how many times something happens in a certain amount of time like how many times

More information

(b) Identify two population parameters that she would be likely to estimate for her study.

(b) Identify two population parameters that she would be likely to estimate for her study. 1. Bethany wants to study the number of people who visit the Denver Zoo each day in a given year. The zoo is open and accessible year round. (a) Describe the population for this study. (b) Identify two

More information

Math 2000 Practice Final Exam: Homework problems to review. Problem numbers

Math 2000 Practice Final Exam: Homework problems to review. Problem numbers Math 2000 Practice Final Exam: Homework problems to review Pages: Problem numbers 52 20 65 1 181 14 189 23, 30 245 56 256 13 280 4, 15 301 21 315 18 379 14 388 13 441 13 450 10 461 1 553 13, 16 561 13,

More information

Contingency Tables. Contingency tables are used when we want to looking at two (or more) factors. Each factor might have two more or levels.

Contingency Tables. Contingency tables are used when we want to looking at two (or more) factors. Each factor might have two more or levels. Contingency Tables Definition & Examples. Contingency tables are used when we want to looking at two (or more) factors. Each factor might have two more or levels. (Using more than two factors gets complicated,

More information

Math 1020 ANSWER KEY TEST 3 VERSION A Fall 2016

Math 1020 ANSWER KEY TEST 3 VERSION A Fall 2016 Printed Name: Section #: Instructor: Please do not ask questions during this eam. If you consider a question to be ambiguous, state your assumptions in the margin and do the best you can to provide the

More information

Mt. Douglas Secondary

Mt. Douglas Secondary Foundations of Math 11 Calculator Usage 207 HOW TO USE TI-83, TI-83 PLUS, TI-84 PLUS CALCULATORS FOR STATISTICS CALCULATIONS shows it is an actual calculator key to press 1. Using LISTS to Calculate Mean,

More information