D2 June 2018 Q6

EdexcelOld spec15 marksDynamic Programming

6. Jonathan is an author who is planning his next book tour. He will visit four countries over a period of four weeks. He will visit just one country each week. He will leave from his home, S, and will only return there after visiting the four countries. He will travel directly from one country to the next. He wishes to determine a schedule of four countries to visit.

Table 1 shows the countries he could visit each week.

Week1234
Possible countriesA, B or CD or EF, G or HI or J

Table 1

Table 2 shows the appearance fees, in £100s, he expects to earn in each country.

CountryABCDEFGHIJ
Earnings in £100s27293224223536383029

Table 2

Table 3 shows the cost, in £100s, of travelling between the countries.

ABCDEFGHIJ
S34653
A64
B53
C65
D768
E664
F57
G57
H67

Table 3

Jonathan’s expected income is the value of the appearance fees minus the cost of travel. He decides to use dynamic programming to find a schedule that maximises his total expected income for these four weeks.

Complete the table in the answer book to solve this dynamic programming problem. Hence write down Jonathan’s optimal expected income and state his possible optimal schedules.