https://medium.com/@monocosmo77/understanding-polynomial-time-problems-part2-machine-learning-47d4cdc58543