Room Allocation: a Polynomial subcase of the Quadratic Assignment Problem