https://medium.com/@monocosmo77/recent-updates-on-dynamic-programming-part1-machine-learning-2024-73f355a2c84d