Section 1.7 Sequences, Summations Cardinality of Infinite Sets

Similar documents
Section 2.4 Sequences and Summations

A B. bijection. injection. Section 2.4: Countability. a b c d e g

Infinity and Uncountability. Countable Countably infinite. Enumeration

Cardinality of Sets. Washington University Math Circle 10/30/2016

Material from Recitation 1

Cardinality of Sets MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Cardinality of Sets Fall / 15

Comparing sizes of sets

Slides for Faculty Oxford University Press All rights reserved.

Cantor s Diagonal Argument for Different Levels of Infinity

The Size of the Cantor Set

SET DEFINITION 1 elements members

2. Functions, sets, countability and uncountability. Let A, B be sets (often, in this module, subsets of R).

MITOCW watch?v=4dj1oguwtem

Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103. Chapter 2. Sets

Phil 320 Chapter 1: Sets, Functions and Enumerability I. Sets Informally: a set is a collection of objects. The objects are called members or

Source of Slides: Introduction to Automata Theory, Languages, and Computation By John E. Hopcroft, Rajeev Motwani and Jeffrey D.

Proof Techniques Alphabets, Strings, and Languages. Foundations of Computer Science Theory

EDAA40 At home exercises 1

.Math 0450 Honors intro to analysis Spring, 2009 Notes #4 corrected (as of Monday evening, 1/12) some changes on page 6, as in .

Cardinality Lectures

CSE 120. Computer Science Principles

1.3 Functions and Equivalence Relations 1.4 Languages

Let A(x) be x is an element of A, and B(x) be x is an element of B.

Calculating Cardinalities

CHAPTER 8. Copyright Cengage Learning. All rights reserved.

Point-Set Topology 1. TOPOLOGICAL SPACES AND CONTINUOUS FUNCTIONS

MATHEMATICS 191, FALL 2004 MATHEMATICAL PROBABILITY Outline #1 (Countability and Uncountability)

MATH 139 W12 Review 1 Checklist 1. Exam Checklist. 1. Introduction to Predicates and Quantified Statements (chapters ).

Chapter 18: Decidability

9/19/12. Why Study Discrete Math? What is discrete? Sets (Rosen, Chapter 2) can be described by discrete math TOPICS

CSE 20 DISCRETE MATH WINTER

Functions. How is this definition written in symbolic logic notation?

Review of Sets. Review. Philippe B. Laval. Current Semester. Kennesaw State University. Philippe B. Laval (KSU) Sets Current Semester 1 / 16

To illustrate what is intended the following are three write ups by students. Diagonalization

Assignment No.4 solution. Pumping Lemma Version I and II. Where m = n! (n-factorial) and n = 1, 2, 3

Limitations of Algorithmic Solvability In this Chapter we investigate the power of algorithms to solve problems Some can be solved algorithmically and

The set consisting of all natural numbers that are in A and are in B is the set f1; 3; 5g;

9.5 Equivalence Relations

Automata Theory TEST 1 Answers Max points: 156 Grade basis: 150 Median grade: 81%

1KOd17RMoURxjn2 CSE 20 DISCRETE MATH Fall

Lec-5-HW-1, TM basics

Chapter 18 out of 37 from Discrete Mathematics for Neophytes: Number Theory, Probability, Algorithms, and Other Stuff by J. M. Cargal.

TOPOLOGY, DR. BLOCK, FALL 2015, NOTES, PART 3.

Hinged Sets And the Answer to the Continuum Hypothesis

Binary Relations McGraw-Hill Education

Functions 2/1/2017. Exercises. Exercises. Exercises. and the following mathematical appetizer is about. Functions. Functions

CSE 20 DISCRETE MATH. Fall

Functions. Def. Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A.

CSE 20 DISCRETE MATH. Winter

CHAPTER 4. COMPUTABILITY AND DECIDABILITY

CS402 - Theory of Automata Glossary By

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Discrete Mathematics

Lecture 17: Continuous Functions

Introduction to Sets and Logic (MATH 1190)

THREE LECTURES ON BASIC TOPOLOGY. 1. Basic notions.

Recursive Definitions Structural Induction Recursive Algorithms

Point-Set Topology II

Computation, Computers, and Programs. Administrivia. Resources. Course texts: Kozen: Introduction to Computability Hickey: Introduction to OCaml

Quadratic Equations over Matrices over the Quaternions. By Diana Oliff Mentor: Professor Robert Wilson

Lamé s Theorem. Strings. Recursively Defined Sets and Structures. Recursively Defined Sets and Structures

Formal Languages and Automata

Discrete Mathematics. Kruskal, order, sorting, induction

2. Sets. 2.1&2.2: Sets and Subsets. Combining Sets. c Dr Oksana Shatalov, Fall

SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY,DHENKANAL LECTURE NOTES ON DIGITAL ELECTRONICS CIRCUIT(SUBJECT CODE:PCEC4202)

13 th Annual Johns Hopkins Math Tournament Saturday, February 19, 2011 Automata Theory EUR solutions

CHAPTER TWO LANGUAGES. Dr Zalmiyah Zakaria

CS3102 Theory of Computation Solutions to Problem Set 1, Spring 2012 Department of Computer Science, University of Virginia

Using Cantor s Diagonal Method to Show ζ(2) is Irrational

LECTURE NOTES ON SETS

Topology Proceedings. COPYRIGHT c by Topology Proceedings. All rights reserved.

2.8. Connectedness A topological space X is said to be disconnected if X is the disjoint union of two non-empty open subsets. The space X is said to

COMPUTABILITY THEORY AND RECURSIVELY ENUMERABLE SETS

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS

Power Set of a set and Relations

Final Exam 2, CS154. April 25, 2010

2 Review of Set Theory

chapter 14 Monoids and Automata 14.1 Monoids GOALS Example

DVA337 HT17 - LECTURE 4. Languages and regular expressions

M3P1/M4P1 (2005) Dr M Ruzhansky Metric and Topological Spaces Summary of the course: definitions, examples, statements.

Chapter 3. Set Theory. 3.1 What is a Set?

HW 1 CMSC 452. Morally DUE Feb 7 NOTE- THIS HW IS THREE PAGES LONG!!! SOLUTIONS THROUGOUT THIS HW YOU CAN ASSUME:

Math 302 Introduction to Proofs via Number Theory. Robert Jewett (with small modifications by B. Ćurgus)

Nagual and Tonal Maths: Numbers, Sets, and Processes. Lukas A. Saul Oxford, England May, 2015

2/18/14. Uses for Discrete Math in Computer Science. What is discrete? Why Study Discrete Math? Sets and Functions (Rosen, Sections 2.1,2.2, 2.

1.7 The Heine-Borel Covering Theorem; open sets, compact sets

Topology notes. Basic Definitions and Properties.

Therefore, after becoming familiar with the Matrix Method, you will be able to solve a system of two linear equations in four different ways.

CMPSCI 250: Introduction to Computation. Lecture #28: Regular Expressions and Languages David Mix Barrington 2 April 2014

Non-Standard Models of Arithmetic

MA651 Topology. Lecture 4. Topological spaces 2

THE TOPOLOGICAL ENTROPY OF HOMEOMORPHISMS ON ONE-DIMENSIONAL CONTINUA

The Language of Sets and Functions

On the Parikh-de-Bruijn grid

Chapter 3: Theory of Modular Arithmetic 1. Chapter 3: Theory of Modular Arithmetic

Denotational semantics

Alphabets, strings and formal. An introduction to information representation

CS Bootcamp Boolean Logic Autumn 2015 A B A B T T T T F F F T F F F F T T T T F T F T T F F F

Recursively Defined Functions

CS321 Introduction To Numerical Methods

Notes on Minimum Cuts and Modular Functions

Transcription:

Section 1.7 Sequences, Summations Cardinality of Infinite Sets Definition: A sequence is a function from a subset of the natural numbers (usually of the form {0, 1, 2,... } to a set S. Note: the sets and {0, 1, 2, 3,..., k} {1, 2, 3, 4,..., k} are called initial segments of N. Notation: if f is a function from {0, 1, 2,...} to S we usually denote f(i) by a i and we write k {a 0, a 1, a 2, a 3,... } = {a i } i=0 = {a i } 0 k where k is the upper limit (usually ). Examples: Using zero-origin indexing, if f(i) = 1/(i + 1). then the sequence f = {1, 1/'2,1/3,1/4,... } = {a 0, a 1, a 2, a 3,.. } and Its Applications 4/E Kenneth Rosen TP 1

Using one-origin indexing the sequence f becomes {1/2, 1/3,...} = {a 1, a 2, a 3,...} Summation Notation Given a sequence {a i } 0 k we can add together a subset of the sequence by using the summation and function notation or more generally Examples: a g(m) + a g(m+1) +... +a g(n) = a g( j) a j j S n j=m r 0 + r 1 + r 2 + r 3 +... +r n = n 0 r j 1+ 1 2 + 1 3 + 1 4 +... = 1 1 i a 2m + a 2(m+1) +... +a 2(n) = n a 2 j j=m If S = {2, 5, 7, 10} then a j = a 2 + a 5 + a 7 + a 10 j S Similarly for the product notation: and Its Applications 4/E Kenneth Rosen TP 2

n a j = a m a m+1...a n j=m Definition: A geometric progression is a sequence of the form Your book has a proof that a, ar, ar2, ar3, ar4,.... n r i i=0 = rn+1 1 r 1 if r 1 (you can figure out what it is if r = 1). You should also be able to determine the sum if the index starts at k vs. 0 if the index ends at something other than n (e.g., n- 1, n+1, etc.). Cardinality Definition: The cardinality of a set A is equal to the cardinality of a set B, denoted A = B, if there exists a bijection from A to B. and Its Applications 4/E Kenneth Rosen TP 3

Definition: If a set has the same cardinality as a subset of the natural numbers N, then the set is called countable. If A = N, the set A is countably infinite. The (transfinite) cardinal number of the set N is aleph null = ℵ 0. If a set is not countable we say it is uncountable. Examples: The following sets are uncountable (we show later) The real numbers in [0, 1] P(N), the power set of N Note: With infinite sets proper subsets can have the same cardinality. This cannot happen with finite sets. Countability carries with it the implication that there is a listing of the elements of the set. Definition: A B if there is an injection from A to B. Note: as you would hope, and Its Applications 4/E Kenneth Rosen TP 4

Theorem: If A B and B A then A = B. This implies then if there is an injection from A to B if there is an injection from B to A there must be a bijection from A to B This is difficult to prove but is an example of demonstrating existence without construction. It is often easier to build the injections and then conclude the bijection exists. Example: Theorem: If A is a subset of B then A B. Proof: the function f(x) = x is an injection from A to B. and Its Applications 4/E Kenneth Rosen TP 5

Example: {0, 2, 5} ℵ 0 The injection f: {0, 2, 4} N defined by f(x) = x is shown below: 0 1 2 3 4 5 6... 0 2 5 Some Countably Infinite Sets The set of even integers E ( 0 is considered even) is countably infinite. Note that E is a proper subset of N! Proof: Let f(x) = 2x. Then f is a bijection from N to E 0 1 2 3 4 5 6... 0 2 4 6 8 10 12... Z+, the set of positive integers is countably infinite. and Its Applications 4/E Kenneth Rosen TP 6

The set of positive rational numbers Q+ is countably infinite. Proof: Z+ is a subset of Q+ so Z+ = ℵ 0 Q+. Now we have to show that Q+ ℵ 0. To do this we show that the positive rational numbers with repetitions, Q R, is countably infinite. Then, since Q+ is a subset of Q R, it follows that Q+ ℵ 0 and hence Q+ = ℵ 0. x y 1 2 3 4 5 6 7 1 2 3 4 1/1 2/1 3/1 4/1 5/1 6/1 7/1 1/2 2/2 3/2 4/2 5/2 6/2 7/2 1/3 2/3 3/3 4/3 5/3 6/3 7/3 1/4 2/4 3/4 4/4 5/4 6/4 7/4 5 The position on the path (listing) indicates the image of the bijective function f from N to Q R : f(0) = 1/1, f(1) = 1/2, f(2) = 2/1, f(3) = 3/1, and so forth. Every rational number appears on the list at least once, some many times (repetitions). and Its Applications 4/E Kenneth Rosen TP 7

Hence, N = Q R = ℵ 0. Q. E. D. The set of all rational numbers Q, positive and negative, is countably infinite. The set of (finite length) strings S over a finite alphabet A is countably infinite. To show this we assume that - A is nonvoid - There is an alphabetical ordering of the symbols in A Proof: List the strings in lexicographic order: order, order, - all the strings of zero length, - then all the strings of length 1 in alphabetical - then all the strings of length 2 in alphabetical etc. This implies a bijection from N to the list of strings and hence it is a countably infinite set. and Its Applications 4/E Kenneth Rosen TP 8

For example: Let A = {a, b, c}. Then the lexicographic ordering of A is {λ, a, b, c, aa, ab, ac, ba, bb, bc, ca, cb, cc, aaa, aab, aac, aba,...} = {f(0), f(1), f(2), f(3), f(4),....} The set of all C programs is countable. Proof: Let S be the set of legitimate characters which can appear in a C program. - A C compiler will determine if an input program is a syntactically correct C program (the program doesn't have to do anything useful). - Use the lexicographic ordering of S and feed the strings into the compiler. If the compiler says YES, this is a syntactically correct C program, we add the program to the list. Else we move on to the next string. In this way we construct a list or an implied bijection from N to the set of C programs. Hence, the set of C programs is countable. Q. E. D. and Its Applications 4/E Kenneth Rosen TP 9

Cantor Diagonalization - An important technique used to construct an object which is not a member of a countable set of objects with (possibly) infinite descriptions Theorem: The set of real numbers between 0 and 1 is uncountable. Proof: We assume that it is countable and derive a contradiction. If it is countable we can list them (i.e., there is a bijection from a subset of N to the set). We show that no matter what list you produce we can construct a real number between 0 and 1 which is not in the list. Hence, there cannot exist a list and therefore the set is not countable It's actually much bigger than countable. It is said to have the cardinality of the continuum, c. Represent each real number in the list using its decimal expansion. e.g., 1/3 =.3333333... 1/2 =.5000000... =.4999999... If there is more than one expansion for a number, it doesn't matter as long as our construction takes this into account. and Its Applications 4/E Kenneth Rosen TP 10

THE LIST... r 1 =.d 11 d 12 d 13 d 14 d 15 d 16..... r 2 =.d 21 d 22 d 23 d 24 d 25 d 26.... r 3 =.d 31 d 32 d 33 d 34 d 35 d 36....... Now construct the number x =.x 1 x 2 x 3 x 4 x 5 x 6 x 7.... x i = 3 if d ii 3 x i = 4 if d ii = 3 (Note: choosing 0 and 9 is not a good idea because of the non uniqueness of decimal expansions.) Then x is not equal to any number in the list. Hence, no such list can exist and hence the interval (0,1) is uncountable. Q. E. D. An extra goody: Definition: a number x between 0 and 1 is computable if there is a C program which when given the input i, will produce the ith digit in the decimal expansion of x. and Its Applications 4/E Kenneth Rosen TP 11

Example: The number 1/3 is computable. The C program which always outputs the digit 3, regardless if the input, computes the number. Theorem: There is exists a number x between 0 and 1 which is not computable. There does not exist a C program (or a program in any other language) which will compute it! Why? Because there are more numbers between 0 and 1 than there are C programs to compute them. (in fact there are c such numbers!) Our second example of the nonexistence of programs to compute things! and Its Applications 4/E Kenneth Rosen TP 12