Presentation is loading. Please wait.

Presentation is loading. Please wait.

State Machines and Infinity

Similar presentations


Presentation on theme: "State Machines and Infinity"— Presentation transcript:

1 State Machines and Infinity

2 Final exam times/rooms
Friday, December 19, 8-11am Tell me about any conflicts asap. Note there is no specific conflict exam --- most conflicts should be resolved by other classes unless due to 3 tests in one day. There will be an later this week with a form for you to signup for what examlet you want to retake if you want to retake an examlet with the final.

3 State diagrams state transition action Transition function:
dining rm, south →hall

4

5

6 Countability Discrete Structures (CS 173)
Chuck Norris counted to infinity…twice Discrete Structures (CS 173) Adapted from Derek Hoiem, University of Illinois

7 Today’s class: countability
Are some infinite sets bigger than other infinite sets? How big are these common infinite sets? Naturals, integers, reals, rationals, powerset of naturals What does it mean for a set to be “countable”? How do we prove that a set is or is not countable? My set of cards is bigger than yours…infinity+1, infinity*infinity

8 Are there more integers than natural numbers?
Intuitively yes, after all the natural numbers are a subset of the integers. But both sets have infinite numbers. So how can we go about answering this? Is it even a meaningful question?

9 Are there more integers than natural numbers?
𝐴 =|𝐵| iff there is a bijection from 𝐴 to 𝐵. One solution is to go back the idea of bijection, which we learned earlier in the semester….

10 Are there more rational numbers than integers?
Cantor Schroeder Bernstein Theorem: 𝐴 =|𝐵| iff there exist one-to-one functions 𝑓:𝐴→𝐵 and 𝑔:𝐵→𝐴 Here’s a more flexible method. Each of these functions puts a bound on the size of A and B (|A|<=|B|, |B|<=|A|, so |A|=|B|) Note: f and g do not have to be the same functions Z x Z -> Z : f(x,y) =2^x3^y prime factorization unique

11 Countability A set is countably infinite if it has the same size as the set of natural numbers. A set is countable if it is finite or countably infinite. Countable sets: Any subset of a countable set is countable The Cartesian product of finitely many countable sets is countable A union of countably many countable sets is countable

12 What sets are not countable?
Quite a few sets are countable. So how do we get a set that’s bigger than infinity?

13 Power set of natural numbers is not countable
Proof by contradiction and “diagonalization” (Cantor) Write a subset of natural numbers as an infinite-length binary vector Suppose there is a complete list of such vectors (could be infinitely many of them) Can construct a new vector that is different from all infinity of them!

14 Reals are not countable
Similar proof to for powerset of naturals Restrict ourselves to a subset of reals: those between 0 and 1 Each real number is a decimal followed by a potentially infinite number of 0 to 9 numbers Can construct a new number by diagonalization

15 Summary: compare set sizes
Integer vs. Natural = Natural vs. Real < Powers of 4 vs. Integers = Real vs. Rational > Irrational vs. Rational > Powerset(Natural) vs. Real = Powerset(Real) vs. Real > =,<,=,>,>,=,>

16 Things to remember Some infinite sets are bigger than others
We can compare sizes of infinite sets using bijections or one-to-one functions in each direction A “countable” set is the same size (or smaller) than the natural numbers


Download ppt "State Machines and Infinity"

Similar presentations


Ads by Google