Email Record: Dynamic programming, generalized states, and switching systems /