Algorithms and Complexity Homework #1