Great Theoretical Ideas In Computer Science

Slides:



Advertisements
Similar presentations
Great Theoretical Ideas in Computer Science for Some.
Advertisements

9.7 Planar Graphs. Intro problem- 3 houses and 3 utilities K 3,3 problem: Can 3 houses be connected to 3 utilities so that no 2 lines cross? Similarly,
Applications of Euler’s Formula for Graphs Hannah Stevens.
CompSci 102 Discrete Math for Computer Science April 19, 2012 Prof. Rodger Lecture adapted from Bruce Maggs/Lecture developed at Carnegie Mellon, primarily.
Planar / Non-Planar Graphs Gabriel Laden CS146 – Spring 2004 Dr. Sin-Min Lee.
Applied Combinatorics, 4th Ed. Alan Tucker
Last time: terminology reminder w Simple graph Vertex = node Edge Degree Weight Neighbours Complete Dual Bipartite Planar Cycle Tree Path Circuit Components.
Applied Combinatorics, 4th Ed. Alan Tucker
Computational Geometry Seminar Lecture 1
Tucker, Applied Combinatorics, Section 1.4, prepared by Patti Bodkin
Graph Colouring Lecture 20: Nov 25.
Drawing of G. Planar Embedding of G Proposition Proof. 1. Consider a drawing of K 5 or K 3,3 in the plane. Let C be a spanning cycle. 2. If the.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 4, Monday, September 8.
Curve Curve: The image of a continous map from [0,1] to R 2. Polygonal curve: A curve composed of finitely many line segments. Polygonal u,v-curve: A polygonal.
CS 2813 Discrete Structures
Graph Theory Ch6 Planar Graphs. Basic Definitions  curve, polygon curve, drawing  crossing, planar, planar embedding, and plane graph  open set  region,
Graph Theory Chapter 6 Planar Graphs Ch. 6. Planar Graphs.
Subdivision of Edge In a graph G, subdivision of an edge uv is the operation of replacing uv with a path u,w,v through a new vertex w.
Planar Graphs: Euler's Formula and Coloring Graphs & Algorithms Lecture 7 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.:
Polyhedron Platonic Solids Cross Section
Planar Graphs. A graph is called planar if it can be drawn in the plane in such a way that no two edges cross. Example of a planar graph: The clique on.
MAT 2720 Discrete Mathematics Section 8.7 Planar Graphs
Planar Graphs Graph Coloring
Agenda Review: –Planar Graphs Lecture Content:  Concepts of Trees  Spanning Trees  Binary Trees Exercise.
Graph Colouring Lecture 20: Nov 25. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including.
Planar Graphs Lecture 10: Oct 21. This Lecture Today we will talk about planar graphs, and how to color a map using 6 colors. Planar graphs Euler’s formula.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Section 12-1 Exploring Solids. Polyhedron Three dimensional closed figure formed by joining three or more polygons at their side. Plural: polyhedra.
Great Theoretical Ideas in Computer Science for Some.
COMPSCI 102 Introduction to Discrete Mathematics.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Planarity Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering, IIT.
Chapter 7 Planar Graphs 大葉大學 資訊工程系 黃鈴玲  7.2 Planar Embeddings  7.3 Euler’s Formula and Consequences  7.4 Characterization of Planar Graphs.
Algorithms and Networks
Planar Graphs Hubert Chan (Chapter 9.7) [O2 Proof Techniques]
Outline 1 Properties of Planar Graphs 5/4/2018.
Discrete Mathematics Graph: Planar Graph Yuan Luo
37TH ANNUAL AMATYC CONFERENCE A Modern Existence Proof Through Graphs
Name the polygon by the number of sides.
Goal 1: Using Properties of Polyhedra Goal 2: Using Euler’s Theorem
Polyhedra and Prisms.
Great Theoretical Ideas In Computer Science
Applied Combinatorics, 4th Ed. Alan Tucker
The Art Gallery Problem
The Art Gallery Problem
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
12-1 Properties of Polyhedra
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Applied Combinatorics, 4th Ed. Alan Tucker
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Surface Area and Volume
Great Theoretical Ideas In Computer Science
MAT 2720 Discrete Mathematics
Planarity.
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 8th ed., by Kenneth H.
N(S) ={vV|uS,{u,v}E(G)}
14 Chapter Area, Pythagorean Theorem, and Volume
Gaph Theory Planar Graphs
Discrete Mathematics for Computer Science
11.4 Exploring Solids Geometry How many geometric solid can you name?
GRAPH THEORY Properties of Planar Graphs Ch9-1.
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Planarity.
Agenda Review Lecture Content: Shortest Path Algorithm
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
GRAPH THEORY Properties of Planar Graphs Ch9-1.
Presentation transcript:

Great Theoretical Ideas In Computer Science Planar Graphs Lecture 23 CS 15-251

A graph is called planar if it can be drawn in the plane in such a way that no two edges cross. Example of a planar graph: The clique on 4 nodes.

Is K5 planar?

What about K3,3 ?

What about the intriguing object that I brought to class today?

The problem of drawing a graph in the plane arises frequently in VLSI layout problems.

Definition: When a graph is drawn in the plane with no crossed edges it is called a plane graph. A plane graph cuts the plane into regions that we call faces. one face two faces

Question: Can you redraw this graph as a plane graph so as to alter the number of its faces?

This graph has 6 vertices 8 edges and 4 faces vertices – edges + faces = 2

This graph has 7 vertices 12 edges and 7 faces vertices – edges + faces = 2

Euler 1752 If G is a connected plane graph, then vertices – edges + faces = 2 Let v = # of vertices e = # of edges f = # of faces

Proof: By induction on the # of cycles of G. Base case: G has no cycles. G is connected so it must be a tree. Thus, e = v - 1 and f = 1.

Suppose G has at least one cycle C containing edge e. Let v= # of vertices, e = # of edges, f  = # of faces exterior e interior G is connected since e was on a cycle. f = f-1 and G has fewer cycles than G. v= v e= e-1 By induction hypothesis:

Corollary: No matter how we redraw a plane graph it will have the same # of faces. Proof: f = 2 – v + e is determined by v and e, neither of which change when we redraw the graph.

Platonic Solids A Platonic solid has congruent regular polygons as faces and has the same number of edges meeting at each corner. Each one can be flattened into a planar graph: With constant degree: k and the same number of edges bounding each face: l

= Each edge belongs to 2 faces: By Euler’s formula: # of edges coming from n vertex n = Each edge belongs to 2 faces: By Euler’s formula: and k,l  3 for physical reasons

The only solutions: tetrahedron cube octahedron dodecahedron icosahedron

Theorem: Every (simple) n-node planar graph G has at most 3n-6 edges. Proof: n = 3: Clearly true. n  3: consider a graph G with a maximal number of edges. G must be connected or else we could add an edge. Thus Every face has at least 3 edges on its boundary. Thus Every edge lies on the boundary of at most 2 faces.

The Kuratowski Graphs

Corollary: K5 is not planar. A planar graph on n = 5 nodes can have at most 3n-6 = 9 edges. Thus: K5 is not planar.

Fact: K3,3 is not planar either. x y b c z When we redraw K3,3 , the yellow cycle will be laid out: a b c x y z

Insight 1. If we replace edges in a Kuratowski graph by paths of whatever length, they remain non-planar.

Insight 2 If a graph G contains a subgraph obtained by starting with K5 or K3,3 and replacing edges with paths, then G is non-planar.

Kuratowski’s Theorem [1930] A graph is planar if and only if it contains no subgraph obtainable from K5 or K3,3 by replacing edges with paths.

Appel-Haken Four-Color Theorem [1976] The vertices of any planar graph can be 4-colored in such a way that no two adjacent vertices receive the same color.

User Interface How many objects appear in the pink window? (real-time response required) 2 4 3

Idea: View each rectangle as a mesh. (mesh is planar) interior faces

Objects are placed on an n  n grid. window border touches no nodes Data structure will contain: for each grid node # objects containing node for each grid edge # objects containing edge for each (interior) face #objects containing face

Partial Overlap of Window and Object ignore object’s nodes and edges outside window

# of objects intersecting node counts in edge counts in face counts in # of objects intersecting

Inclusion-Exclusion Speed-up! store 3-tuple: sum of node counts in sum of edge counts in sum of face counts in

a b c d Node count in is a – b – c + d. d a b c 1 -1