today
play

Today. Types of graphs. Today. Types of graphs. Complete Graphs. - PowerPoint PPT Presentation

Today. Types of graphs. Today. Types of graphs. Complete Graphs. Trees. Hypercubes. Today. Types of graphs. Complete Graphs. Trees. Hypercubes. Complete Graph. K n complete graph on n vertices. Complete Graph. K n complete graph on n


  1. Equivalence of Definitions. Theorem: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Lemma: If v is a degree 1 in connected graph G , G − v is connected. Proof: For x � = v , y � = v ∈ V , there is path between x and y in G since connected. and does not use v (degree 1) = ⇒ G − v is connected. y v x

  2. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ :

  3. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | .

  4. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles.

  5. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles.

  6. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles. Induction Step:

  7. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles. Induction Step: Claim: There is a degree 1 node.

  8. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles. Induction Step: Claim: There is a degree 1 node. Proof: First, connected = ⇒ every vertex degree ≥ 1.

  9. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles. Induction Step: Claim: There is a degree 1 node. Proof: First, connected = ⇒ every vertex degree ≥ 1. Sum of degrees is 2 | V |− 2

  10. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles. Induction Step: Claim: There is a degree 1 node. Proof: First, connected = ⇒ every vertex degree ≥ 1. Sum of degrees is 2 | V |− 2 Average degree 2 − 2 / | V |

  11. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles. Induction Step: Claim: There is a degree 1 node. Proof: First, connected = ⇒ every vertex degree ≥ 1. Sum of degrees is 2 | V |− 2 Average degree 2 − 2 / | V | Not everyone is bigger than average!

  12. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles. Induction Step: Claim: There is a degree 1 node. Proof: First, connected = ⇒ every vertex degree ≥ 1. Sum of degrees is 2 | V |− 2 Average degree 2 − 2 / | V | Not everyone is bigger than average! By degree 1 removal lemma, G − v is connected.

  13. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles. Induction Step: Claim: There is a degree 1 node. Proof: First, connected = ⇒ every vertex degree ≥ 1. Sum of degrees is 2 | V |− 2 Average degree 2 − 2 / | V | Not everyone is bigger than average! By degree 1 removal lemma, G − v is connected. G − v has | V |− 1 vertices and | V |− 2 edges so by induction

  14. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles. Induction Step: Claim: There is a degree 1 node. Proof: First, connected = ⇒ every vertex degree ≥ 1. Sum of degrees is 2 | V |− 2 Average degree 2 − 2 / | V | Not everyone is bigger than average! By degree 1 removal lemma, G − v is connected. G − v has | V |− 1 vertices and | V |− 2 edges so by induction = ⇒ no cycle in G − v .

  15. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles. Induction Step: Claim: There is a degree 1 node. Proof: First, connected = ⇒ every vertex degree ≥ 1. Sum of degrees is 2 | V |− 2 Average degree 2 − 2 / | V | Not everyone is bigger than average! By degree 1 removal lemma, G − v is connected. G − v has | V |− 1 vertices and | V |− 2 edges so by induction = ⇒ no cycle in G − v . And no cycle in G since degree 1 cannot participate in cycle.

  16. Proof of only if. v Thm: “G connected and has | V |− 1 edges” ≡ “G is connected and has no cycles.” Proof of = ⇒ : By induction on | V | . Base Case: | V | = 1. 0 = | V |− 1 edges and has no cycles. Induction Step: Claim: There is a degree 1 node. Proof: First, connected = ⇒ every vertex degree ≥ 1. Sum of degrees is 2 | V |− 2 Average degree 2 − 2 / | V | Not everyone is bigger than average! By degree 1 removal lemma, G − v is connected. G − v has | V |− 1 vertices and | V |− 2 edges so by induction = ⇒ no cycle in G − v . And no cycle in G since degree 1 cannot participate in cycle.

  17. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof:

  18. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges.

  19. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges. Until get stuck.

  20. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges. Until get stuck. Claim: Degree 1 vertex.

  21. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges. Until get stuck. Claim: Degree 1 vertex. Proof of Claim: Can’t visit more than once since no cycle.

  22. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges. Until get stuck. Claim: Degree 1 vertex. Proof of Claim: Can’t visit more than once since no cycle. Entered.

  23. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges. Until get stuck. Claim: Degree 1 vertex. Proof of Claim: Can’t visit more than once since no cycle. Entered. Didn’t leave.

  24. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges. Until get stuck. Claim: Degree 1 vertex. Proof of Claim: Can’t visit more than once since no cycle. Entered. Didn’t leave. Only one incident edge.

  25. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges. Until get stuck. Claim: Degree 1 vertex. Proof of Claim: Can’t visit more than once since no cycle. Entered. Didn’t leave. Only one incident edge. Removing node doesn’t create cycle.

  26. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges. Until get stuck. Claim: Degree 1 vertex. Proof of Claim: Can’t visit more than once since no cycle. Entered. Didn’t leave. Only one incident edge. Removing node doesn’t create cycle. New graph is connected.

  27. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges. Until get stuck. Claim: Degree 1 vertex. Proof of Claim: Can’t visit more than once since no cycle. Entered. Didn’t leave. Only one incident edge. Removing node doesn’t create cycle. New graph is connected. Removing degree 1 node doesn’t disconnect from Degree 1 lemma.

  28. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges. Until get stuck. Claim: Degree 1 vertex. Proof of Claim: Can’t visit more than once since no cycle. Entered. Didn’t leave. Only one incident edge. Removing node doesn’t create cycle. New graph is connected. Removing degree 1 node doesn’t disconnect from Degree 1 lemma. By induction G − v has | V |− 2 edges.

  29. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges. Until get stuck. Claim: Degree 1 vertex. Proof of Claim: Can’t visit more than once since no cycle. Entered. Didn’t leave. Only one incident edge. Removing node doesn’t create cycle. New graph is connected. Removing degree 1 node doesn’t disconnect from Degree 1 lemma. By induction G − v has | V |− 2 edges. G has one more or | V |− 1 edges.

  30. Proof of if Thm: “G is connected and has no cycles” = ⇒ “G connected and has | V |− 1 edges” Proof: Walk from a vertex using untraversed edges. Until get stuck. Claim: Degree 1 vertex. Proof of Claim: Can’t visit more than once since no cycle. Entered. Didn’t leave. Only one incident edge. Removing node doesn’t create cycle. New graph is connected. Removing degree 1 node doesn’t disconnect from Degree 1 lemma. By induction G − v has | V |− 2 edges. G has one more or | V |− 1 edges.

  31. Tree’s fall apart. Thm: Removing a single disconnects | V | / 2 nodes from each other. Idea of proof.

  32. Tree’s fall apart. Thm: Removing a single disconnects | V | / 2 nodes from each other. Idea of proof. Point edge toward bigger side.

  33. Tree’s fall apart. Thm: Removing a single disconnects | V | / 2 nodes from each other. Idea of proof. Point edge toward bigger side. Remove center node.

  34. Tree’s fall apart. Thm: Removing a single disconnects | V | / 2 nodes from each other. Idea of proof. Point edge toward bigger side. Remove center node.

  35. Tree’s fall apart. Thm: Removing a single disconnects | V | / 2 nodes from each other. Idea of proof. Point edge toward bigger side. Remove center node.

  36. Tree’s fall apart. Thm: Removing a single disconnects | V | / 2 nodes from each other. Idea of proof. Point edge toward bigger side. Remove center node.

  37. Tree’s fall apart. Thm: Removing a single disconnects | V | / 2 nodes from each other. Idea of proof. Point edge toward bigger side. Remove center node.

  38. Hypercubes. Complete graphs, really connected!

  39. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2

  40. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees,

  41. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 )

  42. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart!

  43. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart!

  44. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! Hypercubes.

  45. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! Hypercubes. Really connected.

  46. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! Hypercubes. Really connected. | V | log | V | edges!

  47. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! Hypercubes. Really connected. | V | log | V | edges! Also represents bit-strings nicely.

  48. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! Hypercubes. Really connected. | V | log | V | edges! Also represents bit-strings nicely.

  49. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! Hypercubes. Really connected. | V | log | V | edges! Also represents bit-strings nicely. G = ( V , E )

  50. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! Hypercubes. Really connected. | V | log | V | edges! Also represents bit-strings nicely. G = ( V , E ) | V | = { 0 , 1 } n ,

  51. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! 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. }

  52. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! 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. } 101 111 01 11 001 011 0 1 110 100 00 10 000 010

  53. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! 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. } 101 111 01 11 001 011 0 1 110 100 00 10 000 010 2 n vertices.

  54. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! 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. } 101 111 01 11 001 011 0 1 110 100 00 10 000 010 2 n vertices. number of n -bit strings!

  55. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! 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. } 101 111 01 11 001 011 0 1 110 100 00 10 000 010 2 n vertices. number of n -bit strings! n 2 n − 1 edges.

  56. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! 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. } 101 111 01 11 001 011 0 1 110 100 00 10 000 010 2 n vertices. number of n -bit strings! n 2 n − 1 edges. 2 n vertices each of degree n

  57. Hypercubes. Complete graphs, really connected! But lots of edges. | V | ( | V |− 1 ) / 2 Trees, But few edges. ( | V |− 1 ) just falls apart! 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. } 101 111 01 11 001 011 0 1 110 100 00 10 000 010 2 n vertices. number of n -bit strings! n 2 n − 1 edges. 2 n vertices each of degree n total degree is n 2 n

Recommend


More recommend