Source: https://efreidoc.fr/L3/Optimisation%20%26%20Complexit%C3%A9/Cours/2006-07.cours.chapitre1.opti.pdf