Revised content related to math background and dynamic programming