Module #10: Proof Strategies Rosen 5 th ed., §3.1 (already covered)

Slides:



Advertisements
Similar presentations
Chapter 2 Revision of Mathematical Notations and Techniques
Advertisements

1 Sequences Rosen 6 th ed., §2.4 2 Sequences A sequence represents an ordered list of elements.A sequence represents an ordered list of elements. e.g.,
22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Section 1.6: Sets Sets are the most basic of discrete structures and also the most general. Several of the discrete structures we will study are built.
A sequence is a set of numbers arranged in a definite order
CS5371 Theory of Computation Lecture 1: Mathematics Review I (Basic Terminology)
Sets 1.
Sets 1.
Fall 2006Costas Busch - RPI1 Languages. Fall 2006Costas Busch - RPI2 Language: a set of strings String: a sequence of symbols from some alphabet Example:
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.
Induction and recursion
Sequences and Summations
2015 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
CSC312 Automata Theory Lecture # 2 Languages.
Costas Busch - LSU1 Languages. Costas Busch - LSU2 Language: a set of strings String: a sequence of symbols from some alphabet Example: Strings: cat,
Lecture Two: Formal Languages Formal Languages, Lecture 2, slide 1 Amjad Ali.
Mathematical preliminaries Episode 2 0 Sets Sequences Functions Relations Strings.
Sequences and Summations
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
1 Sequences Rosen 6 th ed., §2.4 2 Sequences A sequence represents an ordered list of elements.A sequence represents an ordered list of elements. Formally:
Discrete math Bijections 2 A function f is a one-to-one correspondence, or a bijection or reversible, or invertible, iff it is both one-to-one and onto.
Lesson 8.1 Page #1-25(EOO), 33, 37, (ODD), 69-77(EOO), (ODD), 99, (ODD)
Module #12: Summations Rosen 5 th ed., §3.2 Based on our knowledge on sequence, we can move on to summations easily.
Sequences & Series MATH Precalculus S. Rook.
강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)
Sequences and Summations Section 2.4. Section Summary Sequences. – Examples: Geometric Progression, Arithmetic Progression Recurrence Relations – Example:
Discrete Mathematics R. Johnsonbaugh
CompSci 102 Discrete Math for Computer Science
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
ICS 253: Discrete Structures I Induction and Recursion King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Module Code MA1032N: Logic Lecture for Week Autumn.
Chapter 2 With Question/Answer Animations. Section 2.1.
Basic Structures: Sets, Functions, Sequences, and Sums.
CompSci 102 Discrete Math for Computer Science February 7, 2012 Prof. Rodger Slides modified from Rosen.
2014 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)
Chapter 3 – Sequence and String CSNB 143 Discrete Mathematical Structures.
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
Theory of computation Introduction theory of computation: It comprises the fundamental mathematical properties of computer hardware, software,
Mathematical Foundations of Computer Science Chapter 3: Regular Languages and Regular Grammars.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
13.1 Sequences. Definition of a Sequence 2, 5, 8, 11, 14, …, 3n-1, … A sequence is a list. A sequence is a function whose domain is the set of natural.
CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Design and Analysis of Algorithms.
11.1 An Introduction to Sequences & Series By: L. Keali’i Alicea.
8.1 CompSci 102© Michael Frank Today’s topics Integers & Number TheoryIntegers & Number Theory – –Sequences – –Summations Reading: Sections 3.2Reading:
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
CMPD133 – DISCRETE STRUCTURE Chapter 1 - Topic 2 – Sequence & Strings.
Chapter 2 1. Chapter Summary Sets The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions and sequences.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
Introduction to Set Theory (§1.6) A set is a new type of structure, representing an unordered collection (group, plurality) of zero or more distinct (different)
8.1 CompSci 102© Michael Frank Today’s topics Integers & Number TheoryIntegers & Number Theory – –More proof techniques – –Sequences – –Summations Reading:
22C:19 Discrete Structures Sequence and Sums Fall 2014 Sukumar Ghosh.
Languages Prof. Busch - LSU.
Languages Costas Busch - LSU.
VCU, Department of Computer Science CMSC 302 Sequences and Summations Vojislav Kecman 9/19/2018.
9.1 An Introduction to Sequences & Series
Rosen 5th ed., §3.2 ~9 slides, ~½ lecture
ICS 253: Discrete Structures I
Rosen 5th ed., §3.2 ~9 slides, ~½ lecture
Discrete Mathematics and its Applications
Chapter 1 Introduction to the Theory of Computation
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.
CSNB 143 Discrete Mathematical Structures
Languages Fall 2018.
Terminology and Symbols
Presentation transcript:

Module #10: Proof Strategies Rosen 5 th ed., §3.1 (already covered)

Module #11: Sequences Rosen 5 th ed., §3.2 Other exam schedule?

§3.2: Sequences & Strings A sequence or series is just like an ordered n-tuple, except: –Each element in the series has an associated index number. –A sequence or series may be infinite. A summation is a compact notation for the sum of all terms in a (possibly infinite) series.

Sequences Formally: A sequence or series {a n } is identified with a generating function f:S  A for some subset S  N (often S=N or S=N  {0}) and for some set A. If f is a generating function for a series {a n }, then for n  S, the symbol a n denotes f(n), also called term n of the sequence. The index of a n is n. (Or, often i is used.)

terminology A generating function is a clothesline on which we hang up a sequence of numbers for display. -- Herbert Wilf (1994) The (ordinary) generating function of the sequence {a n }, where, by convention, the index n ranges from 0 or 1, is a formal series f(x) = a 0 + a 1 x + a 2 x 2 + a 3 x 3 +…

Sequence Examples Many sources just write “the sequence a 1, a 2, …” instead of {a n }, to ensure that the set of indices is clear. –In the textbook, n starts from either 0 or 1 An example of an infinite series: –Consider the series {a n } = a 1, a 2, …, where (  n  1) a n = f(n) = 1/n. –Then {a n } = 1, 1/2, 1/3, …

Example with Repetitions Consider the sequence {b n } = b 0, b 1, … (note 0 is an index) where b n = (  1) n. {b n } = 1,  1, 1,  1, … Note repetitions! {b n } denotes an infinite sequence of 1’s and  1’s, not the 2- element set {1,  1}.

Recognizing Sequences Sometimes, you’re given the first few terms of a sequence, and you are asked to find the sequence’s generating function, or a procedure to enumerate the sequence. Examples: What’s the next number? –1,2,3,4,… –1,3,5,7,9,… –2,3,5,7,11,... 5 (the 5th smallest number >0) 11 (the 6th smallest odd number >0) 13 (the 6th smallest prime number) What is the sequence again? An ordered list of elements and each element is indexed by a natural number incrementing one by one. As I mentioned in the last class, for a given partial list of elements, there can be a lot of generating functions.

The Trouble with Recognition The problem of finding “the” generating function given just an initial subsequence is not well defined. This is because there are infinitely many computable functions that will generate any given initial subsequence. We implicitly are supposed to find the simplest such function (because this one is assumed to be most likely), but, how should we define the simplicity of a function? –We might define simplicity as the reciprocal of complexity, but… So, these questions really have no objective right answer!

What are Strings, Really? This book says “finite sequences of the form a 1, a 2, …, a n are called strings”, but infinite strings are also used sometimes. Strings are often restricted to sequences composed of symbols drawn from a finite alphabet, and may be indexed from 0 or 1. Either way, the length of a (finite) string is its number of terms (or of distinct indexes). Now we turn to another definition of sequence, strings. A string is another name of a sequence; however it is often used when each element comes from an alphabet. Here an alphabet can be any set of symbols.

Strings, more formally Let  be a finite set of symbols, i.e. an alphabet. A string s over alphabet  is any sequence {s i } of symbols, s i , indexed by N or N  {0}. If a, b, c, … are symbols, the string s = a, b, c, … can also be written abc …(i.e., without commas). If s is a finite string and t is a string, the concatenation of s with t, written st, is the string consisting of the symbols in s, in sequence, followed by the symbols in t, in sequence.

More String Notation The length |s| of a finite string s is its number of positions (i.e., its number of index values i). If s is a finite string and n  N, s n denotes the concatenation of n copies of s.  denotes the empty string, the string of length 0. ( in the textbook) If  is an alphabet and n  N,  n  {s | s is a string over  of length n}, and  *  {s | s is a finite string over  } (or the set of all the strings over an alphabet). The length of a string is usually denoted by cardinality.