POJ1160 Post Office - Quadrilateral Inequality Optimized DP

equation

$\Large f(i,j)=min(f(i-1,k)+w(k+1,j))$

where $w(i,j)$ represents the minimum distance to a post office in the villages of $[i,j]$ and

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325234415&siteId=291194637