© Michael Stueben 2018
Michael StuebenGood Habits for Great Codinghttps://doi.org/10.1007/978-1-4842-3459-4_21

21. Dynamic Programming

Michael Stueben1 
(1)
Falls Church, Virginia, USA
 

Preface. A preface to a chapter is unusual, but dynamic programming requires some motivation.

The Most Profound Academic Joke Ever Told

A professor was searching near a lamppost for his dropped keys when one of his former students walked by. “Did you lose your keys, Professor?” asked the student.

“Yes, I did,” replied the professor.

“Well, I’ll help you look,” said the student.

After a few minutes of search, the student asked, “Do you know on which side of the lamppost you most likely dropped them?”

“Oh,” said the professor, “I dropped them somewhere over there by the side ...

Get Good Habits for Great Coding: Improving Programming Skills with Examples in Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.