The roommate problem and intern assignment problem

Assignment Help Theory of Computation
Reference no: EM13103456

Implementation of both the algorithms using C/C++ code 1. roommates problem 2. Intern Problem

1. The Roommate Problem

The roommate problem involves a single set of agents of even cardinality n, each agent having a preference list over the other n - 1 agents. A stable matching in this case is a partition of this single set into n/2 pairs so that no two unmatched members both prefer each other over their partners under the matching. There exist instances of the roommate problem (both with and without ties) for which no stable matching exists. One such instance is due to Gale and Shapley [l], Example 1.1:

1899_Roommate Problem.png

Anyone assigned to 4 will find a person whom he prefers and who prefers him.

An efficient algorithm to constructively determine for any instance of the roommate problem without ties whether a stable assignment exists (and if one exists to determine one) has recently been discovered by Irving [3]. This algorithm is dependent on properties of the roommate problem that hold only for the case without ties. A result of this paper, to be demonstrated in Section 2 is that this dependency is unavoidable. When ties are allowed, the roommate problem is NP-complete.

The marriage problem is a special case of the roommate problem. Every instance I of the marriage problem can be converted to an instance of the roommate problem by adding to the bottom of the preference list of every agent A of I a list of the agents of the same gener as A (other than A itself) in arbitrary order. It is easy to see that the set of stable matchings of this generated instance of the roommate problem coincides with the set of stable matchings of the original marriage problem.

2. The Intern Assignment Problem (IAP)

The intern assignment problem is merely the polygamous form of the marriage problem, in which the members of one of the geners can take on up to a (preset) number of partners of the opposite gender. An algorithm that solves this problem, called the NIMP (National Internship Matching Program) algorithm, has been used since 1953 to assign graduating medical students as interns in hospitals throughout the United States (hence the name of the problem). The NIMP algorithm can be considered a generalization of the Gale-Shapley method. A description of the method and a history of this program can be found in Roth [9].

Formally stated, the intern assignment problem is a stable matching problem where a set of interns are assigned to a set of hospitals. Each
hospital has a preset number of positions it wants to fill and a priority list that ranks the interns in accordance with its preferences over whom to hire to fill those positions. Note that since a hospital's preferences are one- dimensional, one should regard these multiple positions as identical. Different sections in the same hospital should be considered as different hospitals in this scheme. A hospital can rank in its preference list the possibility of leaving a position unassigned over being assigned to some of the interns.

On the other hand, each of the interns has a preference list over the hospitals that specifies which hospitals the intern would like to be assigned to. An intern can rank in his preference list the possibility of remaining unassigned to any one among a list of undesired hospital positions.

An assignment of interns to hospitals is unstable if one of the following holds:

There exists a hospital or an intern that prefers to remain unassigned rather than accept the assignment under the matching; or There exist a hospital and an intern such that the intern prefers that hospital over the one to which the intern had been assigned and the hospital prefers that intern over the current assignment of that position.

As mentioned, the marriage problem is a special case of the intern assignment problem. An instance of the marriage problem is an instance of the intern assignment problem. The difference is that the options of polygamy and not assigning some of the agents are not used.

Reference no: EM13103456

Questions Cloud

What is the percent change in the pressure of the gas : The rms speed of a sample of gas is increased by 3 percent. What is the percent change in the temperature of the gas? What is the percent change in the pressure of the gas, assuming its volume is held constant?
Relation of poisson and binomial distribution : If X and Y are two independent Poisson random variables, then show that the conditional distribution of X given X+Y is binomial.
Company manufacture a quality line of home kitchen appliance : You've just learned that your primary competitor has just cut their prices to the consumer by 7%. Illustrate what might be some reasons that would support their decision to make a price reduction? Illustrate what should be your thoughtful reaction..
What is the final temperature of the gas : A mass rests on top of the piston. The initial temperature of the system is 305 K and the pressure of the gas is held constant at 137 kPa. The temperature is now increased until the height of the piston rises from 23.4 cm to 27.0 cm. What is the f..
The roommate problem and intern assignment problem : Implementation of both the algorithms using C/C++ code 1. roommates problem 2. Intern Problem
Word problem for probability ratio : Suppose Napoleon were using Bayes' theorm to revise his information. To do so, he would have had to make some judgements about P(Prussian and English Join forces |Napoleon Wins) and P(Prussian and English Join forces |Napoleon loses).
Problem related to least squares equation : Assume the least squares equation is Y' = 10 + 20X. What does the value of 10 in the equation indicate?
Fast-food chains like mcdonald''s promote customer loyalty : Fast -food chains like McDonald's promote customer loyalty by offering similar experiences at all their stores. How much do you think McDonald's can let franchise owners in international locations experiment
Illustrate what is the general obligation parties must count : Illustrate what is the general obligation parties must be able to count on in the system of free enterprising?

Reviews

Write a Review

Theory of Computation Questions & Answers

  Redundant sequence identi cation

Redundant sequence identi cation

  What ambiguity exists in the statement

Suppose f is a function that returns the result of reversing the string of symbols given as its input, and g. What ambiguity exists in the statement x?

  Use undecidability of allcfg to show problem is undecidable

Use undecidability of ALLCFG to illustrate that following problem is also undecidable: Given PDA M1 and FA M2, is L(M1) = L(M2)?

  Create a parser to check expression for allowable form

Find out its grammatical structure with respect to given formal grammar. You are needed to create a parser which will check expression for allowable form.

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  Productions of nonterminals as right regular grammars

Rewrite the productions for each of the following nonterminals as right regular grammars: Identifier, Float. Show the moves made using the DFSA for identifiers in accepting.

  Front end and back end processes of office automation

Discuss the difference between the front end and back-end processes of office automation? Provide some examples in your workplace or that you come into contact with?

  Write set of token types returned by lexical analyzer

Write down the set of token types to be returned by your lexical analyzer. Describe regular expressions for this set of token types.

  Design mealy fsm with the input a and output z

Design a Mealy FSM with the input A and an output Z. If 10101 shows up on A, then in same cycle 1 must show up on Z, else Z is 0.

  Rice-s theorem for enumerable or non-re

We know by rice's theorem that none of the following problems are decidable. However,are they recursively enumerable,or non-RE? IS L(M) infinite?

  Interpreting the regular expressions as languages

Show that the following identities hold for regular expressions over any alphabet: epsilon + R*R = R*. These should be done by interpreting the regular expressions as languages.

  Write algorithm for finding useless-productive nonterminals

Write down the algorithm for finding useless/productive nonterminals. Describe how this gives you the algorithm for whether language generated by grammar is empty.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd