https://medium.com/@monocosmo77/recent-updates-on-dynamic-programming-part3-machine-learning-2024-fdd4763cbf0d