shortest path in a polygon space

toughwimp11

Senior member
May 8, 2005
415
0
76
Suppose you have a 2-d space with (non-intersecting) convex polygons in it and you're trying to get from one vertex on a polygon to another vertex on some other (or potentially the same) polygon without going through any polygon. Why does the shortest path between any two vertices only consist of straight segments connecting vertices? I have to explain this for a math problem and although it makes sense, i'm really having a hard time putting it into words so help would be appreciated.
 

Matthiasa

Diamond Member
May 4, 2009
5,755
23
81
Draw a of a picture of a simple example, It will help with your explanation.
I would draw it myself but I'm lazy.
 
Feb 6, 2007
16,432
1
81
Seems to me, at least the way you've phrased it, is just an extension of the idea that the shortest distance between two points is a straight line. If you have an obstructing polygon that you are not allowed to bisect, you are now looking at making the shortest distance between your original starting point and the polygon, then the shortest distance along the polygon, then the shortest distance between that point and your endpoint. Since the line segments between vertices represent the shortest path between the points on the interfering polygon, traveling between those would represent the shortest path around the obstruction.
 

sdifox

No Lifer
Sep 30, 2005
96,205
15,787
126
well yes, shortest path but there are polygons in the way, for example a square. so why is the shortest path only go from vertex to vertex?

what do you mean by in the way? either you have a segment that is connected, or you don't.
 

Phoenix86

Lifer
May 21, 2003
14,643
9
81
what do you mean by in the way? either you have a segment that is connected, or you don't.
You want to go from point A to B, but there is a rectangular building in the way. The segment doesn't have to be connected.
 

dullard

Elite Member
May 21, 2001
25,214
3,631
126
Seems to me, at least the way you've phrased it, is just an extension of the idea that the shortest distance between two points is a straight line. If you have an obstructing polygon that you are not allowed to bisect, you are now looking at making the shortest distance between your original starting point and the polygon, then the shortest distance along the polygon, then the shortest distance between that point and your endpoint. Since the line segments between vertices represent the shortest path between the points on the interfering polygon, traveling between those would represent the shortest path around the obstruction.
You are basically describing my thought process every time I walk to/from work on a miserable day (cold, hot, rainy, etc).

1) The shortest distance is a straight line from where you are at to the end point.
2) If that path is blocked, then you have to go around the obstacle.
3) It should be obvious that the shortest distance is NOT a wide path around the obstacle but instead a path that just grazes the outside of that obstacle.
4) If I were in fact infinitely narrow, the shortest walking path would put me exactly on at least one corner of that obstacle (a vertex of the polygon).
5) Go back to #1.

I can't count the number of times I've thought this out while walking, hoping to come up with a shorter path. It inevitably leads to me thinking about building/programing a robot to run a maze.
 
Feb 6, 2007
16,432
1
81
You are basically describing my thought process every time I walk to/from work on a miserable day (cold, hot, rainy, etc).

1) The shortest distance is a straight line from where you are at to the end point.
2) If that path is blocked, then you have to go around the obstacle.
3) It should be obvious that the shortest distance is NOT a wide path around the obstacle but instead a path that just grazes the outside of that obstacle.
4) If I were in fact infinitely narrow, the shortest walking path would put me exactly on at least one corner of that obstacle (a vertex of the polygon).
5) Go back to #1.

I can't count the number of times I've thought this out while walking, hoping to come up with a shorter path. It inevitably leads to me thinking about building/programing a robot to run a maze.

I just had an image of you walking directly into people, sidling along them until you've cleared them, then continuing on your route. I think I'm going to try that...
 

dullard

Elite Member
May 21, 2001
25,214
3,631
126
I just had an image of you walking directly into people, sidling along them until you've cleared them, then continuing on your route. I think I'm going to try that...
That is where the interesting part comes along. Movable obstacles. Or obstacles that you didn't know about (e.g. a water puddle). There must be a long term goal (the next fixed object's vertex) and a short term goal (the vertex of the item you just got new information about).

Oh and be careful doing what you are planning near me. We might have a head-on collision as we both try to occupy the same vertex at the same instant.
 

puffff

Platinum Member
Jun 25, 2004
2,374
0
0
3) It should be obvious that the shortest distance is NOT a wide path around the obstacle but instead a path that just grazes the outside of that obstacle.

While this is probably true, a rigorous proof probably need to do better than starting with "It should be obvious..."
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |