Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Consider the following instance of the Stable Matching Problem: We have two men m and m and two women w and w.m prefers w

image text in transcribed
1. Consider the following instance of the Stable Matching Problem: We have two men m and m and two women w and w.m prefers w to w.m prefers w to w.w prefers m to m.w prefers m to m. (a) Use the Gale-Shapley algorithm to find a stable matching of this instance. (b) Show why the matching {(m,w),(m,w)} is not stable. 2. Decide whether you think the following statements are true or false. If it is true, give a short explanation. If it is false, give a counterexample. (a) In every instance of the Stable Matching Problem, there is a stable matching containing a pair (m,w) such that m is ranked first on the preference list of w and w is ranked first on the preference list of m. (b) Consider an instance of the Stable Matching Problem in which there exists a man m and a woman w such that m is ranked first on the preference list w and w is ranked first on the preference list of m. Then in every stable matching S for this instance, the pair (m,w) belongs to S. 3. Apply the optimal greedy algorithm for the interval scheduling problem to obtain a compatible subset of requests of maximum possible size for the following set of requests: (s(i),f(i))=(0,3),(0,2),(4,7),(2,6),(2,3). 4. Apply the optimal greedy algorithm for the interval partitioning problem to schedule all of the requests using as few resources as possible for the following set of requests: (s(i),f(i))=(0,3),(0,2),(5,7),(2,4),(4,6)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions