PART 3 / LESSON 18 · Overview free · interactive lesson in the full course

Dynamic programming under memory constraints

Study repeated subproblems, capacity trade-offs and techniques for reducing intermediate storage.

View lesson accessAll lessons

What the lesson covers

The course lesson is called The update that must fit. The update image has more modules than the flash can hold. Choosing the best set by trying every combination takes hours, but remembering sub-answers finds it in milliseconds.

Before you start

Question to think about: Which intermediate results must remain available to compute the next result?

Preparation exercise: State a small optimization problem, its bounds and a simple exhaustive reference for checking small inputs.

This is an original public study prompt, not the paid lesson or its solution. The interactive course contains the walkthroughs, labs, exercises and recaps.

Read the free embedded C articles for additional practice.

Test your understanding

Practice free firmware interview questions and mock interviews · Assess your readiness