CS 285- Discrete Mathematics

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

2.1 Sets ‒Sets ‒Common Universal Sets ‒Subsets 2.2 Set Operations 2.3 Functions 2.4 Sequences and Summations 1.
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.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 10 Cardinality Uncountability of the real numbers.
EE1J2 – Discrete Maths Lecture 9
Introduction to Computability Theory
Great Theoretical Ideas in Computer Science.
1 Undecidability Andreas Klappenecker [based on slides by Prof. Welch]
CSE115/ENGR160 Discrete Mathematics 02/22/11 Ming-Hsuan Yang UC Merced 1.
1 Section 3.3 Mathematical Induction. 2 Technique used extensively to prove results about large variety of discrete objects Can only be used to prove.
1 Lecture 6 Topics –Proof of the existence of unsolvable problems Problems/languages not in REC Proof Technique –There are more problems/languages than.
Cardinality of a Set “The number of elements in a set.” Let A be a set. a.If A =  (the empty set), then the cardinality of A is 0. b. If A has exactly.
Cardinality of Sets Section 2.5.
Sequences & Summations CS 1050 Rosen 3.2. Sequence A sequence is a discrete structure used to represent an ordered list. A sequence is a function from.
Sequences and Summations
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sifth Edition, Mc Graw-Hill, 2007 Chapter 2: Basic Structures: Sets, Functions, Sequences.
MATH 224 – Discrete Mathematics
2.4 Sequences and Summations
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
1 Lecture 3 (part 3) Functions – Cardinality Reading: Epp Chp 7.6.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
Example Prove that: “IF 3n + 2 is odd, then n is odd” Proof by Contradiction: -p = 3n + 2 is odd, q = n is odd. -Assume that ~(p  q) is true OR -(p 
Basic Structures: Sets, Functions, Sequences, and Sums CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Mathematical Induction
Functions Section 2.3. Section Summary Definition of a Function. – Domain, Cdomain – Image, Preimage Injection, Surjection, Bijection Inverse Function.
Relations, Functions, and Countability
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
2.1 Sets ‒Sets ‒Common Universal Sets ‒Subsets 2.2 Set Operations 2.3 Functions 2.4 Sequences and Summations 1.
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.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 09: SEQUENCES Section 3.2 Jarek Rossignac CS1050: Understanding.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Introduction to Real Analysis Dr. Weihu Hong Clayton State University 8/27/2009.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Great Theoretical Ideas in Computer Science.
CompSci 102 Discrete Math for Computer Science February 7, 2012 Prof. Rodger Slides modified from Rosen.
Lecture 4 Infinite Cardinals. Some Philosophy: What is “2”? Definition 1: 2 = 1+1. This actually needs the definition of “1” and the definition of the.
Math 51/COEN 19. Sequences and Summations - vocab An arithmetic progression is a sequence of the form a, a+d, a+2d, …, a+nd, … with fixed a, d in R and.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.3, 7.4 and 7.5.
Section 3.2: Sequences and Summations. Def: A sequence is a function from a subset of the set of integers (usually the set of natural numbers) to a set.
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.
Sequences Lecture 11. L62 Sequences Sequences are a way of ordering lists of objects. Java arrays are a type of sequence of finite size. Usually, mathematical.
1-1 Copyright © 2013, 2005, 2001 Pearson Education, Inc. Section 2.4, Slide 1 Chapter 2 Sets and Functions.
CSE15 Discrete Mathematics 03/01/17
Sets (2.1) A set is a collection or group of objects or elements or members. (Cantor 1895) A set is said to contain its elements. There must be an underlying.
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
Discrete Mathematics Lecture 6
Discrete Mathematics CS 2610
The sum of the infinite and finite geometric sequence
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
2.4 Sequences and Summations
Sequences and Summations
Cardinality of Sets Section 2.5.
Countable or Uncountable…That is the question!
Lecture 7 Functions.
Diagonalization Fact: Many books exist.
Discrete Structures for Computer Science
Countable and Countably Infinite Sets
ICS 253: Discrete Structures I
Module #4.5, Topic #∞: Cardinality & Infinite Sets
Discrete Mathematics and its Applications
Sequences and the Binomial Theorem
Module #4.5, Topic #∞: Cardinality & Infinite Sets
Discrete Mathematics CS 2610
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.
Presentation transcript:

CS 285- Discrete Mathematics Lecture 9

Section 2.4 Sequences & Summation Special Integer Sequences Summations Cardinality Sequences & Summation

Sequences 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 {0, 1, 2, 3, . . . , k} and {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 ai and we write where k is the upper limit (usually ¥). Sequences & Summation

Example Using zero-origin indexing, if f(i) = 1/(i + 1). then the sequence f = {1, 1/2,1/3,1/4, . . . } = {a0, a1, a2, a3, . . } Using one-origin indexing the sequence f becomes {1/2, 1/3, . . .} = {a1, a2, a3, . . .} Sequences & Summation

Summation Given a sequence {ai}0 K we can add together a subset of the sequence by using the summation and function notation Or more generally Sequences & Summation

Example Similarly for the product notation: Sequences & Summation

Geometric Progression A geometric progression is a sequence of the form a, ar, ar2, ar3, ar4, . . . . the sum could be determined if the index starts at k vs. 0 if the index ends at something other than n (e.g., n-1, n+1, etc.). Sequences & Summation

Cardinality 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 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 If a set is not countable we say it is uncountable. Sequences & Summation

Example -- I 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. Sequences & Summation

Theorem Definition: | A | £ | B | if there is an injection from A to B. Theorem: If | A | £ | B | and | B | £ | A | then | A | = | B |. This implies if there is an injection from A to B if there is an injection from B to A Then 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. Sequences & Summation

Example -- II If A is a subset of B then | A | £ | B |. Proof: the function f(x) = x is an injection from A to B. Example: | {0, 2, 5} | £ À0 The injection f: {0, 2, 5} ®N defined by f(x) = x is shown below: Sequences & Summation

Some Infinite Countable 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 Z+, the set of positive integers is countably infinite. The set of positive rational numbers Q+ is countably infinite. Proof: Z+ is a subset of Q+ so | Z+ | = À0 £ | Q+ |. Sequences & Summation

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. Sequences & Summation