Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
b)to calculate all arrangements in the given time, first we make an arbitrary subset
of a male group and then use stable matching GaleShapley algorithm(tell me if u
dnt know this)..so what it does is gale shapley gives us a stable matching in o(n^2)
time ,and we in all can make (2^n) subsets from n men ,hence the time
O(n^2(2^n))