listing bit strings
play

Listing Bit Strings List all bit strings of length 3. Listing Bit - PowerPoint PPT Presentation

Listing Bit Strings List all bit strings of length 3. Listing Bit Strings List all bit strings of length 3. 000, 001, 010, 011, 100, 101, 110, 111. Listing Bit Strings List all bit strings of length 3. 000, 001, 010, 011, 100, 101, 110, 111.


  1. K 3 , 3 Is Not Planar Consider K 3 , 3 . Edges? 9. Vertices? 6. So 3 v − 6 = 12. The previous proof fails. Make it stronger! ◮ The total number of sides is 2 e . ◮ Each face has at least three sides. Actually, at least four! ◮ In a bipartite graph, cycles are of even length. ◮ So, 2 e ≥ 4 f and v + f = e + 2, so rearranging gives e ≤ 2 v − 4 for bipartite planar graphs. Conclusion: K 3 , 3 is not planar.

  2. Why K 5 and K 3 , 3 ? Why did we show that K 5 and K 3 , 3 are non-planar?

  3. Why K 5 and K 3 , 3 ? Why did we show that K 5 and K 3 , 3 are non-planar? Kuratowski’s Theorem : A graph is non-planar if and only if it “contains” K 5 or K 3 , 3 .

  4. Why K 5 and K 3 , 3 ? Why did we show that K 5 and K 3 , 3 are non-planar? Kuratowski’s Theorem : A graph is non-planar if and only if it “contains” K 5 or K 3 , 3 . ◮ The word “contains” is tricky. . .

  5. Why K 5 and K 3 , 3 ? Why did we show that K 5 and K 3 , 3 are non-planar? Kuratowski’s Theorem : A graph is non-planar if and only if it “contains” K 5 or K 3 , 3 . ◮ The word “contains” is tricky. . . do not worry about the details.

  6. Why K 5 and K 3 , 3 ? Why did we show that K 5 and K 3 , 3 are non-planar? Kuratowski’s Theorem : A graph is non-planar if and only if it “contains” K 5 or K 3 , 3 . ◮ The word “contains” is tricky. . . do not worry about the details. Not important for the course.

  7. Why K 5 and K 3 , 3 ? Why did we show that K 5 and K 3 , 3 are non-planar? Kuratowski’s Theorem : A graph is non-planar if and only if it “contains” K 5 or K 3 , 3 . ◮ The word “contains” is tricky. . . do not worry about the details. Not important for the course. ◮ Content of theorem: essentially K 5 and K 3 , 3 are the only obstructions to non-planarity.

  8. Graph Coloring A (vertex) coloring of a graph G is an assignment of colors to vertices so that no two colors are joined by an edge.

  9. Graph Coloring A (vertex) coloring of a graph G is an assignment of colors to vertices so that no two colors are joined by an edge. Why do we care about graph coloring?

  10. Graph Coloring A (vertex) coloring of a graph G is an assignment of colors to vertices so that no two colors are joined by an edge. Why do we care about graph coloring? ◮ Edges are used to encode constraints .

  11. Graph Coloring A (vertex) coloring of a graph G is an assignment of colors to vertices so that no two colors are joined by an edge. Why do we care about graph coloring? ◮ Edges are used to encode constraints . ◮ Graph colorings can be used for scheduling, etc.

  12. Coloring with Maximum Degree + 1 Theorem . Let d max be the maximum degree of any vertex in G . Then G can be colored with d max + 1 colors.

  13. Coloring with Maximum Degree + 1 Theorem . Let d max be the maximum degree of any vertex in G . Then G can be colored with d max + 1 colors. Proof .

  14. Coloring with Maximum Degree + 1 Theorem . Let d max be the maximum degree of any vertex in G . Then G can be colored with d max + 1 colors. Proof . ◮ Use induction on | V | .

  15. Coloring with Maximum Degree + 1 Theorem . Let d max be the maximum degree of any vertex in G . Then G can be colored with d max + 1 colors. Proof . ◮ Use induction on | V | . ◮ For | V | ≥ 2, remove a vertex v .

  16. Coloring with Maximum Degree + 1 Theorem . Let d max be the maximum degree of any vertex in G . Then G can be colored with d max + 1 colors. Proof . ◮ Use induction on | V | . ◮ For | V | ≥ 2, remove a vertex v . ◮ Inductively color the resulting graph with d max + 1 colors.

  17. Coloring with Maximum Degree + 1 Theorem . Let d max be the maximum degree of any vertex in G . Then G can be colored with d max + 1 colors. Proof . ◮ Use induction on | V | . ◮ For | V | ≥ 2, remove a vertex v . ◮ Inductively color the resulting graph with d max + 1 colors. ◮ Add v back in.

  18. Coloring with Maximum Degree + 1 Theorem . Let d max be the maximum degree of any vertex in G . Then G can be colored with d max + 1 colors. Proof . ◮ Use induction on | V | . ◮ For | V | ≥ 2, remove a vertex v . ◮ Inductively color the resulting graph with d max + 1 colors. ◮ Add v back in. ◮ Since v has at most d max neighbors which use at most d max colors, use an unused color to color v .

  19. Coloring with Maximum Degree + 1 Theorem . Let d max be the maximum degree of any vertex in G . Then G can be colored with d max + 1 colors. Proof . ◮ Use induction on | V | . ◮ For | V | ≥ 2, remove a vertex v . ◮ Inductively color the resulting graph with d max + 1 colors. ◮ Add v back in. ◮ Since v has at most d max neighbors which use at most d max colors, use an unused color to color v . For some types of graphs, this bound is very bad.

  20. Bipartite Graphs Are 2-Colorable Theorem : G is bipartite ⇐ ⇒ G can be 2-colored.

  21. Bipartite Graphs Are 2-Colorable Theorem : G is bipartite ⇐ ⇒ G can be 2-colored. Proof .

  22. Bipartite Graphs Are 2-Colorable Theorem : G is bipartite ⇐ ⇒ G can be 2-colored. Proof . ◮ If G is bipartite with V = L ∪ R , color vertices in L blue and vertices in R red.

  23. Bipartite Graphs Are 2-Colorable Theorem : G is bipartite ⇐ ⇒ G can be 2-colored. Proof . ◮ If G is bipartite with V = L ∪ R , color vertices in L blue and vertices in R red. ◮ Conversely, suppose G is 2-colorable.

  24. Bipartite Graphs Are 2-Colorable Theorem : G is bipartite ⇐ ⇒ G can be 2-colored. Proof . ◮ If G is bipartite with V = L ∪ R , color vertices in L blue and vertices in R red. ◮ Conversely, suppose G is 2-colorable. ◮ In the 2-coloring of G , the red vertices have no edges between them, and similarly for blue vertices.

  25. Bipartite Graphs Are 2-Colorable Theorem : G is bipartite ⇐ ⇒ G can be 2-colored. Proof . ◮ If G is bipartite with V = L ∪ R , color vertices in L blue and vertices in R red. ◮ Conversely, suppose G is 2-colorable. ◮ In the 2-coloring of G , the red vertices have no edges between them, and similarly for blue vertices. ◮ So the graph is bipartite.

  26. Bipartite Graphs Are 2-Colorable Theorem : G is bipartite ⇐ ⇒ G can be 2-colored. Proof . ◮ If G is bipartite with V = L ∪ R , color vertices in L blue and vertices in R red. ◮ Conversely, suppose G is 2-colorable. ◮ In the 2-coloring of G , the red vertices have no edges between them, and similarly for blue vertices. ◮ So the graph is bipartite. Consider K n , n .

  27. Bipartite Graphs Are 2-Colorable Theorem : G is bipartite ⇐ ⇒ G can be 2-colored. Proof . ◮ If G is bipartite with V = L ∪ R , color vertices in L blue and vertices in R red. ◮ Conversely, suppose G is 2-colorable. ◮ In the 2-coloring of G , the red vertices have no edges between them, and similarly for blue vertices. ◮ So the graph is bipartite. Consider K n , n . Then d max + 1 = n + 1, but it can be 2-colored.

  28. Graph Coloring & Planarity Consider a colored map and its planar dual: (Ignore the infinite face.)

  29. Graph Coloring & Planarity Consider a colored map and its planar dual: (Ignore the infinite face.) Coloring a map so no adjacent regions have the same color is equivalent to coloring a planar graph.

  30. Four Color Theorem Four Color Theorem : Every planar graph can be 4-colored.

  31. Four Color Theorem Four Color Theorem : Every planar graph can be 4-colored. ◮ The proof required a human to narrow down the cases, and a computer to exhaustively check the remaining cases.

  32. Four Color Theorem Four Color Theorem : Every planar graph can be 4-colored. ◮ The proof required a human to narrow down the cases, and a computer to exhaustively check the remaining cases. ◮ The proof has not yet been simplified to the point where a human can easily read over it.

  33. Four Color Theorem Four Color Theorem : Every planar graph can be 4-colored. ◮ The proof required a human to narrow down the cases, and a computer to exhaustively check the remaining cases. ◮ The proof has not yet been simplified to the point where a human can easily read over it. ◮ Note: K 5 requires 5 colors.

  34. Hypercubes The hypercube of dimension d , Q d , where d is a positive integer, has: ◮ vertices which are labeled by length- d bit strings, and ◮ an edge between two vertices if and only if they differ in exactly one bit.

  35. Hypercubes The hypercube of dimension d , Q d , where d is a positive integer, has: ◮ vertices which are labeled by length- d bit strings, and ◮ an edge between two vertices if and only if they differ in exactly one bit. Here is a picture of Q 3 . 110 110 111 111 010 010 011 011 100 100 101 101 000 000 001 001

  36. Hypercube Facts 110 110 111 111 010 010 011 011 100 100 101 101 000 000 001 001 The 0 -face is the part of the hypercube whose vertices begin with 0.

  37. Hypercube Facts 110 110 111 111 010 010 011 011 100 100 101 101 000 000 001 001 The 0 -face is the part of the hypercube whose vertices begin with 0. Similarly for the 1 -face .

  38. Hypercube Facts 110 110 111 111 010 010 011 011 100 100 101 101 000 000 001 001 The 0 -face is the part of the hypercube whose vertices begin with 0. Similarly for the 1 -face . The 0-face is a lower-dimensional hypercube.

  39. Hypercube Facts 110 110 111 111 010 010 011 011 100 100 101 101 000 000 001 001 The 0 -face is the part of the hypercube whose vertices begin with 0. Similarly for the 1 -face . The 0-face is a lower-dimensional hypercube. Induction!

  40. Hypercube Facts 110 110 111 111 010 010 011 011 100 100 101 101 000 000 001 001 The 0 -face is the part of the hypercube whose vertices begin with 0. Similarly for the 1 -face . The 0-face is a lower-dimensional hypercube. Induction! Number of vertices?

  41. Hypercube Facts 110 110 111 111 010 010 011 011 100 100 101 101 000 000 001 001 The 0 -face is the part of the hypercube whose vertices begin with 0. Similarly for the 1 -face . The 0-face is a lower-dimensional hypercube. Induction! Number of vertices? 2 d .

  42. Hypercube Facts 110 110 111 111 010 010 011 011 100 100 101 101 000 000 001 001 The 0 -face is the part of the hypercube whose vertices begin with 0. Similarly for the 1 -face . The 0-face is a lower-dimensional hypercube. Induction! Number of vertices? 2 d . Number of edges?

  43. Hypercube Facts 110 110 111 111 010 010 011 011 100 100 101 101 000 000 001 001 The 0 -face is the part of the hypercube whose vertices begin with 0. Similarly for the 1 -face . The 0-face is a lower-dimensional hypercube. Induction! Number of vertices? 2 d . Number of edges? ∑ v ∈ V deg v = d 2 d , so | E | = d 2 d − 1 .

  44. Hypercube Facts 110 110 111 111 010 010 011 011 100 100 101 101 000 000 001 001 The 0 -face is the part of the hypercube whose vertices begin with 0. Similarly for the 1 -face . The 0-face is a lower-dimensional hypercube. Induction! Number of vertices? 2 d . Number of edges? ∑ v ∈ V deg v = d 2 d , so | E | = d 2 d − 1 . So for a hypercube with n vertices, | E | = Θ( n log n ) .

  45. Hypercubes Are Bipartite Theorem : Hypercubes are 2-colorable.

  46. Hypercubes Are Bipartite Theorem : Hypercubes are 2-colorable. Proof .

  47. Hypercubes Are Bipartite Theorem : Hypercubes are 2-colorable. Proof . ◮ Color all vertices with an even number of 0s blue and an odd number of 0s orange.

  48. Hypercubes Are Bipartite Theorem : Hypercubes are 2-colorable. Proof . ◮ Color all vertices with an even number of 0s blue and an odd number of 0s orange. ◮ Since each edge flips a bit, edges only connect vertices of different parity.

  49. Hypercubes Are Bipartite Theorem : Hypercubes are 2-colorable. Proof . ◮ Color all vertices with an even number of 0s blue and an odd number of 0s orange. ◮ Since each edge flips a bit, edges only connect vertices of different parity. Inductive Proof .

  50. Hypercubes Are Bipartite Theorem : Hypercubes are 2-colorable. Proof . ◮ Color all vertices with an even number of 0s blue and an odd number of 0s orange. ◮ Since each edge flips a bit, edges only connect vertices of different parity. Inductive Proof . ◮ Check the base case.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend