09 DP3 and Heaps Polygon Triangulation Solutions

# 09 DP3 and Heaps Polygon Triangulation Solutions - First...

This preview shows pages 1–2. Sign up to view the full content.

k k-1 i+1 i j C(i,k) = if k-i 2 (j = i+1) (j = k-1) if i+2 j k-2 C(i,k) = min Exercise: 0 C(i+1, k) + l(i+1,k) C(i, k-1) + l(i, k-1) C(i, j) + C(j, k) + l(i, j) + l(j, k)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
2 Triangulation exercise cont’d In what order should the table entries be entered?
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: First, main diagonal and then each successive diagonals in upper triangle 1. Diagonals: C(i,i), C(i,i+1), C(i,i+2) = 0 2. Diagonals: C(i, i+j), j = 3, …, n-i What’s the space and running time of this algorithm? S(n) = Θ (n 2 ) T(n) = Θ (n 3 )...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern