Data Structures and Algorithms 120: inventory assignment