My AI homework 1 of 2014 Autumn AI course in NTU EE