Applied Algorithms Assignment #4