15 251 great theoretical ideas in computer science
play

15-251 Great Theoretical Ideas in Computer Science Lecture 5: - PowerPoint PPT Presentation

15-251 Great Theoretical Ideas in Computer Science Lecture 5: Cantors Legacy September 15th, 2015 Poll Select the ones that apply to you: - I know what an uncountable set means. - I know Cantors diagonalization argument. - I used to


  1. 15-251 Great Theoretical Ideas in Computer Science Lecture 5: Cantor’s Legacy September 15th, 2015

  2. Poll Select the ones that apply to you: - I know what an uncountable set means. - I know Cantor’s diagonalization argument. - I used to know what uncountable meant, I forgot. - I used to know the diagonalization argument, I forgot. - I’ve never learned about uncountable sets. - I’ve never learned about the diagonalization argument.

  3. This Week All languages Decidable languages ? Factoring 0 n 1 n Regular languages Primality EvenLength . . . . . .

  4. Our heroes for this week father of set theory father of computer science 1912-1954 1845-1918 Uncountability Uncomputability

  5. Infinity in mathematics Pre-Cantor: “Infinity is nothing more than a figure of speech which helps us talk about limits. The notion of a completed infinity doesn't belong in mathematics” - Carl Friedrich Gauss Post-Cantor: Infinite sets are mathematical objects just like finite sets.

  6. Some of Cantor’s contributions > The study of infinite sets > Explicit definition and use of 1-to-1 correspondence - This is the right way to compare the cardinality of sets > There are different levels of infinity. - There are infinitely many infinities. > even though they are both infinite. | N | < | R | > even though . | N | = | Z | N ( Z > The diagonal argument.

  7. Reaction to Cantor’s ideas at the time Most of the ideas of Cantorian set theory should be banished from mathematics once and for all! - Henri Poincaré

  8. Reaction to Cantor’s ideas at the time I don’t know what predominates in Cantor’s theory - philosophy or theology. - Leopold Kronecker

  9. Reaction to Cantor’s ideas at the time Scientific charlatan. - Leopold Kronecker

  10. Reaction to Cantor’s ideas at the time Corrupter of youth. - Leopold Kronecker

  11. Reaction to Cantor’s ideas at the time Wrong. - Ludwig Wittgenstein

  12. Reaction to Cantor’s ideas at the time Utter non-sense. - Ludwig Wittgenstein

  13. Reaction to Cantor’s ideas at the time Laughable. - Ludwig Wittgenstein

  14. Reaction to Cantor’s ideas at the time No one should expel us from the Paradise that Cantor has created. - David Hilbert

  15. Reaction to Cantor’s ideas at the time If one person can see it as a paradise, why should not another see it as a joke? - Ludwig Wittgenstein

  16. First we start with finite sets

  17. How do we count a finite set? A = { apple, orange, banana, melon } What does mean? | A | = 4 There is a 1-to-1 correspondence (bijection) between and { 1 , 2 , 3 , 4 } A apple 1 orange 2 banana 3 melon 4

  18. How do we compare the sizes of finite sets? A = { apple, orange, banana, melon } B = { 200 , 300 , 400 , 500 } What does mean? | A | = | B | apple 1 500 2 200 orange banana 3 300 melon 4 400

  19. How do we compare the sizes of finite sets? A = { apple, orange, banana, melon } B = { 200 , 300 , 400 , 500 } What does mean? | A | = | B | apple 500 200 orange banana 300 melon 400 iff there is a 1-to-1 correspondence (bijection) | A | = | B | between and . A B

  20. How do we compare the sizes of finite sets? A = { apple, orange, banana } B = { 200 , 300 , 400 , 500 } What does mean? | A | ≤ | B | apple 1 500 2 200 orange banana 3 300 4 400

  21. How do we compare the sizes of finite sets? A = { apple, orange, banana } B = { 200 , 300 , 400 , 500 } What does mean? | A | ≤ | B | apple 500 200 orange banana 300 400 iff there is an injection | A | ≤ | B | from to . A B

  22. How do we compare the sizes of finite sets? A = { apple, orange, banana } B = { 200 , 300 , 400 , 500 } What does mean? | A | ≤ | B | apple 500 200 orange banana 300 400 iff there is a surjection | A | ≤ | B | from to . A B

  23. 3 important types of functions A B injective, 1-to-1 f : A → B is injective if A , → B a 6 = a 0 = ) f ( a ) 6 = f ( a 0 ) surjective, onto A B f : A → B is surjective if A ⇣ B ∀ b ∈ B, ∃ a ∈ A s.t. f ( a ) = b bijective, 1-to-1 correspondence A B f : A → B is bijective if A ↔ B f is injective and surjective

  24. Comparing the cardinality of finite sets A B | A | ≤ | B | A , → B A B | A | ≥ | B | A ⇣ B A B | A | = | B | A ↔ B

  25. Sanity checks | A | ≤ | B | i ff | B | ≥ | A | A , → B i ff B ⇣ A | A | = | B | i ff | A | ≤ | B | and | A | ≥ | B | A ↔ B i ff A , → B and A ⇣ B A ↔ B i ff A , → B and B , → A If | A | ≤ | B | and | B | ≤ | C | then | A | ≤ | C | If A , → B and B , → C then A , → C

  26. One more definition | A | < | B | not | A | ≥ | B | There is no surjection from A to B. There is no injection from B to A. There is an injection from A to B, but there is no bijection between A and B.

  27. So what is the big deal? This way of comparing the size of sets generalizes to infinite sets! These are the right definitions for infinite sets as well!

  28. Comparing the cardinality of infinite sets | A | ≤ | B | A , → B | A | ≥ | B | A ⇣ B | A | = | B | A ↔ B

  29. Sanity checks for infinite sets | A | ≤ | B | i ff | B | ≥ | A | A , → B i ff B ⇣ A | A | = | B | i ff | A | ≤ | B | and | B | ≤ | A | A ↔ B i ff A , → B and A ⇣ B Cantor Schröder A ↔ B i ff A , → B and B , → A Bernstein If | A | ≤ | B | and | B | ≤ | C | then | A | ≤ | C | If A , → B and B , → C then A , → C

  30. So what is the big deal? Let me show you some interesting consequences.

  31. Examples of equal size sets | N | = | Z | N = { 0 , 1 , 2 , 3 , 4 , . . . } Z = { . . . , − 4 , − 3 , − 2 , − 1 , 0 , 1 , 2 , 3 , 4 , . . . } 4 5 0 1 2 3 6 7 8 . . . f ( n ) = ( − 1) n +1 l n m 2 0 , 1 , − 1 , 2 , − 2 , 3 , − 3 , 4 , − 4 , . . .

  32. Examples of equal size sets | N | = | Z | Does this make any sense? N ( Z Shouldn’t ⇒ | A | < | B | ? A ( B = | N | < | Z | ? Does renaming the elements of a set change its size? No. Let’s rename the elements of : Z { . . . , banana, apple, melon, orange, mango, . . . } Let’s call this set . How can you justify saying ? | N | < | F | F Bijection is nothing more than renaming.

  33. Examples of equal size sets | N | = | S | N = { 0 , 1 , 2 , 3 , 4 , . . . } S = { 0 , 1 , 4 , 9 , 16 , . . . } f ( n ) = n 2

  34. Examples of equal size sets | N | = | P | N = { 0 , 1 , 2 , 3 , 4 , . . . } P = { 2 , 3 , 5 , 7 , 11 , . . . } f ( n ) = n ’th prime number.

  35. Definition: countable and uncountable sets Definition: A set is called countable if . A | A | ≤ | N | A set is called countably infinite A if it is infinite and countable. A set is called uncountable if it is not countable. A (so ) | A | > | N |

  36. How to think about countable sets A set is called countable if . A | A | ≤ | N | So why is it called “countable”? | A | ≤ | N | means there is an injection . f : A → N A N 1 1 you could “count” the 2 2 elements of A 3 (but could go on forever) 4 . 3 5 . .

  37. How to think about countable sets A set is called countable if . A | A | ≤ | N | Perhaps a better name would have been listable : can list the elements of so that A every element appears in the list eventually. a 1 a 2 a 3 a 4 a 5 · · · (this is equivalent to being countable)

  38. How to think about countable sets A set is called countable if . A | A | ≤ | N | This seems to imply that if is infinite, then . A | A | = | N | Is it possible that is infinite, but ? | A | < | N | A Theorem: A set is countably infinite if and only if . A | A | = | N | So if is countable, there are two options: A 1 . is finite A Exercise: prove the theorem 2. | A | = | N |

  39. Countable? (0 , 0) | N | = | Z × Z | ? (1 , 0) . . (1 , 1) . (0 , 1) ( − 1 , 1) ( − 1 , 0) ( − 1 , − 1) (0 , − 1) (1 , − 1) … … (2 , − 1) (0 , 0) (2 , 0) (2 , 1) (2 , 2) (1 , 2) (0 , 2) . . . . . .

  40. Countable? | N | = | Q | ? -4 -3 -2 -1 0 1 2 3 4 Can we list them in the order they appear on the line? Between any two rational numbers, there is another one. a Any rational number can be written as a fraction . b a ( map to ) ( a, b ) Z × Z ⇣ Q b ⇒ | Q | ≤ | Z × Z | = | N | =

  41. Countable? | N | = |{ 0 , 1 } ∗ | ? { 0 , 1 } ∗ = the set of finite length binary strings. ε 0 1 00 , 01 , 10 , 11 000 , 001 , 010 , 011 , 100 , 101 , 110 , 111 · · ·

  42. Countable? | N | = | Σ ∗ | ? = the set of finite length words over . Σ ∗ Σ Same idea.

  43. Countable? | N | = | Q [ x ] | ? = the set of polynomials with rational coefficients. Q [ x ] x 3 − 1 4 x 2 + 6 x − 22 e.g. 7 Take Σ = { 0 , 1 , . . . , 9 , x, + , − , ∗ , /, ˆ } Every polynomial can be described by a finite string over . Σ e.g. x ˆ3 − 1 / 4 x ˆ2 + 6 x − 22 / 7 So Σ ∗ ⇣ Q [ x ] i.e. | Q [ x ] | ≤ | Σ ∗ |

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