G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

19
GUARDING ART GALLERY By: Venkatsai Bhimanthini Fall’2014

Transcript of G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

Page 1: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

GUARDING ART GALLERY

By:Venkatsai Bhimanthini

Fall’2014

Page 2: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

AGENDA

What is Guarding Art Gallery ??

Problem statement

Graph Construction

Graph triangulation

Problem solution

References

Page 3: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

GUARDING AN ART GALLERY ??

Art galleries have to guard their collections carefully. This has to be done by video cameras which are usually hung from the ceiling. The images from the cameras are sent to TV screens in the office. o It is easier to keep an

eye  on few TV screens rather than on many, the num- ber of cameras should be as small as possible.

Page 4: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

GUARDING AN ART GALLERY ??

An additional advantage of a small number of cameras is that the cost of the security system will be lower

o Here we need to find minimum number of cameras required , such that whole gallery must cover.

Page 5: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

5

REAL WORLD PROBLEM:

Problem: Given the floor plan of an art gallery (= simple polygon P in the plane with n vertices). Place (a small number of) cameras/guards on vertices of P such that every point in P can be seen by some camera.

Page 6: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

6

GUARD USING TRIANGULATIONS Decompose the polygon into shapes that are easier

to handle: triangles A triangulation of a polygon P is a decomposition of P into triangles whose vertices are vertices of P. In other words, a triangulation is a maximal set of non-crossing diagonals.

diagonal

Page 7: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

7

GUARD USING TRIANGULATIONS A polygon can be triangulated in many

different ways. Guard polygon by putting one camera in each

triangle: Since the triangle is convex, its guard will guard the whole triangle.

Page 8: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

GRAPH COLORING:

Graph coloring mean coloring the vertices of the graph such a way that no adjacent vertices will have the same color and should be colored with minimum number of colors.

The minimum number of colors used to color the graph is called chromatic number

Page 9: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

9

3-COLORING A 3-coloring of a graph is an assignment of one

out of three colors to each vertex such that adjacent vertices have different colors.

Page 10: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

10

3-COLORING LEMMALemma: For every triangulated polgon there is a

3-coloring.

Proof: Consider the dual graph of the triangulation:– vertex for each triangle– edge for each edge between triangles

Page 11: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

11

3-COLORING LEMMALemma: For every triangulated polgon there is a

3-coloring.

The dual graph is a tree (acyclic graph; minimally connected): Removing an edge corresponds to removing a diagonal in the polygon which disconnects the polygon and with that the graph.

Page 12: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

12

3-COLORING LEMMALemma: For every triangulated polgon there is a

3-coloring.

Traverse the tree (DFS). Start with a triangle and give different colors to vertices. When proceeding from one triangle to the next, two vertices have known colors, which determines the color of the next vertex.

Page 13: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

13

ART GALLERY THEOREM

Theorem 2: For any simple polygon with n vertices guards are sufficient to guard the whole polygon. There are polygons for which guards are necessary.n

3 n3

Proof: For the upper bound, 3-color any triangulation of the polygon and take the color with the minimum number of guards.Lower bound: n

3 spikes

Need one guard per spike.

Page 14: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

PROBLEM SOLUTION :

Page 15: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

PROBLEM SOLUTION:

Page 16: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

PROBLEM SOLUTION:

Page 18: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

ANY QUERIES

Page 19: G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.

Thank You..!