discrete mathematics mathematical reasoning cardinality
play

Discrete Mathematics & Mathematical Reasoning Cardinality Colin - PowerPoint PPT Presentation

Discrete Mathematics & Mathematical Reasoning Cardinality Colin Stirling Informatics Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 1 / 13 Finite and infinite sets A = { 1 , 2 , 3 } is a finite set with 3 elements


  1. Discrete Mathematics & Mathematical Reasoning Cardinality Colin Stirling Informatics Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 1 / 13

  2. Finite and infinite sets A = { 1 , 2 , 3 } is a finite set with 3 elements Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 2 / 13

  3. Finite and infinite sets A = { 1 , 2 , 3 } is a finite set with 3 elements B = { a , b , c , d } and C = { 1 , 2 , 3 , 4 } are finite sets with 4 elements Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 2 / 13

  4. Finite and infinite sets A = { 1 , 2 , 3 } is a finite set with 3 elements B = { a , b , c , d } and C = { 1 , 2 , 3 , 4 } are finite sets with 4 elements For finite sets, | X | ≤ | Y | iff there is an injection f : X → Y Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 2 / 13

  5. Finite and infinite sets A = { 1 , 2 , 3 } is a finite set with 3 elements B = { a , b , c , d } and C = { 1 , 2 , 3 , 4 } are finite sets with 4 elements For finite sets, | X | ≤ | Y | iff there is an injection f : X → Y For finite sets, | X | = | Y | iff there is an bijection f : X → Y Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 2 / 13

  6. Finite and infinite sets A = { 1 , 2 , 3 } is a finite set with 3 elements B = { a , b , c , d } and C = { 1 , 2 , 3 , 4 } are finite sets with 4 elements For finite sets, | X | ≤ | Y | iff there is an injection f : X → Y For finite sets, | X | = | Y | iff there is an bijection f : X → Y Z + , N , Z , Q , R are infinite sets Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 2 / 13

  7. Finite and infinite sets A = { 1 , 2 , 3 } is a finite set with 3 elements B = { a , b , c , d } and C = { 1 , 2 , 3 , 4 } are finite sets with 4 elements For finite sets, | X | ≤ | Y | iff there is an injection f : X → Y For finite sets, | X | = | Y | iff there is an bijection f : X → Y Z + , N , Z , Q , R are infinite sets When do two infinite sets have the same size? Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 2 / 13

  8. Finite and infinite sets A = { 1 , 2 , 3 } is a finite set with 3 elements B = { a , b , c , d } and C = { 1 , 2 , 3 , 4 } are finite sets with 4 elements For finite sets, | X | ≤ | Y | iff there is an injection f : X → Y For finite sets, | X | = | Y | iff there is an bijection f : X → Y Z + , N , Z , Q , R are infinite sets When do two infinite sets have the same size? Same answer Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 2 / 13

  9. Cardinality of sets Definition Two sets A and B have the same cardinality, | A | = | B | , iff there exists a bijection from A to B Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 3 / 13

  10. Cardinality of sets Definition Two sets A and B have the same cardinality, | A | = | B | , iff there exists a bijection from A to B | A | ≤ | B | iff there exists an injection from A to B Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 3 / 13

  11. Cardinality of sets Definition Two sets A and B have the same cardinality, | A | = | B | , iff there exists a bijection from A to B | A | ≤ | B | iff there exists an injection from A to B | A | < | B | iff | A | ≤ | B | and | A | � = | B | ( A smaller cardinality than B ) Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 3 / 13

  12. Cardinality of sets Definition Two sets A and B have the same cardinality, | A | = | B | , iff there exists a bijection from A to B | A | ≤ | B | iff there exists an injection from A to B | A | < | B | iff | A | ≤ | B | and | A | � = | B | ( A smaller cardinality than B ) Unlike finite sets, for infinite sets A ⊂ B and | A | = | B | Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 3 / 13

  13. Cardinality of sets Definition Two sets A and B have the same cardinality, | A | = | B | , iff there exists a bijection from A to B | A | ≤ | B | iff there exists an injection from A to B | A | < | B | iff | A | ≤ | B | and | A | � = | B | ( A smaller cardinality than B ) Unlike finite sets, for infinite sets A ⊂ B and | A | = | B | Even = { 2 n | n ∈ N } ⊂ N and | Even | = | N | Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 3 / 13

  14. Cardinality of sets Definition Two sets A and B have the same cardinality, | A | = | B | , iff there exists a bijection from A to B | A | ≤ | B | iff there exists an injection from A to B | A | < | B | iff | A | ≤ | B | and | A | � = | B | ( A smaller cardinality than B ) Unlike finite sets, for infinite sets A ⊂ B and | A | = | B | Even = { 2 n | n ∈ N } ⊂ N and | Even | = | N | f : Even → N with f ( 2 n ) = n is a bijection Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 3 / 13

  15. Countable sets Definition A set S is called countably infinite, iff it has the same cardinality as the positive integers, | Z + | = | S | Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 4 / 13

  16. Countable sets Definition A set S is called countably infinite, iff it has the same cardinality as the positive integers, | Z + | = | S | A set is called countable iff it is either finite or countably infinite Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 4 / 13

  17. Countable sets Definition A set S is called countably infinite, iff it has the same cardinality as the positive integers, | Z + | = | S | A set is called countable iff it is either finite or countably infinite A set that is not countable is called uncountable Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 4 / 13

  18. Countable sets Definition A set S is called countably infinite, iff it has the same cardinality as the positive integers, | Z + | = | S | A set is called countable iff it is either finite or countably infinite A set that is not countable is called uncountable N is countably infinite; what is the bijection f : Z + → N ? Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 4 / 13

  19. Countable sets Definition A set S is called countably infinite, iff it has the same cardinality as the positive integers, | Z + | = | S | A set is called countable iff it is either finite or countably infinite A set that is not countable is called uncountable N is countably infinite; what is the bijection f : Z + → N ? Z is countably infinite; what is the bijection g : Z + → Z ? Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 4 / 13

  20. The positive rational numbers are countable Construct a bijection f : Z + → Q + Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 5 / 13

  21. The positive rational numbers are countable Construct a bijection f : Z + → Q + List fractions p / q with q = n in the n th row Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 5 / 13

  22. The positive rational numbers are countable Construct a bijection f : Z + → Q + List fractions p / q with q = n in the n th row f traverses this list in the order for m = 2 , 3 , 4 , . . . visiting all p / q with p + q = m (and listing only new rationals) Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 5 / 13

  23. The positive rational numbers are countable Construct a bijection f : Z + → Q + List fractions p / q with q = n in the n th row f traverses this list in the order for m = 2 , 3 , 4 , . . . visiting all p / q with p + q = m (and listing only new rationals) 1 2 3 4 5 ... 1 1 1 1 1 Terms not circled 1 2 3 4 5 ... are not listed 2 2 2 2 2 beca u se the y repeat pre v io u sl y 1 2 3 4 5 ... listed terms 3 3 3 3 3 4 5 1 2 3 ... 4 4 4 4 4 1 2 3 4 5 ... 5 5 5 5 5 ... ... ... ... ... Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 5 / 13

  24. Countable sets Theorem If A and B are countable sets, then A ∪ B is countable Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 6 / 13

  25. Countable sets Theorem If A and B are countable sets, then A ∪ B is countable Proof in book Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 6 / 13

  26. Countable sets Theorem If A and B are countable sets, then A ∪ B is countable Proof in book Theorem If I is countable and for each i ∈ I the set A i is countable then � i ∈ I A i is countable Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 6 / 13

  27. Countable sets Theorem If A and B are countable sets, then A ∪ B is countable Proof in book Theorem If I is countable and for each i ∈ I the set A i is countable then � i ∈ I A i is countable Proof in book Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 6 / 13

  28. Finite strings Theorem The set Σ ∗ of all finite strings over a finite alphabet Σ is countably infinite Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 7 / 13

  29. Finite strings Theorem The set Σ ∗ of all finite strings over a finite alphabet Σ is countably infinite Proof. First define an (alphabetical) ordering on the symbols in Σ Show that the strings can be listed in a sequence ◮ First single string ε of length 0 ◮ Then all strings of length 1 in lexicographic order ◮ Then all strings of length 2 in lexicographic order ◮ . . . ◮ . . . Colin Stirling (Informatics) Discrete Mathematics (Section 2.5) Today 7 / 13

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