Artificial Intelligence Homework 3 Solution