Text this: Dynamic programming and the Hamilton-Jacobi method of classical mechanics /