You are on page 1of 2

Peta

(0,0) DTM (-3,-2)

(5,0)

(5,-5)

(11,-7)

(-3,-10)

(0,-20) KOS AN

(7,-15)

START

Input All Coordinate

Input 1 = DTM Input 2 = kosan YES

NO

Calculate distance of points from DTM to kosan. Store the distance of left path as R1 and right path as R2

Lokasi tidak tersedia

Select the minimum distance of R1 or R2. Store as D

ALGORITMA BISA DITAMBAHKAN JIKA TUJUAN AKHIR DITAMBAHKAN PADA PETA, MISALNYA RUMAH, STASIUN, DLL

Print D

END

You might also like