tags:


6. Limitations of DP TSP #

Created Fri Aug 9, 2024 at 12:45 AM

TSP #

page 339

When is Dynamic Programming Correct? #

DP won’t work if

p340

When is Dynamic Programming Efficient? #

Two things decide efficiency of a DP solution:

  1. Storage space. This is the major reason. If problems have a firm order (i.e. changing them would change the problem), then DP might work. But if elements of the problem can be reordered, then we get exponential solutions.
  2. Time to evaluate one partial solution. Usually all predecessors is just fine. i for i.

Take-Home Lesson: Without an inherent left-to-right ordering on the ob- jects, dynamic programming is usually doomed to require exponential space and time.