algorithms homework 703272