lec17 - Introduction to Algorithms 6.006 Lecture 17 Prof....

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction to Algorithms 6.006 Lecture 17 Prof. Piotr Indyk
Background image of page 1

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

View Full DocumentRight Arrow Icon
Menu Last two weeks – Bellman-Ford • O(VE) time • general weights – Dijkstra • O( (V+E)logV ) time • non-negative weights Today: applications – Obstacle course for robots – Scheduling with constraints
Background image of page 2
Obstacle course for robots Obstacles: disjoint triangles T 1 …T n Robot: a point at position A Goal: the shortest route from A to B A B
Background image of page 3

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

View Full DocumentRight Arrow Icon
Path planning algorithm Let V be the set consisting of triangle vertices, A and B – Note that V=O(n) Observation: the shortest path consists of line segments between points in V Approach: – For each pair u,v in V such that the segment u-v is “free”, create an edge u-v (weight = segment length). This is called visibility graph G – Compute the shortest path from A to B in G A B
Background image of page 4
Computing visibility graph For each segment u-v , check whether there is any triangle T i such that one of its sides (say, s ) intersects u-v – The test whether s intersects u-v can
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 11

lec17 - Introduction to Algorithms 6.006 Lecture 17 Prof....

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online