Problem sets from Algorithms, Part I.