Introduction [00QW]

Consider the following table composed of n weeks where each week i has low stress job that pays L_{i} and a high stress job that pays H_{i}.

WEEK 1 2 3 \dots n
low stress L_{1} L_{2} L_{3} \dots L_{n}
high stress H_{1} H_{2} H_{3} \dots H_{n}

Each week you are allowed to pick either a low stress job or a high stress job; however, picking a high stress job at week i means that you must first take the week before (i.e. week i-1) off. Your goal is to maximize your total income. Let’s suppose that you are allowed to take the high-stress job in week 1 (it doesn’t change the overall solution much either way, only the base case).