Source: https://www.lri.fr/~hivert/COURS/Info121/02-donnees.pdf