Question

In: Computer Science

Consider the TA assignment problem where n Teaching Assistants (TAs) are to be assigned to n...

Consider the TA assignment problem where n Teaching Assistants
(TAs) are to be assigned to n courses with one course having exactly
one TA. Each course ranks all of the TAs, and each TA ranks all the
courses, from most to least desirable.
Can you provide an example of an assignment and preference lists such
that every TA and course forms an unstable pair? (Yes/No). If Yes,
present the assignment. If No, justify your answer.
note: gale shapley algorithm

Solutions

Expert Solution

No there doesn't exist an unstable assignment. The gale shapley algorithm generate stable pairs. In this case Course are assigned to  TA.

Algorithm : 
    In algorithm below Course_Pref_list is given by each TA and TA_Rank_list is provided by each Course.

  

  1. Set all courses_list and TA_list to be assigned null
  2. Repeat step 3 and 4 until all TA is assigned course from courses_list
  3. if TA Tp is not assigned any course.
  4. Search course_Pref_list of TA Tp and  assign a course
    1. which is still assigned null.
    2. if no such course is null .Repeat
      1. Choose one Cq course in the TA Tp Course_pref_list in given order.
      2. In that course Cq find TA Tp. and see if Tp ranked higher than current assigned TA.
      3. Assign that course Cq to TA Tp.
  5. At the end every TA is assigned a course by which both are satisfied according to  given preference than any other possible assignment.

Proof:

Every TA Ti  must have listed  the Course Cj  at some number(according to desirability)  and Similarly Cj must have ranked Ti at some number (ranking order).

The proof by contradiction.

Assume :   After the algorithm termination, Ti   and Cj are assigned to some other Cx and Ty. Ti and Cj both prefer each other more than their current allocation (Already provided with the problem).

If Cj ranks Ti higher-up than current assigned Ty , the assignment is only possible

  1. if Cj was assigned Ti(by looking from Ti preference list ) and Cj (by looking from Course ranking TA list) was then assigned to Ty. This shows that Ty is more preferred than Ti. It tells us that Ti was not higher in the preference list than Ty.
  2. Ti was assigned Cj(by looking from Course ranking TA list) and Ti (by looking from Ti preference list) was then assigned to Cx. This shows that Cx is more preferred than Cj. It tells us that Cj was not higher in the preference list than Cx.

In  both the above cases it is shows either Ti or Cj have conflict with their preference. Which contradicts our assumption that Ti and Cj are both preferred then current assignment.


Related Solutions

Problem 1. Consider a Cournot game with n > 2 firms, where all firms are identical....
Problem 1. Consider a Cournot game with n > 2 firms, where all firms are identical. Assume the linear demand and cost functions. Solve for the symmetric Nash equilibrium. Find the price at which output is sold in the Nash equilibrium and show that the equilibrium price approaches the unit cost of production, as the number of firms increases arbitrarily. Comment on your result. Payoff function for firm 1: ?(q1, q2,...,qn) = {? - (q1 + q2 + q3 +......
2. Consider an n-cube, where n = 3. Is it possible to draw this on a...
2. Consider an n-cube, where n = 3. Is it possible to draw this on a two dimensional plane where the lines do not cross? If it is possible, draw it. If not, prove that it isn't possible.
Many universities pay their teaching assistants (TA) or associate instructors (AI) as weekly workers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 10 hours they work and “time-and-a-half”
Needs to be written in CMany universities pay their teaching assistants (TA) or associate instructors (AI) as weekly workers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 10 hours they work and “time-and-a-half”- i.e., 1.5 times their hourly wage - for overtime hours worked), commission workers (who receive $250 plus 7.1 times their gross weekly work hours), or pieceworkers (who receive a fixed amount of money for each of...
Problem 2. Consider a graph G = (V,E) where |V|=n. 2(a) What is the total number...
Problem 2. Consider a graph G = (V,E) where |V|=n. 2(a) What is the total number of possible paths of length k ≥ 0 in G from a given starting vertex s and ending vertex t? Hint: a path of length k is a sequence of k + 1 vertices without duplicates. 2(b) What is the total number of possible paths of any length in G from a given starting vertex s and ending vertex t? 2(c) What is the...
Consider an n×n square board, where n is a fixed even positive integer. The board is...
Consider an n×n square board, where n is a fixed even positive integer. The board is divided into n 2 unit squares. We say that two different squares on the board are adjacent if they have a common side. N unit squares on the board are marked in such a way that every unmarked square on the board is adjacent to at least one marked square. Determine the smallest possible value of N.
The first problem of this assignment considers a situation where the random variable in question is...
The first problem of this assignment considers a situation where the random variable in question is a sample mean. This exercise addresses the situation where the random variable in question is a proportion. Suppose you have been hired by the Better Business Bureau (BBB) to investigate the settlement ratio of the complaints they have received. You plan to select a sample of n complaints to estimate the proportion of complaints the BBB is able to settle. We use p to...
Knapsack algorithm problem: Consider the following variation of the Knapsack problem. There are n types of...
Knapsack algorithm problem: Consider the following variation of the Knapsack problem. There are n types of items, let call them 1,2,3,4,...,n. There are exactly c_i copies of item i, and each such copy has value v_i and weight w_i. As before, the knapsack capacity is W, and the other constraint is that you can only take at most c_i copies of item i ( since no more are available). Show how to compute the optimal value that can be achieved...
We consider a randomized experiment, the Tennessee STAR experiment, where students and teachers are randomly assigned...
We consider a randomized experiment, the Tennessee STAR experiment, where students and teachers are randomly assigned to either a small class (15 students) and a regular class (24 students). We want to estimate the effect of smaller class in primary school and use the following linear model: Score = β0 + β1ClassSize + Controls + u, where Score is student’s academic score, Class Size is dummy for small class, and controls includes free lunch status, race, gender, teacher characteristics and...
Consider the problem of sorting an array A[1, ..., n] of integers. We presented an O(n...
Consider the problem of sorting an array A[1, ..., n] of integers. We presented an O(n log n)-time algorithm in class and, also, proved a lower bound of Ω(n log n) for any comparison-based algorithm. 2. Give an efficient sorting algorithm for an array C[1, ..., n] whose elements are taken from the set {1, 2, 3, 4, 5}.
Consider the problem of sorting an array A[1, ..., n] of integers. We presented an O(n...
Consider the problem of sorting an array A[1, ..., n] of integers. We presented an O(n log n)-time algorithm in class and, also, proved a lower bound of Ω(n log n) for any comparison-based algorithm. 3. Give an efficient sorting algorithm for an array D[1, ..., n] whose elements are distinct (D[i] ̸= D[j], for every i ̸= j ∈ {1, ..., n}) and are taken from the set {1, 2, ..., 2n}.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT