Sie sind auf Seite 1von 2

How the recursive DP unfolds -an animated sequence

: means that a call is initiated; the value has not been resolved
: means that the value has been obtained

Goal: cost[1,n]; computation unfolds after calling cmat(1,n): y n x=y

0
0 0 0 0 0 0 0
1 2 n x
2

cost[x,y]= Min { cost[x,i] + cost[i+1,y]+D[x,1]*D[i,2]*D[y,2]} for x i<y

Das könnte Ihnen auch gefallen