In: Computer Science
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
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.
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
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.