Source: https://ft.univ-tlemcen.dz/assets/uploads/2020-2021/S1/Notes_Examens/GEE/v4/L3_GI_GI512_Corrigé.pdf