CSE 20 DISCRETE MATH. Fall

Similar documents
Functions. Definition 1 Let A and B be sets. A relation between A and B is any subset of A B.

MATH 3300 Test 1. Name: Student Id:

1 Partitions and Equivalence Relations

Math 105A HW 1 Solutions

SETS AND FUNCTIONS JOSHUA BALLEW

CITS2211 Discrete Structures (2017) Cardinality and Countability

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 27

CSE 20 DISCRETE MATH SPRING

Discrete Structures for Computer Science

Date: October 24, 2008, Friday Time: 10:40-12:30. Math 123 Abstract Mathematics I Midterm Exam I Solutions TOTAL

1.4 Cardinality. Tom Lewis. Fall Term Tom Lewis () 1.4 Cardinality Fall Term / 9

CSE 20 DISCRETE MATH WINTER

Math.3336: Discrete Mathematics. Cardinality of Sets

Math 3361-Modern Algebra Lecture 08 9/26/ Cardinality

Algorithms: Lecture 2


CSE 20 DISCRETE MATH WINTER

MATH 220 (all sections) Homework #12 not to be turned in posted Friday, November 24, 2017

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence

Announcements. CS243: Discrete Structures. Sequences, Summations, and Cardinality of Infinite Sets. More on Midterm. Midterm.

Some. AWESOME Great Theoretical Ideas in Computer Science about Generating Functions Probability

Countable and uncountable sets. Matrices.

MATH 201 Solutions: TEST 3-A (in class)

Countable and uncountable sets. Matrices.

In N we can do addition, but in order to do subtraction we need to extend N to the integers

Warm-Up Problem. Please fill out your Teaching Evaluation Survey! Please comment on the warm-up problems if you haven t filled in your survey yet.

Prof. Ila Varma HW 8 Solutions MATH 109. A B, h(i) := g(i n) if i > n. h : Z + f((i + 1)/2) if i is odd, g(i/2) if i is even.

Great Theoretical Ideas in Computer Science. Lecture 5: Cantor s Legacy

5 Set Operations, Functions, and Counting

A Short Review of Cardinality

Intro to Theory of Computation

MATH31011/MATH41011/MATH61011: FOURIER ANALYSIS AND LEBESGUE INTEGRATION. Chapter 2: Countability and Cantor Sets

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class

Mathematics 220 Workshop Cardinality. Some harder problems on cardinality.

Exercises for Unit VI (Infinite constructions in set theory)

CSE 105 THEORY OF COMPUTATION

Sequences are ordered lists of elements

MATH 13 FINAL EXAM SOLUTIONS

NOTE: You have 2 hours, please plan your time. Problems are not ordered by difficulty.

Automata and Languages

14 Uncountable Sets(Denial of Self Recursion)

CSE 105 THEORY OF COMPUTATION

INFINITY: CARDINAL NUMBERS

4) Have you met any functions during our previous lectures in this course?

Discrete Structures - CM0246 Cardinality

Section 7.5: Cardinality

Chapter 1 : The language of mathematics.

Chapter 20. Countability The rationals and the reals. This chapter covers infinite sets and countability.

Math 300: Final Exam Practice Solutions

Economics 204 Summer/Fall 2011 Lecture 2 Tuesday July 26, 2011 N Now, on the main diagonal, change all the 0s to 1s and vice versa:

CSE 311: Foundations of Computing. Lecture 26: Cardinality

6 CARDINALITY OF SETS

In N we can do addition, but in order to do subtraction we need to extend N to the integers

Section 0. Sets and Relations

CSE 20 Discrete Math. Winter, January 24 (Day 5) Number Theory. Instructor: Neil Rhodes. Proving Quantified Statements

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

One-to-one functions and onto functions

University of Toronto Faculty of Arts and Science Solutions to Final Examination, April 2017 MAT246H1S - Concepts in Abstract Mathematics

CS100: DISCRETE STRUCTURES

Undecidability. Andreas Klappenecker. [based on slides by Prof. Welch]

2.1 Sets. Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R.

CSE 105 THEORY OF COMPUTATION

Foundations Revision Notes

Week Some Warm-up Questions

Cardinality of sets. Cardinality of sets

Math 4603: Advanced Calculus I, Summer 2016 University of Minnesota Notes on Cardinality of Sets

ADVANCED CALCULUS - MTH433 LECTURE 4 - FINITE AND INFINITE SETS

Discrete Mathematics 2007: Lecture 5 Infinite sets

Econ Lecture 2. Outline

ECARES Université Libre de Bruxelles MATH CAMP Basic Topology

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Economics 204 Summer/Fall 2017 Lecture 1 Monday July 17, 2017

Finite and Infinite Sets

Math 320: Real Analysis MWF 1pm, Campion Hall 302 Homework 2 Solutions Please write neatly, and in complete sentences when possible.

Countability. 1 Motivation. 2 Counting

A Readable Introduction to Real Mathematics

CS 2336 Discrete Mathematics

Cardinality and ordinal numbers

Today. Wrapup of Polynomials...and modular arithmetic. Coutability and Uncountability.

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

Chapter Summary. Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability

CSE 20 DISCRETE MATH. Winter

Solutions to Homework Assignment 2

MATH 102 INTRODUCTION TO MATHEMATICAL ANALYSIS. 1. Some Fundamentals

Selected problems from past exams

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

A Universal Turing Machine

Practice Exam 1 CIS/CSE 607, Spring 2009

CSE 20 DISCRETE MATH. Winter

Functions and cardinality (solutions) sections A and F TA: Clive Newstead 6 th May 2014

Chapter Summary. Sets (2.1) Set Operations (2.2) Functions (2.3) Sequences and Summations (2.4) Cardinality of Sets (2.5) Matrices (2.

MATH 13 SAMPLE FINAL EXAM SOLUTIONS

0 Logical Background. 0.1 Sets

CSCI3390-Lecture 6: An Undecidable Problem

CSCE 222 Discrete Structures for Computing

Harvard CS 121 and CSCI E-207 Lecture 6: Regular Languages and Countability

1.A Sets, Relations, Graphs, and Functions 1.A.1 Set a collection of objects(element) Let A be a set and a be an elements in A, then we write a A.

Discussion Summary 10/16/2018

CSE 20 DISCRETE MATH. Fall

Transcription:

CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/

Today's learning goals Define and compute the cardinality of a set. Use functions to compare the sizes of sets. Classify sets by cardinality into: Finite sets, countable sets, uncountable sets. Explain the central idea in Cantor's diagonalization argument.

Functions Rosen Sec 2.3; p. 138 Function f: D C means domain D, codomain C, plus rule Well-defined Onto One-to-one

Proving a function is Let A = {1,2,3} and B = {2,4,6}. Define a function from the power set of A to the power set of B by: Well-defined? Onto? One-to-one?

One-to-one + onto Rosen p. 144 1 2 3 4 5 a b c d e one-to-one correspondence bijection invertible The inverse of a function f: A B is the function g: B A such that

One-to-one + onto Rosen p. 144 1 2 3 4 5 a b c d e Fact: for finite sets A and B, there is a bijection between them if and only if A = B.

Beyond finite sets Rosen Section 2.5 For all sets, we define A = B if and only if there is a bijection between them. Which of the following is true? A. Z = N B. N = Z + C. Z = {0,1}* D. All of the above. E. None of the above.

Cardinality Rosen Defn 3 p. 171 Finite sets A = n for some nonnegative int n Countably infinite sets A = Z + (informally, can be listed out) "Smallest" infinite set

Sizes and subsets Rosen Theorem 2, p 174 *More on HW* For all sets A, B we say A B if there is a one-to-one function from A to B. A B if there is an onto function from A to B. Cantor-Schroder-Bernstein Theorem: A = B iff A B and A B Which of the following is true? A. If A is a subset of B then A B B. If A is a subset of B then A B C. If A is a subset of B then A = B D. None of the above. E. I don't know

Beyond finite sets Rosen Section 2.5 For all sets, we say A = B if and only if there is a bijection between them. Which of the following is true? A. Q = Q + B. Q + = N x N C. N = Q D. All of the above. E. None of the above.

Cardinality Rosen Defn 3 p. 171 Finite sets A = n for some nonnegative int n Countably infinite sets A = Z + (informally, can be listed out) Uncountable sets Infinite but not in bijection with Z +

Cardinality Rosen Defn 3 p. 171 Finite sets A = n for some nonnegative int n Which of the following sets is not finite? A. B. C. D. E. None of the above (they're all finite)

Cardinality Rosen p. 172 Countable sets A is finite or A = Z + (informally, can be listed out) Examples: and also - the set of odd positive integers Example 1 - the set of all integers Example 3 - the set of positive rationals Example 4 - the set of negative rationals - the set of rationals - the set of nonnegative integers - the set of all bit strings {0,1}*

Cardinality Rosen p. 172 Countable sets A is finite or A = Z + (informally, can be listed out) Examples: and also - the set of odd positive integers Example 1 - the set of all integers Example 3 - the set of positive rationals Example 4 - the set of negative rationals - the set of rationals - the set of nonnegative integers - the set of all bit strings {0,1}* Proof strategies? - List out all and only set elements (with or without duplication) - Give a one-to-one function from A to (a subset of) a set known to be countable

Proving countability Which of the following is not true? A. If A and B are both countable then AUB is countable. B. If A and B are both countable then A B is countable. C. If A and B are both countable then AxB is countable. D. If A is countable then P(A) is countable. E. None of the above

There is an uncountable set! Rosen example 5, page 173-174 Cantor's diagonalization argument Theorem: For every set A,

There is an uncountable set! Rosen example 5, page 173-174 Cantor's diagonalization argument Theorem: For every set A, An example to see what is necessary. Consider A = {a,b,c}. What would we need to prove that A = P(A)?

There is an uncountable set! Rosen example 5, page 173-174 Cantor's diagonalization argument Theorem: For every set A, Proof: (Proof by contradiction) Assume towards a contradiction that means there is a bijection.. By definition, that x f f(x) = X A

There is an uncountable set! Rosen example 5, page 173-174 Cantor's diagonalization argument Consider the subset D of A defined by, for each a in A: x f f(x) = X D A

There is an uncountable set! Rosen example 5, page 173-174 Cantor's diagonalization argument Consider the subset D of A defined by, for each a in A: Define d to be the pre-image of D in A under f f(d) = D Is d in D? If yes, then by definition of D, a contradiction! Else, by definition of D, so a contradiction!

Cardinality Rosen p. 172 Uncountable sets Infinite but not in bijection with Z + Examples: the power set of any countably infinite set and also - the set of real numbers Example 5 - (0,1) Example 6 (++) - (0,1] Example 6 (++) Exercises 33, 34

Happy Thanksgiving!