Triangulation Observations
• Note that mostly Ck[1,n] =
C[1,k]+C[k,n]+D[1,k]+D[k,n]
• But what about when k = 2?
– D[1,2] appears in the
formula, but it’s not part of
the triangulation
• Trick: Define C[1,2] = -D[1,2]
In general: C[i,i+1] = -D[i,i+1]
– Terms cancel to provide
correct result
– With this trick, formula
above holds for all k
• Note that
C[i,j] = mink Ck[i,j]
• Agorithmic idea:
– Determine C[i,j] for all i and j
– Final result is held in C[1,n]
• What order should we use to
fill in C[i,j]?
– 3 adjacent vertices, then
– 4 adjacent vertices, then
– 5 adjacent vertices, then...
CS409 - Spring 2000
18