Leaving Certificate Applied Mathematics2.10 Bellman's principle of optimality

All books

2.10 Bellman's principle of optimality — Learn

Prerequisites: Section 2.9 — backward recursion.

Objectives: state Bellman's principle; explain why it makes dynamic programming valid; say what it does and does not claim.

By the end of this section you know why the backward method is allowed, not only how to do it.

The principle

Section 2.9 solved a staged network by working backwards, keeping one number per state. That works because of a fact about optimal routes, named after Richard Bellman.

Bellman's principle of optimality. Any part of an optimal route is itself an optimal route between its own two endpoints.

In other words: if the whole journey is the cheapest possible, then no section of it can be replaced by a cheaper section. If a section could be improved, improving it would make the whole journey cheaper — contradicting that the whole journey was optimal.

Example 1. On the network of Section 2.9 the optimal route from AA to FF is A→C→E→FA \to C \to E \to F, of cost 88.

Look at the part C→E→FC \to E \to F, of cost 33. The principle says this part is optimal between CC and FF. The only other route from CC to FF is C→D→FC \to D \to F at 3+6=93 + 6 = 9, which is dearer. So the part is indeed optimal, as promised.

But notice: the principle told us it would be, before we checked. That is what makes it useful.

Why it makes dynamic programming valid

Dynamic programming works by solving small sub-problems once and building larger answers out of them. That is only sound if a sub-problem's best answer is the same no matter which larger problem it belongs to.

Bellman's principle gives exactly that. If every part of an optimal route is itself optimal, then

the least cost from a state to the end is a fixed number, independent of how you arrived at that state.

So each state can be solved once, and its value reused everywhere that state appears. The backward recursion relies on precisely this.

Example 2. In Section 2.9 the value at BB was 88. Whether you reach BB from AA directly or by some longer route, the best way to finish from BB costs 8. That is why the value at BB is a single number, and why it can be worked out before you know how you will arrive.

What the principle does not say

It is possible to state this too strongly, so be careful.

Example 3. A route from AA to FF goes A→B→D→FA \to B \to D \to F, costing 2+4+6=122 + 4 + 6 = 12. This route is not optimal. Is the part B→D→FB \to D \to F optimal between BB and FF?

No — B→E→FB \to E \to F costs 7+1=87 + 1 = 8, which is cheaper than 4+6=104 + 6 = 10. The part is not optimal, and Bellman's principle makes no claim that it should be. The principle is about optimal routes only.

Progress check

Back to the chapter problem. You have found the cheapest route through the zones, and the cheapest set of cables for the building.

Take the cheapest route and pick any part of it — say, from the second zone to the finish. Check that this part is itself the cheapest route between those two points. It must be, by Bellman's principle. Now try the same with a route you know is not cheapest, and find a part that is not optimal. Writing down the contrast is the clearest way to see what the principle claims.

You should now be able to

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.