Dynamic Programming: Minimax, Maximin and Production Planning | Edexcel A Level Further Maths notes

Free preview: Dynamic Programming: Minimax, Maximin and Production Planning

Bottleneck Routes: Maximin and Minimax

Year 2 (A level): this is on Edexcel's A level Decision Mathematics 2 paper (9FM0/4D). Check your own specification if you are unsure when it is taught.

Let's start with a lorry driver. Each road has a bridge with a weight limit. The heaviest load the lorry can carry along a route is the smallest limit on that route. Which route lets it carry the most?

  • Notice: adding up the arcs is useless here. A route with limits 50, 50 and 2 has a big total but can only carry 2 tonnes.
  • What matters is the worst arc on the route: the bottleneck.
  • Good news: the dynamic programming table from the last note still works. Only the rule in the value column changes.

A network with arcs SA 7, SB 5, AC 4, AD 8, BD 6, BE 9, CT 6, DT 6, ET 7, weights are bridge limits in tonnes; the route S-A-D-T is highlighted, with smallest arc 6

Following the diagram

  • Each arc shows a bridge's weight limit in tonnes.
  • On route S-A-D-T the limits are 7, 8 and 6. The lorry can carry at most min(7, 8, 6) = 6 tonnes.
  • On S-B-E-T the limits are 5, 9, 7. Only 5 tonnes, because of the first bridge.
  • We want the route whose worst arc is as large as possible: a maximin route.
  • The highlighted route S-A-D-T is the answer, with value 6.

Two new kinds of problem

NameMeaningExamples
MaximinMaximise the minimum arc on the route.Weight limits, bridge heights, the worst road surface.
MinimaxMinimise the maximum arc on the route.The longest single leg of a journey, the steepest climb, the highest altitude.

๐Ÿ’ก In plain words

  • Read the name from the outside in. Maximin: maximise the minimum.
  • Minimax: minimise the maximum.

Changing the table

Maximin value=max(min(arc,best of next state))

  • Instead of adding, take the minimum of the arc and the next state's best value: that is the bottleneck along this route.
  • Then pick the maximum of those over the actions.
  • For minimax, swap the roles: take the maximum of the arc and the next value, then the minimum over the actions.

โœ๏ธ YOUR TURN 1

Try this first:

Is each a maximin or a minimax problem?

  1. A walker wants the route whose steepest hill is as gentle as possible.
  2. A van wants the route whose lowest bridge is as high as possible.

Answer:

  1. Minimax: minimise the maximum steepness.
  2. Maximin: maximise the minimum bridge height.

A Maximin Table

The recipe: maximin (or minimax) table

  1. Stages, states and actions exactly as before, working backwards from T.
  2. Stage 1: the value is just the arc into T.
  3. Each earlier action: value = min(arc, best value of next state) for maximin, or max(arc, best of next) for minimax. Why: the route's bottleneck is the worse of this arc and the worst arc still to come.
  4. Best value for each state: the maximum (maximin) or minimum (minimax).
  5. Read the route forwards and state its value.
StageStateActionValueBest value
1CCT66
DDT66
EET77
2AACmin(4, 6) = 4
ADmin(8, 6) = 66
BBDmin(6, 6) = 6
BEmin(9, 7) = 77
3SSAmin(7, 6) = 66
SBmin(5, 7) = 5

๐Ÿ‘€ Watch me do it: the lorry's maximin route

What I writeWhy I do it
A: AC min(4, 6) = 4; AD min(8, 6) = 6. Best 6.Via D the worst bridge so far is 6.
B: BD 6; BE min(9, 7) = 7. Best 7.From B, the route via E carries 7.
S: SA min(7, 6) = 6; SB min(5, 7) = 5. Best 6.The first bridge SB is only 5.
Route S-A-D-T; the lorry can carry up to 6 tonnes.Read the best actions forwards.
  • From B the best tail is B-E-T (value 7), but the first bridge SB only takes 5, so going via B is worse.

Diagram: A route can only carry the smallest limit along it: its bottleneck.

What the picture shows

  • A route can only carry the smallest limit along it: its bottleneck.
  • Wrong: B-E-T has the best tail (7), but the first bridge SB only takes 5. So S-B-E-T carries just 5 tonnes.
  • Right: S-A-D-T has limits 7, 8 and 6, so it carries 6 tonnes.
  • That is why the table takes min(arc, next best value) for every action before choosing the maximum.

๐Ÿ“ Don't add

  • โœ— Wrong: value 7+6=13 for SA in a maximin table. That is a shortest or longest route rule.
  • โœ“ Right: value min(7, 6) = 6. Write the min( , ) or max( , ) every time: it earns the method mark.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in ยท Subscribe ยท Start free trial

All notes in Dynamic Programming

  1. Dynamic Programming: Stages, States and Shortest or Longest Routes
  2. Dynamic Programming: Minimax, Maximin and Production Planning

What's inside for this topic

2 teacher notes, 61 practice questions, 41 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp ยท Try one live lesson

Previous note: Dynamic Programming: Stages, States and Shortest or Longest Routes

All Edexcel A Level Further Maths topics ยท A Level Further Maths