https://medium.com/@monocosmo77/recent-updates-on-dynamic-programming-part2-machine-learning-2024-4afe1a6f2109