Implementing algebraic dynamic programming in the functional and the imperative programming paradigm - Giegerich, Robert (IDEAS Working Paper Series from RePEc, 2010)