Text this: Finding optimal policies in discrete dynamic programming /