On the dynamic programming treatment of discrete-time variational problems | lit.salon