Algorithms, Part I, II