script for "Algorithms: Design and Analysis, Part 1" Coursera