Source: http://str-tn.org/intelligence_artificielle_cours_exercices_corrig_s_et_projets.pdf