permuting polygons

78
Permuting Polygons Thomas Henderson Under the direction of Dr. Paul Latiolais Second reader Dr. Bin Jiang

Upload: mathpunk

Post on 25-Jun-2015

506 views

Category:

Education


0 download

DESCRIPTION

On a problem of polygons, convexity, and computational complexity.

TRANSCRIPT

Page 1: Permuting Polygons

Permuting PolygonsThomas Henderson

Under the direction of Dr. Paul Latiolais

 Second reader

Dr. Bin Jiang

Page 2: Permuting Polygons

types of polygons

Page 3: Permuting Polygons

a polygon is simple if it does not self-intersect.

simple

Page 4: Permuting Polygons

a polygon is simple if it does not self-intersect.

simple

not simple

Page 5: Permuting Polygons

a polygon is simple if it does not self-intersect.

simple

not simple

really not simple

Page 6: Permuting Polygons

a polygon is convex if, given two points in the polygon, the line segment joining them is also in the polygon.

Page 7: Permuting Polygons

a polygon is convex if, given two points in the polygon, the line segment joining them is also in the polygon.

convex

Page 8: Permuting Polygons

a polygon is convex if, given two points in the polygon, the line segment joining them is also in the polygon.

convex

Page 9: Permuting Polygons

a polygon is convex if, given two points in the polygon, the line segment joining them is also in the polygon.

convex

Page 10: Permuting Polygons

a polygon is convex if, given two points in the polygon, the line segment joining them is also in the polygon.

convexnot convex

Page 11: Permuting Polygons

a polygon is star-shaped if all points in the polygon can be seen from some point in the polygon's interior.

Page 12: Permuting Polygons

a polygon is star-shaped if all points in the polygon can be seen from some point in the polygon's interior.

k

Page 13: Permuting Polygons

a polygon is star-shaped if all points in the polygon can be seen from some point in the polygon's interior.

k

Page 14: Permuting Polygons

a polygon is star-shaped if all points in the polygon can be seen from some point in the polygon's interior.

k k is in the kernel of the polygon.

Page 15: Permuting Polygons

this polygon is NOT star-shaped.

Page 16: Permuting Polygons

this polygon is NOT star-shaped.

Page 17: Permuting Polygons

this polygon is NOT star-shaped.

Page 18: Permuting Polygons

this polygon is NOT star-shaped. the kernel is empty.

Page 19: Permuting Polygons

a polygon can be oriented by adding a direction to every edge.

Page 20: Permuting Polygons

a polygon can be oriented by adding a consistent direction to every edge.

Page 21: Permuting Polygons

a polygon can be oriented by adding a consistent direction to every edge.

the polygon is oriented (clockwise).

Page 22: Permuting Polygons

edge swaps

Page 23: Permuting Polygons
Page 24: Permuting Polygons
Page 25: Permuting Polygons
Page 26: Permuting Polygons

let P be a clockwise-oriented, star-shaped polygon. let a and b be edges of P which are adjacent, and which form a left-hand turn.

let k be a point in the kernel of P.

Page 27: Permuting Polygons
Page 28: Permuting Polygons
Page 29: Permuting Polygons
Page 30: Permuting Polygons
Page 31: Permuting Polygons

1. the new polygon contains the old one

Page 32: Permuting Polygons

1. the new polygon contains the old one

Page 33: Permuting Polygons

1. the new polygon contains the old one

Page 34: Permuting Polygons

1. the new polygon contains the old one

Page 35: Permuting Polygons

1. the new polygon contains the old one

2. the new kernel contains the old one

Page 36: Permuting Polygons

1. the new polygon contains the old one

2. the new kernel contains the old one

3. the new polygon is star-shaped

Page 37: Permuting Polygons

convexification

Page 38: Permuting Polygons

Problem: Given a star-shaped polygon, can you make it a convex polygon by swapping edges?

Page 39: Permuting Polygons

Problem: Given a star-shaped polygon, can you make it a convex polygon by swapping edges?

no, seriously: can you?

Page 40: Permuting Polygons

Instructions: 1. Make a star-shaped polygon.• Turn it into a convex polygon.

You may ONLY swap adjacent edges!

Page 41: Permuting Polygons

Instructions: 1. Make a star-shaped polygon.• Turn it into a convex polygon.

You may ONLY swap adjacent edges!

go!

Page 42: Permuting Polygons
Page 43: Permuting Polygons
Page 44: Permuting Polygons

The Convexification Algorithm

Page 45: Permuting Polygons

The Convexification Algorithm

Traverse the polygon in the direction it is oriented. When you come to a turn:

1. if the turn is a RHT, do nothing and continue

• if the turn is a LHT, swap the edges and continue

Page 46: Permuting Polygons

Theorem: The Convexification Algorithm will convexify any star-shaped polygon.

Page 47: Permuting Polygons

The Idea of the Proof: Show that any two edges of any star-shaped polygon will be swapped at most once.

Page 48: Permuting Polygons

let P be a clockwise-oriented, star-shaped polygon. let a and b be edges of P which are adjacent.

let k be a point in the kernel of P.

let L be a line through k, and parallel to a.

Page 49: Permuting Polygons

Case 1: a and b form a RHT

Page 50: Permuting Polygons

Case 1: a and b form a RHT

Page 51: Permuting Polygons

Case 1: a and b form a RHT

ZERO SWAPS

Page 52: Permuting Polygons

Case 2: a and b form a LHT

Page 53: Permuting Polygons

Case 2: a and b form a LHT

Page 54: Permuting Polygons

Case 2: a and b form a LHT

Page 55: Permuting Polygons

ONE SWAP

Page 56: Permuting Polygons

?????

??

Page 57: Permuting Polygons

?????

??

impossible!

Page 58: Permuting Polygons
Page 59: Permuting Polygons
Page 60: Permuting Polygons
Page 61: Permuting Polygons
Page 62: Permuting Polygons
Page 63: Permuting Polygons

if a encounters any RHTs along the way, it stops.

Page 64: Permuting Polygons

if a encounters any RHTs along the way, it stops.

what if there are ONLY LHTs?

Page 65: Permuting Polygons
Page 66: Permuting Polygons
Page 67: Permuting Polygons

contradiction!

Page 68: Permuting Polygons

contradiction!(the polygon was assumed to be star-shaped)

Page 69: Permuting Polygons

analysis of algorithms

Page 70: Permuting Polygons

What is the worst possible behavior of the Convexification Algorithm?

Page 71: Permuting Polygons
Page 72: Permuting Polygons

What is the worst possible behavior of the Convexification Algorithm?

Page 73: Permuting Polygons

Suppose P has n sides. If the algorithm must swap every side with every other side, the number of swaps is

2

(n - 1) + (n - 2) + ... + 2 + 1       = n(n - 1)/2

      = n /2 - n/2

Page 74: Permuting Polygons

(n - 1) + (n - 2) + ... + 2 + 1

      = n(n - 1)/2

      = n /2 - n/22O(n )

2

Suppose P has n sides. If the algorithm must swap every side with every other side, the number of swaps is

Page 75: Permuting Polygons
Page 76: Permuting Polygons

2

Page 77: Permuting Polygons

(n - 3) + (n - 4) + ... + 2 + 1

     = (n - 3)(n - 2)/2

     = 1/2n  - 5/2n + 32

2O(n )

Page 78: Permuting Polygons