Artificial Intelligence Homework 1 Solution