homework assignment 3 analysis of algorithms 1222160