








































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









































Manhattan Tourist Problem: Formulation
MTP: Greedy Algorithm Is Not Optimal 1 2 5 2 1 5 2 3 4 0 0 0
promising start, but leads to bad choices! source sink
i source 1 5 S1,0 = 5 S0,1 = 1
j
source 1 3 5 8 4 S2,0 = 8 i S1,1 = 4 S0,2 = 3 3
i source 1 3 8 5 8 8 4 9 13 8 9 12 S3,1 = 9 S2,2 = 12 S1,3 = 8 j
i source 1 3 8 5 8 8 4 9 13 8 12 9 15 9 j S3,2 = 9 S2,3 = 15
si, j = max si-1, j + weight of the edge between ( i-1, j ) and ( i, j ) si, j-1 + weight of the edge between ( i, j-1 ) and ( i, j )
Manhattan Is Not A Perfect Grid