Source: https://www.i2m.univ-amu.fr/~torresan/pages/LectureNotes/M2AM2021.pdf