CS70 - Lecture 6. Graphs: Coloring; Special Graphs. 1. Review of L5 2. Planar Five Color Theorem 3. Special Graphs:

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

Connecting Statements. Today. First there was logic jumping forward.. ..and then proofs and then induction...

Today. Finish Euclid. Bijection/CRT/Isomorphism. Review for Midterm.

1 / 43. Today. Finish Euclid. Bijection/CRT/Isomorphism. Fermat s Little Theorem. Review for Midterm.

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

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

Lecture 5: Graphs. Graphs! Euler Definitions: model. Fact! Euler Again!! Planar graphs. Euler Again!!!!

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

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

14 More Graphs: Euler Tours and Hamilton Cycles

Ma/CS 6b Class 5: Graph Connectivity

CS256 Applied Theory of Computation

Notes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 9 Notes. Class URL:

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

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

TWO CONTRIBUTIONS OF EULER

Discrete Wiskunde II. Lecture 6: Planar Graphs

Assignment 4 Solutions of graph problems

Math 776 Graph Theory Lecture Note 1 Basic concepts

EECS 203 Lecture 20. More Graphs

Elements of Graph Theory

INTRODUCTION TO GRAPH THEORY. 1. Definitions

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

Crossing bridges. Crossing bridges Great Ideas in Theoretical Computer Science. Lecture 12: Graphs I: The Basics. Königsberg (Prussia)

CS 2336 Discrete Mathematics

CS 217 Algorithms and Complexity Homework Assignment 2

Brief History. Graph Theory. What is a graph? Types of graphs Directed graph: a graph that has edges with specific directions

An Introduction to Graph Theory

Basic Combinatorics. Math 40210, Section 01 Fall Homework 4 Solutions

Discrete Mathematics and Probability Theory Spring 2015 Vazirani Note 5

5 Graphs

A Random Walk through CS70

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

Notebook Assignments

On Two Short Proofs About List Coloring Graphs

CS70: Discrete Math and Probability. Fan Ye June 23, 2016

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

CS250: Discrete Math for Computer Science. L20: Complete Induction and Proof of Euler s Characterization of Eulerian-Walks

Lecture 20 : Trees DRAFT

2. CONNECTIVITY Connectivity

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

11.2 Eulerian Trails

Majority and Friendship Paradoxes

Math 170- Graph Theory Notes

Theory of Computing. Lecture 10 MAS 714 Hartmut Klauck

CSE 21 Spring 2016 Homework 5. Instructions

Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand Midterm 1

Senior Math Circles November 25, 2009 Graph Theory II

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

CS4800: Algorithms & Data Jonathan Ullman

Characterization of Graphs with Eulerian Circuits

v V Question: How many edges are there in a graph with 10 vertices each of degree 6?

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.

Mathematics and Statistics, Part A: Graph Theory Problem Sheet 1, lectures 1-4

Scheduling, Map Coloring, and Graph Coloring

Grade 7/8 Math Circles Graph Theory - Solutions October 13/14, 2015

BIL694-Lecture 1: Introduction to Graphs

HW Graph Theory SOLUTIONS (hbovik) - Q

Eulerian Tours and Fleury s Algorithm

Varying Applications (examples)

8.2 Paths and Cycles

1. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G))

Graphs and Algorithms 2016

Graph Theory Questions from Past Papers

6.2. Paths and Cycles

Discrete Mathematics and Probability Theory Summer 2016 Dinh, Psomas, and Ye HW 2

Graph (1A) Young Won Lim 4/19/18

Introduction III. Graphs. Motivations I. Introduction IV

WUCT121. Discrete Mathematics. Graphs

Simple Graph. General Graph

Graph Theory Day Four

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Midterm 1

Ma/CS 6a Class 8: Eulerian Cycles

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

MAT 145: PROBLEM SET 6

How can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities?

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

Graph theory - solutions to problem set 1

CMPSCI611: The SUBSET-SUM Problem Lecture 18

V1.0: Seth Gilbert, V1.1: Steven Halim August 30, Abstract. d(e), and we assume that the distance function is non-negative (i.e., d(x, y) 0).

Graphs and Algorithms 2015

Discrete mathematics , Fall Instructor: prof. János Pach

List of Theorems. Mat 416, Introduction to Graph Theory. Theorem 1 The numbers R(p, q) exist and for p, q 2,

Assignment # 4 Selected Solutions

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS

MATH 682 Notes Combinatorics and Graph Theory II. One interesting class of graphs rather akin to trees and acyclic graphs is the bipartite graph:

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

Circuits and Paths. April 13, 2014

Chapter 8 Topics in Graph Theory

HOMEWORK 4 SOLUTIONS. Solution: The Petersen graph contains a cycle of odd length as a subgraph. Hence,

1. CONVEX POLYGONS. Definition. A shape D in the plane is convex if every line drawn between two points in D is entirely inside D.

Graphs (MTAT , 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402

Chapter 3: Paths and Cycles

Mathematics Masters Examination

Math 485, Graph Theory: Homework #3

Combinatorics: The Fine Art of Counting

Fundamental Properties of Graphs

HOMEWORK #4 SOLUTIONS - MATH (1) (a) Prove that the chromatic polynomial of any tree with s vertices is. k(k 1) s 1

Intermediate Math Circles Wednesday, February 22, 2017 Graph Theory III

Graphs and trees come up everywhere. We can view the internet as a graph (in many ways) Web search views web pages as a graph

Transcription:

CS70 - Lecture 6 Graphs: Coloring; Special Graphs 1. Review of L5 2. Planar Five Color Theorem 3. Special Graphs: Trees: Three characterizations Hypercubes: Strongly connected!

Administration You need to submit you grading option (HW or Test Only) by Thursday night at 10pm! Instruction is at Piazza @241 If you don t submit your response on time, the default will be the homework option.

Review of L5 Definitions: graph, walk, tour, path, cycle, Eulerian tour There exists a Eulerian Tour iff connected and even degrees. Only if: If v has odd degree, you get stuck there. This solves the Konigsberg problem. If: Induction on e (= number of edges). Euler Formula: Planar + Connected v + f = e + 2. Proof: Induction on e. Planar 2e 3f 3v e + 6 K 5 is non-planar Planar + Bipartite 2e 4f 2v e + 4 K 3,3 is non-planar

Review of L5: Preliminaries Was Euler alive before or after Euclid? After! Euler = 1707-1783. Euclid 300BC Was Euler alive before of after Newton? After! Newton = 1642-1726. What was Euler s first name? Leonhard. Was Euler a freak of nature? Definitely! e iπ = 1, γ, graphs, number theory, physics, astronomy, more than 800 papers,...

Review of L5: Q1 Question: What is this argument? G a A B C Proof by induction on e of the existence of a Eulerian tour in a connected even-degrees graph. There is one in G, so that there is one in the original graph.

Review of L5: Q2 What is this argument? A proof by induction on e of Euler s formula: v + f = e + 2.

Review of L5: Q3 What is this argument? K 5 2e = E/F adjacencies 3f (*) v =5,e= 10 3v +3f =3e +6 3v +2e 3e +6 3v e +6 (**) A proof that K 5 is non-planar. Where does (*) come from? Every cycle has at least 3 edges. Where does (**) come from? Euler s formula. Let s remember: Planar e 3v 6

Review of L5: Q3 What is this argument? K 3,3 Bipartite 2e = E/F adjacencies e 2f 2v + 2f = 2e + 4 (**) 2v + e 2e +4 2v e +4 4f (*) e =9,v =6 A proof that K 3,3 is non-planar. Where does (*) come from? Every cycle has at least 4 edges. Where does (**) come from? Euler s formula.

Graph Coloring. Given G = (V,E), a coloring of a G assigns colors to vertices V where for each edge the endpoints have different colors. Notice that the last graph has one three-color coloring. Fewer colors than number of vertices. Fewer colors than the maximum degree of the nodes. Interesting things to do. Algorithm!

Planar graphs and maps. Planar graph coloring map coloring. Four color theorem is about planar graphs! It says that every planar graph (or map) can be colored with four colors! Stated in 1852. Proved in 1976... by reducing the problem to 1936 cases (400 pages of analysis) and checking these cases by computer!

Six color theorem. Theorem: Every planar graph can be colored with six colors. Proof: Induction on v. Recall: e 3v 6 for any planar graph. Total degree (sum of the degrees): 2e Average degree: 2e v 2(3v 6) v 6 12 v < 6. There exists a vertex x with degree < 6 or at most 5. Remove vertex x of degree at most 5. Inductively color remaining graph with the six colors. One of the six colors is available for x since only five neighbors...

Six color theorem. Theorem: Every planar graph can be colored with six colors. A picture of the proof by induction: 6 colors 6 colors 6 colors

Five color theorem Theorem: Every planar graph can be colored with five colors. Proof: Preliminary Observation: You can switch two colors in a legal coloring. Obvious! Consider again the degree 5 vertex. Again recurse: Assume five colors. Assume neighbors are colored all differently. Otherwise done. Switch green to blue in component. Done. Unless blue-green path to blue. Switch red to orange in its component. Done. Unless red-orange path to red.. Planar. = paths intersect at a vertex! What color is it? Must be blue or green to be on that path. Must be red or orange to be on that path. Contradiction. Can recolor one of the neighbors. And recolor center vertex.

Four Color Theorem Theorem: Any planar graph can be colored with four colors. Proof: Not Today!

A Tree, a tree. Graph G = (V,E). Binary Tree! More generally.

Trees. Definitions: (Equivalent, as we prove later) A connected graph without a cycle. A connected graph with V 1 edges. A connected graph where any edge removal disconnects it. Some trees. No cycle and connected? Yes. V 1 edges and connected? Yes. Removing any edge disconnects it. Harder to check, but yes. To tree or not to tree!

Equivalence of Definitions. Theorem These properties of a graph are equivalent: (i.e., each implies any other) (1) A connected graph without a cycle. (2) A connected graph with V 1 edges. (3) A connected graph where any edge removal disconnects it. Proof: (1) (2) Assume true for V n 1. Consider G with V = n. n - 1 vertices v n - 2 edges Why is there a unpopular v with degree only 1? Otherwise: cycle (enter-leave-enter-leave-enter). G has n 1 edges.

Equivalence of Definitions. Theorem These properties of a graph are equivalent: (i.e., each implies any other) (1) A connected graph without a cycle. (2) A connected graph with V 1 edges. (3) A connected graph where any edge removal disconnects it. Proof: (2) (1) Assume true for V n 1. Consider G connected with V = n vertices and n 1 edges. n - 1 vertices v n - 2 edges There must be some v with degree 1. Otherwise, sum of degrees 2n. But sum of degrees = 2 E = 2(n 1). Remove v. Get connected graph G without a cycle. Same for G.

Equivalence of Definitions. Theorem These properties of a graph are equivalent: (i.e., each implies any other) (1) A connected graph without a cycle. (2) A connected graph with V 1 edges. (3) A connected graph where any edge removal disconnects it. Proof: (1) (3) Assume true for V n 1. Consider G with V = n and (1). There is some v with degree 1. (Otherwise, there is a cycle.) n - 1 vertices v n - 2 edges If you remove the edge of v, you disconnect G. If you remove any other edge, you disconnect G, by induction hypothesis.

Equivalence of Definitions. Theorem These properties of a graph are equivalent: (i.e., each implies any other) (1) A connected graph without a cycle. (2) A connected graph with V 1 edges. (3) A connected graph where any edge removal disconnects it. Proof: (3) (1) Assume true for V n 1. Consider G with V = n and (3). There is some v with degree 1. Otherwise, removing an edge would not disconnect G. n - 1 vertices v n - 2 edges G has no cycle, by induction hypothesis. So G has no cycle.

Hypercubes. Complete graphs, really connected! But lots of edges. V ( V 1)/2 Trees, Cool, but very few edges. ( V 1) They just falls apart! Watch for Monterey Pines! Hypercubes. Really connected. V log V edges! Also represents bit-strings nicely. G = (V,E) V = {0,1} n, E = {(x,y) x and y differ in one bit position.} 0 1 01 11 00 10 2 n vertices. number of n-bit strings! n2 n 1 edges. 2 n vertices each of degree n total degree is n2 n and half as many edges! 001 011 000 101 111 100 010 110

Recursive Definition. A 0-dimensional hypercube is a node labelled with the empty string of bits. An n-dimensional hypercube consists of a 0-subcube (1-subcube) which is a n 1-dimensional hypercube with nodes labelled 0x (1x) with the additional edges (0x, 1x).

Cuts Take a connected graph G = (V,E) and some set S V. The cut C is the set of edges that attach S to V S.

Hypercube: Can t cut me! Thm: In a hypercube, C min{ S, V S }. Examples:

Proof of Large Cuts. Thm: In a hypercube, C min{ S, V S }. Proof: Induction on n. Recall, V = {0,1} n,... Base Case: n = 1,V = {0,1}. S S 0 1 0 1 S = {0}, cut edges =1 S = ;, cut edges =0

Induction Step Idea Thm: In a hypercube, C min{ S, V S }. Proof: Induction on n. Recall, V = {0,1} n,... Base Case: n = 1,V = {0,1}. Induction step: Assume (without loss of generality) that S V /2. Here S 0 be the part of S in left cube, S 1 in right-cube. Red edges are cut in each half-cube and blue edges across.

Hypercubes and Boolean Functions. The cuts in the hypercubes are exactly the transitions from 0 sets to 1 set on boolean functions on {0,1} n. Central area of study in computer science! Yes/No Computer Programs Boolean function on {0,1} n Central object of study.

Summary of L6 Graphs: Coloring; Special Graphs 1. Review of L5 Eulerian Tour iff connected and even degrees Euler Formula, K 5 and K 3,3 are non-planar 2. Planar Five Color Theorem 3. Special Graphs: Trees: Three characterizations Hypercubes: Strongly connected! Any cut (S,V S) has at least min{ S, V S } edges 4. The power of induction!

Have a nice weekend!