04/23/13 Countability Discrete Structures (CS 173) Derek Hoiem, University of Illinois 1.

Slides:



Advertisements
Similar presentations
Countability. The cardinality of the set A is equal to the cardinality of a set B if there exists a bijection from A to B cardinality? bijection? injection.
Advertisements

Data Structures and Functional Programming Computability Ramin Zabih Cornell University Fall 2012.
Cantor’s Infinities Raymond Flood Gresham Professor of Geometry.
Week 7 - Wednesday.  What did we talk about last time?  Set proofs and disproofs  Russell’s paradox.
1 Diagonalization Fact: Many books exist. Fact: Some books contain the titles of other books within them. Fact: Some books contain their own titles within.
Infinity and the Limits of Mathematics Manchester High School for Girls Friday 30 th September 2011 Dr Richard Elwes, University of Leeds.
Great Theoretical Ideas in Computer Science.
Module 5 Topics Proof of the existence of unsolvable problems
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
Functions f( ) = A B Lecture 15: Nov 4.
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
CS 310 – Fall 2006 Pacific University CS310 The Halting Problem Section 4.2 November 15, 2006.
A Very Practical Series 1 What if we also save a fixed amount (d) every year?
1 Lecture 6 Topics –Proof of the existence of unsolvable problems Problems/languages not in REC Proof Technique –There are more problems/languages than.
CS 2210 (22C:019) Discrete Structures Sets and Functions Spring 2015 Sukumar Ghosh.
2012: J Paul GibsonTSP: Mathematical FoundationsMAT7003/L5- CountingAndEnumeration.1 MAT 7003 : Mathematical Foundations (for Software Engineering) J Paul.
04/25/13 Halting Problem Discrete Structures (CS 173) Derek Hoiem, University of Illinois 1
Chapter 7 Functions Dr. Curry Guinn. Outline of Today Section 7.1: Functions Defined on General Sets Section 7.2: One-to-One and Onto Section 7.3: The.
Functions A B f( ) =. This Lecture We will define a function formally, and then in the next lecture we will use this concept in counting. We will also.
Cardinality of Sets Section 2.5.
THE NATURE OF SETS Copyright © Cengage Learning. All rights reserved. 2.
Problem: Can 5 test tubes be spun simultaneously in a 12-hole centrifuge? What does “balanced” mean? Why are 3 test tubes balanced? Symmetry! Can you merge.
04/30/13 Last class: summary, goggles, ices Discrete Structures (CS 173) Derek Hoiem, University of Illinois 1 Image: wordpress.com/2011/11/22/lig.
1 Lecture 3 (part 3) Functions – Cardinality Reading: Epp Chp 7.6.
Week 7 - Friday.  What did we talk about last time?  Set disproofs  Russell’s paradox  Function basics.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
Ch. 11: Cantor’s Infinity!. N = {1, 2, 3, 4, 5, 6, …} “the natural numbers” Z = {…, –3, –2, –1, 0, 1, 2, 3, …} “the integers” Q = {all quotients “a/b”
Basic Structures: Sets, Functions, Sequences, and Sums CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Copyright © 2014 Curt Hill Cardinality of Infinite Sets There be monsters here! At least serious weirdness!
A Universal Turing Machine
Relations, Functions, and Countability
Donald Byrd rev. 28 November 2012
COMPSCI 102 Introduction to Discrete Mathematics.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
INFIINITE SETS CSC 172 SPRING 2002 LECTURE 23. Cardinality and Counting The cardinality of a set is the number of elements in the set Two sets are equipotent.
Activity 1-17: Infinity.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Stupid questions? Are there more integers than even integers?
Great Theoretical Ideas in Computer Science.
CompSci 102 Discrete Math for Computer Science February 7, 2012 Prof. Rodger Slides modified from Rosen.
Types of Proof Lecture 4 Sections 0.4 Wed, Aug 29, 2007.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.3, 7.4 and 7.5.
CS 285- Discrete Mathematics
CSE 311 Foundations of Computing I Lecture 25 Pattern Matching, Cardinality, Computability Spring
CSE 311: Foundations of Computing Fall 2013 Lecture 26: Pattern matching, cardinality.
CSE 311: Foundations of Computing Fall 2014 Lecture 27: Cardinality.
To Infinity And Beyond! CS Lecture 11 The Ideal Computer: no bound on amount of memory Whenever you run out of memory, the computer contacts the.
Section 2.5. Cardinality Definition: A set that is either finite or has the same cardinality as the set of positive integers (Z + ) is called countable.
CompSci Today’s Topics Computer Science Noncomputability Upcoming Special Topic: Enabled by Computer -- Decoding the Human Genome Reading Great.
Great Theoretical Ideas In Computer Science
Raymond Flood Gresham Professor of Geometry
Discrete Mathematics CS 2610
A Universal Turing Machine
CS 461 – Nov. 2 Sets Prepare for ATM finite vs. infinite Infinite sets
CS 2210:0001 Discrete Structures Sets and Functions
This statement is false.
2.4 Sequences and Summations
Proof by Contradiction
Cardinality of Sets Section 2.5.
Countable or Uncountable…That is the question!
Discrete Structures for Computer Science
Module #4.5, Topic #∞: Cardinality & Infinite Sets
Discrete Mathematics and its Applications
Discrete Math for CS CMPSC 360 LECTURE 43 Last time: Variance
Module #4.5, Topic #∞: Cardinality & Infinite Sets
CS21 Decidability and Tractability
Cardinality Definition: The cardinality of a set A is equal to the cardinality of a set B, denoted |A| = |B|, if and only if there is a one-to-one correspondence.
Computability and Undecidability
State Machines and Infinity
Presentation transcript:

04/23/13 Countability Discrete Structures (CS 173) Derek Hoiem, University of Illinois 1

Final exam times/rooms Tuesday, May 7, 7-10pm DCL 1320: Students with last names Afridi to Mehta Siebel 1404: Students with last names Melvin to Zmick 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. 2

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? 3

Are there more integers than natural numbers? 4

5

Are there more rational numbers than integers? 6

7

8 Zazzle

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 9

What sets are not countable? 10

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! 11

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 12

Which is bigger: set of real numbers or power set of natural numbers? 13

Diagonalization Why doesn’t the diagonalization technique work for disproving that all pairs of natural numbers is countable? 14

Hilbert’s Paradox of the Grand Hotel Suppose the Grand Hotel has a countably infinite number of rooms, which are all occupied. – How can the hotel accommodate one more person without making anyone leave? – How can the hotel accommodate a countably infinite number of new people? 15

The Continuum Hypothesis (CH) Is there any set that is larger than the set of natural numbers but smaller than the set of real numbers? – In 1931, Gödel showed that there are true statements that can’t be proven true and, later, that the negation of the CH is one of them – Thus, CH is either true or it’s false but can’t be proven false – Later, Paul Cohen proved that the continuum hypothesis cannot be proved – Thus, no logical conflict can occur from asserting the CH or its negation 16 Details:

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 17

Uncomputability A computer program is just a string (finite series of characters), so it is countable But the set of functions is uncountable (e.g., functions that map reals to reals) So there are more functions than programs – some functions cannot be computed by any program Implies halting problem, a topic for next class 18

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 19

Next class Halting problem Conway’s game of life Aperiodic tilings 20