Lecture 4: Trees and Art Galleries

Similar documents
Professor: Padraic Bartlett. Lecture 9: Trees and Art Galleries. Week 10 UCSB 2015

Polygon Triangulation. (slides partially by Daniel Vlasic )

Computational Geometry

Lecture 3: Art Gallery Problems and Polygon Triangulation

Polygon Triangulation. (slides partially by Daniel Vlasic )

Ma/CS 6b Class 26: Art Galleries and Politicians

Lecture 1: An Introduction to Graph Theory

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

Planar graphs. Math Prof. Kindred - Lecture 16 Page 1

The Art Gallery Problem

Computational Geometry [csci 3250]

Week 2 Polygon Triangulation

5 Graphs

Graph Theory S 1 I 2 I 1 S 2 I 1 I 2

The Art Gallery Problem

The Art Gallery Problem: An Overview and Extension to Chromatic Coloring and Mobile Guards

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

CS 532: 3D Computer Vision 11 th Set of Notes

CS 2336 Discrete Mathematics

Planarity: dual graphs

The SUMO Speaker Series for Undergraduates. The Art Gallery Problem

Lecture 4: 3SAT and Latin Squares. 1 Partial Latin Squares Completable in Polynomial Time

Orthogonal art galleries with holes: a coloring proof of Aggarwal s Theorem

Math 776 Graph Theory Lecture Note 1 Basic concepts

Problem Set 2 Solutions

Discrete Mathematics I So Practice Sheet Solutions 1

CS6100: Topics in Design and Analysis of Algorithms

Section 3.1: Nonseparable Graphs Cut vertex of a connected graph G: A vertex x G such that G x is not connected. Theorem 3.1, p. 57: Every connected

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

Polygon decomposition. Motivation: Art gallery problem

MISCELLANEOUS SHAPES

Lecture 20 : Trees DRAFT

5. THE ISOPERIMETRIC PROBLEM

Instructor: Padraic Bartlett. Lecture 2: Schreier Diagrams

CS 4349 Lecture October 18th, 2017

Adjacent: Two distinct vertices u, v are adjacent if there is an edge with ends u, v. In this case we let uv denote such an edge.

Connected Components of Underlying Graphs of Halving Lines

8 Colouring Planar Graphs

Exercise set 2 Solutions

Jordan Curves. A curve is a subset of IR 2 of the form

8.2 Paths and Cycles

AMS 345/CSE 355 Computational Geometry

CS 532: 3D Computer Vision 14 th Set of Notes

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

Chapter 12 and 11.1 Planar graphs, regular polyhedra, and graph colorings

Lecture # 7 The Combinatorial Approach to Knot Theory Mike McCa rey. In this section we will define graphs in the combinatorial sense.

Graph theory. Po-Shen Loh. June We begin by collecting some basic facts which can be proved via bare-hands techniques.

Discrete mathematics

HW Graph Theory SOLUTIONS (hbovik) - Q

Fixed-Parameter Algorithms, IA166

Math 170- Graph Theory Notes

Three applications of Euler s formula. Chapter 10

Lecture 2 - Graph Theory Fundamentals - Reachability and Exploration 1

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G.

{ 1} Definitions. 10. Extremal graph theory. Problem definition Paths and cycles Complete subgraphs

Jordan Curves. A curve is a subset of IR 2 of the form

Polygon Partitioning. Lecture03

1 Some Solution of Homework

Lecture 19 Thursday, March 29. Examples of isomorphic, and non-isomorphic graphs will be given in class.

Extra Practice Problems 2

Problem Set 2 Solutions

Bounds on graphs with high girth and high chromatic number

Math 777 Graph Theory, Spring, 2006 Lecture Note 1 Planar graphs Week 1 Weak 2

Modules. 6 Hamilton Graphs (4-8 lectures) Introduction Necessary conditions and sufficient conditions Exercises...

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

Today. Types of graphs. Complete Graphs. Trees. Hypercubes.

Lecture 5: More Examples/Applications of Quasirandom Graphs

ECS 20 Lecture 17b = Discussion D8 Fall Nov 2013 Phil Rogaway

Ma/CS 6b Class 11: Kuratowski and Coloring

How many colors are needed to color a map?

MATH 350 GRAPH THEORY & COMBINATORICS. Contents

11.9 Connectivity Connected Components. mcs 2015/5/18 1:43 page 419 #427

Discrete Wiskunde II. Lecture 6: Planar Graphs

Math 778S Spectral Graph Theory Handout #2: Basic graph theory

Assignment # 4 Selected Solutions

Polygon Triangulation

Instructor: Paul Zeitz, University of San Francisco

Motivation: Art gallery problem. Polygon decomposition. Art gallery problem: upper bound. Art gallery problem: lower bound

Computational Geometry

Graph Definitions. In a directed graph the edges have directions (ordered pairs). A weighted graph includes a weight function.

Lecture 4: Petersen Graph 2/2; also, Friendship is Magic!

Characterizations of Trees

Lecture 4: Walks, Trails, Paths and Connectivity

Kuratowski Notes , Fall 2005, Prof. Peter Shor Revised Fall 2007

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 8

Discrete Mathematics for CS Spring 2008 David Wagner Note 13. An Introduction to Graphs

CS 177 Homework 1. Julian Panetta. October 22, We want to show for any polygonal disk consisting of vertex set V, edge set E, and face set F:

Definition 1.1. A matching M in a graph G is called maximal if there is no matching M in G so that M M.

SPERNER S LEMMA MOOR XU

Bayesian Networks, Winter Yoav Haimovitch & Ariel Raviv

Number Theory and Graph Theory

Fundamental Properties of Graphs

Combinatorics Summary Sheet for Exam 1 Material 2019

A THREE AND FIVE COLOR THEOREM

Introduction to Graph Theory

Graph and Digraph Glossary

Solutions to In-Class Problems Week 4, Fri

Computer Science 280 Fall 2002 Homework 10 Solutions

List Coloring Graphs

Chapter 3: Paths and Cycles

Transcription:

Math 7H: Honors Seminar Professor: Padraic Bartlett Lecture 4: Trees and Art Galleries Week 2 UCSB 2014 1 Prelude: Graph Theory In this talk, we re going to refer frequently to things called graphs and trees. haven t seen these before, we define these concepts here: If you Definition. A graph G with n vertices and m edges consists of the following two objects: 1. a set V = {v 1,... v n }, the members of which we call G s vertices, and 2. a set E = {e 1,... e m }, the members of which we call G s edges, where each edge e i is an unordered pair of distinct elements in V, and no unordered pair is repeated. For a given edge e = {v, w}, we will often refer to the two vertices v, w contained by e as its endpoints. Example. The following pair (V, E) defines a graph G on five vertices and five edges: V = {1, 2, 3, 4, 5}, E = {{1, 2}, {2, 3}, {3, 4}, {4, 5}, {5, 1}}. Something mathematicians like to do to quickly represent graphs is draw them, which we can do by taking each vertex and assigining it a point in the plane, and taking each edge and drawing a curve between the two vertices represented by that edge. For example, one way to draw our graph G is the following: However, this is not the only way to draw our graph! Another equally valid drawing is presented here: 1

In general, all we care about for our graphs is their vertices and their edges; we don t usually care about how they are drawn, so long as they consist of the same vertices connected via the same edges. Also, we usually will not care about how we label the vertices of a graph: i.e. we will usually skip the labelings on our graphs, and just draw them as vertices connected by edges. Some graphs get special names: Definition. The cycle graph on n vertices, C n, is the graph on the vertex set {v 1, v 2,... v n } with edge set E(C n ) = {{v 1, v 2 }, {v 2, v 3 },... {v n 1, v n }, {v n, v 1 }}. The cycle graphs C n can be drawn as n-gons, as depicted below:... Definition. The path graph on n vertices, P n, is the graph on the vertex set {v 1, v 2,... v n } with edge set E(C n ) = {{v 1, v 2 }, {v 2, v 3 },... {v n 1, v n }}. The path graphs P n can be drawn as paths of length n, as depicted below:... Definition. Given a graph G and another graph H, we say that H is a subgraph of G if and only if V (H) V (G) and E(H) E(G). Definition. Given a graph G, we call G connected if for any two vertices x, y V (G), there is a path that starts at x and ends at y in our graph G. Definition. If a graph G has no subgraphs that are cycle graphs, we call G acyclic. A tree T is a graph that s both connected and acyclic. In a tree, a leaf is a vertex whose degree is 1. Example. The following graph is a tree: 2

2 The Art Gallery Problem Consider the following question: Question 1. Suppose that you have an art gallery that is shaped like some sort of n-polygon, and you want to place cameras with 360 -viewing angles along the vertices of your polygon in such a way that the entire gallery is under surveillance. How many cameras do you need? A gallery guarded by 2 guards, Red and Green. One trivial upper bound you can come up with is n guards: just put one guard on each vertex of our polygon with n sides! Can we do better? As it turns out, we can! Claim. (Chvátal) You need at most n/3 -many cameras to guard a n-polygon. It bears noting that this bound of n/3 is sharp. Consider the following art gallery: 3

A crown-shaped art gallery. In this sort-of crown-shaped art gallery, each prong of the crown (i.e. triangle) needs to have a guard on one of its three vertices to guard the entire triangle, as no other vertices can see the entirety of that prong. Therefore, you need one guard for each prong; i.e. n/3 guards, for a crown with n/3 prongs (i.e. n vertices.) To prove Chvátal s theorem, we need a few lemmas first: Lemma 2. If G is a n-polygon with n 4, then there is some line segment formed by two of the vertices in G that lies entirely in G. Proof. Let v be the leftmost vertex of G. (If there is a tie, take v to be the top leftmost vertex of G.) Let u and w be v s neighbors, and examine the line segment uw. If this lies entirely in G, great! Otherwise, it must cross some edge of G; consequently, there must be a vertex of G that lies inside of the triangle spanned by the three points u, v, w. Let x be the vertex furthest from the line segment uw that lies in this triangle. Then, look at the line segment vx; because x is the furthest point in uvw from uw, there can t be any edges of G that are crossed by this line segment (as one of their endpoints would necessarily be closer to v.) So vx lies entirely in G. Corollary 3. Any n-polygon can be divided into n 2-triangles. Proof. Using the process above, repeatedly divide our n-polygon into a pair of smaller polygons, one with k vertices and the other with n+2 k vertices, until all of these polygons are triangles. By induction, it is not hard to see that the number of these triangles is n 2. So: we can turn any polygon into a number of triangles stuck to each other! We use this to turn any art gallery on n vertices into a graph on n 2 vertices, as follows: Start by taking our polygon G and turning it into a collection {T i } n 2 i=1 For each triangle T i, associate a vertex t i. of triangles. Connect two vertices t i, t j with an edge if their corresponding triangles T i, T j share a face. Call this graph T the dual graph of T. 4

Turning the crown into a tree. This is a graph! Furthermore, it s a fairly special kind of graph: it s a tree! We prove this here: Lemma 4. Let G be a polygon, T be a triangulation of G performed as above, and let T be the dual graph to this triangulation (i.e. put a vertex in the center of every face of T, and connect two faces iff they share an edge.) This graph is a tree. Proof. Let T be our triangulated polygon. In our construction above, each of the edges of T corresponds to a diagonal of the polygon G, that divides our polygon into two distinct smaller polygons. Because cutting our polygon G along one of those diagonals will always divide the polygon into two disconnected pieces, doing so will always result in two triangles that are no longer connected by a chain of triangles with adjacent faces! In other words: in the dual graph T that we made above, removing any edge disconnects our graph! So our graph has the following properties: There is a path between any two vertices because our polygon is connected. There is at most one path between any two vertices, because if there were two paths and we cut an edge on one path, our graph would not be disconnected (we could simply use the other path to connect vertices!) In other words, our graph is acyclic, because a cycle exists in our graph if and only if there are two different paths connecting two vertices! (Prove this to yourself if you are skeptical.) Therefore T is connected and acyclic: i.e. it s a tree! This tree is remarkably useful; in particular, we can use its structure to create a system for assigning guards! We do this here: Lemma 5. Take a polygon G that has been triangulated as described earlier. Then we can color each of the vertices of G either red, blue or green, so that each triangle contains one vertex of each color. 5

Proof. For our triangulated polygon G, take the dual graph/tree T that we constructed above, and pick some vertex t 0 in it. For all relevant integers k, let T k be the collection of vertices that are distance k away from v, for every k. (The distance of two vertices from each other is the length of the shortest path between them.) Color the vertices of T as follows: Take the triangle in G associated to t 0 and color its three vertices red, green and blue. Suppose we ve colored all of the vertices attached to triangles with corresponding vertices in T i, for some i. Now, look at the triangles corresponding to vertices in T i+1. Each triangle associated to a vertex t i+1 in this set shares exactly one edge with some triangle associated to a vertex in T i ; this is because if our vertex is distance i + 1 from t 0, then (by taking the path of distance i + 1 and walking one step closer to t 0 ) there is an adjacent vertex (and thus face-sharing triangle) at distance i, i.e. in T i. Furthermore, because T is a tree, there is exactly one edge from any t i+1 to vertices in the set i+1 j=0 T j. This is because the existence of any other edge would create a cycle, because it would give us two distinct paths to t 0! Therefore, the triangle associated to t i+1 shares a face with only one other triangle in all of the sets that we ve already colored! Therefore, only two of its vertices have been assigned colors. Thus, there is always some spare third color to use to color its third vertex! Use this to color its third vertex, and repeat for all vertices in T i+1. Repeat until every vertex in T is colored. Note that each triangle has one vertex of each color. Corollary 6. You need at most n/3 -many cameras to guard a n-polygon. Proof. By the above, create a triangulation and 3-coloring of our polygon G with the colors {R, G, B}. Now, station guards at whichever color is used the least number of times in this triangulation! Each guard can see everything in their assigned triangle by construction. Therefore, the entire art gallery is guarded. To guard this crown, simply pick one of (red, green, blue,) and station guards at vertices of that color. 6