Dynamic Programming is not Black Magic

algorithms