2015 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)

Slides:



Advertisements
Similar presentations
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.,
Advertisements

22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
CSE115/ENGR160 Discrete Mathematics 02/22/11 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/21/12
2012: J Paul GibsonTSP: Mathematical FoundationsMAT7003/L5- CountingAndEnumeration.1 MAT 7003 : Mathematical Foundations (for Software Engineering) J Paul.
Set theory Sets: Powerful tool in computer science to solve real world problems. A set is a collection of distinct objects called elements. Traditionally,
Functions.
1 © 2010 Pearson Education, Inc. All rights reserved 10.1 DEFINITION OF A SEQUENCE An infinite sequence is a function whose domain is the set of positive.
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 Informally, a sequence is a set of elements written in a row. – This concept is represented in CS using one- dimensional arrays The goal of mathematics.
Sequences and Summations
2.4 Sequences and Summations
강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 재귀 호출 (Recursion)
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
Copyright © 2011 Pearson Education, Inc. Slide
ICS 253: Discrete Structures I
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.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
Module #12: Summations Rosen 5 th ed., §3.2 Based on our knowledge on sequence, we can move on to summations easily.
강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)
Relations, Functions, and Countability
CS201: Data Structures and Discrete Mathematics I
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (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.
2014 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics)  집합 (Set)
Introduction to Real Analysis Dr. Weihu Hong Clayton State University 8/27/2009.
Basic Structures: Sets, Functions, Sequences, and Sums.
Review 2 Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by lower.
Discrete Mathematics Set.
2014 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)
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.
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.
CS 285- Discrete Mathematics
Module #10: Proof Strategies Rosen 5 th ed., §3.1 (already covered)
2012 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수학적 귀납법 (Mathematical Induction)
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.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
8.1 CompSci 102© Michael Frank Today’s topics Integers & Number TheoryIntegers & Number Theory – –Sequences – –Summations Reading: Sections 3.2Reading:
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
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.
22C:19 Discrete Structures Sequence and Sums Fall 2014 Sukumar Ghosh.
Fall 2002CMSC Discrete Structures1 Chapter 3 Sequences Mathematical Induction Recursion Recursion.
CSE15 Discrete Mathematics 03/01/17
Discrete Mathematics CS 2610
The sum of the infinite and finite geometric sequence
2.4 Sequences and Summations
Sequences and Summations
Mathematical Induction Recursion
VCU, Department of Computer Science CMSC 302 Sequences and Summations Vojislav Kecman 9/19/2018.
Lecture 7 Functions.
Rosen 5th ed., §3.2 ~19 slides, ~1 lecture
Rosen 5th ed., §3.2 ~19 slides, ~1 lecture
Rosen 5th ed., §3.2 ~9 slides, ~½ lecture
Discrete Structures for Computer Science
ICS 253: Discrete Structures I
Module #4.5, Topic #∞: Cardinality & Infinite Sets
Discrete Mathematics and its Applications
Sets, Sequences, and Summations
Rosen 5th ed., §3.2 ~9 slides, ~½ lecture
9.1 Sequences Sequences are ordered lists generated by a
Discrete Mathematics and its Applications
Module #4.5, Topic #∞: Cardinality & Infinite Sets
Discrete Mathematics CS 2610
Sequences and Summation Notation
Discrete Mathematics and its Applications
Presentation transcript:

2015 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)

Discrete Mathematics by Yang-Sae Moon Page 2 Introduction Sequences and Summations A sequence or series is just like an ordered n-tuple (a 1, a 2, …, a n ), except: Each element in the sequences has an associated index number. ( 각 element 는 색인 (index) 번호와 결합되는 특성을 가진다.) A sequence or series may be infinite. ( 무한할 수 있다.) Example: 1, 1/2, 1/3, 1/4, … A summation is a compact notation for the sum of all terms in a (possibly infinite) series. (  )

Discrete Mathematics by Yang-Sae Moon Page 3 Sequences Formally: A sequence {a n } is identified with a generating function f:S  A for some subset S  N (S=N or S=N  {0}) and for some set A. ( 수열 {a n } 은 자연수 집합으로부터 A 로의 함수 …) If f is a generating function for a sequence {a n }, then for n  S, the symbol a n denotes f(n). The index of a n is n. (Or, often i is used.) SA 12341234 a 1 = f(1) a 2 = f(2) a 3 = f(3) a 4 = f(4)  f Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 4 Sequence Examples 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, 1/4, … 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}. Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 5 Recognizing Sequences (1/2) 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. ( 순열의 몇몇 값들에 기반하여 f(n) 을 발견하는 문제에 자주 직면하게 된다.) Examples: What’s the next number and f(n)? 1, 2, 3, 4, … (the next number is 5. f(n) = n 1, 3, 5, 7, … (the next number is 9. f(n) = 2n − 1 Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 6 Recognizing Sequences (2/2) Trouble with recognition (of generating functions) 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. ( 세상에는 시퀀스를 생성하는 셀 수 없이 많은 함수가 존재한다.) Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 7 Summation Notation Given a sequence {a n }, an integer lower bound j  0, and an integer upper bound k  j, then the summation of {a n } from j to k is written and defined as follows: ({a n } 의 j 번째에서 k 번째까지의 합, 즉, a j 로부터 a k 까지의 합 ) Here, i is called the index of summation. Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 8 Generalized Summations For an infinite series, we may write: To sum a function over all members of a set X={x 1, x 2, …}: ( 집합 X 의 모든 원소 x 에 대해서 ) Or, if X={x|P(x)}, we may just write: (P(x) 를 true 로 하는 모든 x 에 대해서 ) Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 9 Summation Examples A simple example An infinite sequence with a finite sum: Using a predicate to define a set of elements to sum over: Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 10 Summation Manipulations (1/2) Some useful identities for summations: (Distributive law) (Application of commutativity) (Index shifting) Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 11 Summation Manipulations (2/2) Some more useful identities for summations: (Grouping) (Order reversal) (Series splitting) Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 12 An Interesting Example “I’m so smart; give me any 2-digit number n, and I’ll add all the numbers from 1 to n in my head in just a few seconds.” (1 에서 n 까지의 합을 수초 내에 계산하겠다 !) I.e., Evaluate the summation: There is a simple formula for the result, discovered by Euler at age 12! Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 13 Euler’s Trick, Illustrated Consider the sum: … + (n/2) + ((n/2)+1) + … + (n-1) + n n/2 pairs of elements, each pair summing to n+1, for a total of (n/2)(n+1). n/2 pairs of elements, each pair summing to n+1, for a total of (n/2)(n+1). ( 합이 n+1 인 두 쌍의 element 가 n/2 개 있다.) … n+1 Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 14 Geometric Progression ( 등비수열 ) A geometric progression is a series of the form a, ar, ar 2, ar 3, …, ar k, where a,r  R. The sum of such a sequence is given by: We can reduce this to closed form via clever manipulation of summations... Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 15 Nested Summations These have the meaning you’d expect. Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 16 Some Shortcut Expressions SumClosed Form Infinite series ( 무한급수 ) Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 17 Using the Shortcuts Example: Evaluate. Use series splitting. Solve for desired summation. Apply quadratic series rule. Evaluate. Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 18 Cardinality: Formal Definition For any two (possibly infinite) sets A and B, we say that A and B have the same cardinality (written |A|=|B|) iff there exists a bijection (bijective function) from A to B. ( 집합 A 에서 집합 B 로의 전단사함수가 존재하면, A 와 B 의 크기는 동일하다.) When A and B are finite, it is easy to see that such a function exists iff A and B have the same number of elements n  N. ( 집합 A, B 가 유한집합이고 동일한 개수의 원소를 가지면, A 와 B 가 동일한 크기 임을 보이는 것은 간단하다.) Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 19 Countable versus Uncountable For any set S, if S is finite or if |S|=|N|, we say S is countable. Else, S is uncountable. ( 유한집합이거나, 자연수 집합과 크기가 동일하면 countable 하며, 그렇지 않으 면 uncountable 하다.) Intuition behind “countable:” we can enumerate (sequentially list) elements of S. Examples: N, Z. ( 집합 S 의 원소에 번호를 매길 수 ( 순차적으로 나열할 수 ) 있다.) Uncountable means: No series of elements of S (even an infinite series) can include all of S’s elements. Examples: R, R 2 ( 어떠한 나열 방법도 집합 S 의 모든 원소를 포함할 수 없다. 즉, 집합 S 의 원소에 번호를 매길 수 있는 방법이 없다.) Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 20 Countable Sets: Examples Theorem: The set Z is countable. Proof: Consider f:Z  N where f(i)=2i for i  0 and f(i) =  2i  1 for i<0. Note f is bijective. (…, f(  2)=3, f(  1)=1, f(0)=0, f(1)=2, f(2)=4, …) Theorem: The set of all ordered pairs of natural numbers (n,m) is countable. (1,1) (1,2) (1,3) (1,4) (1,5) (2,1) (2,2) (2,3) (2,4) (2,5) (3,1) (3,2) (3,3) (3,4) (3,5) (4,1) (4,2) (4,3) (4,4) (4,5) (5,1) (5,2) (5,3) (5,4) (5,5) …………… … … … … … … consider sum is 2, then consider sum is 3, then consider sum is 4, then consider sum is 5, then consider sum is 6, then consider … Note a set of rational numbers is countable! Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 21 Uncountable Sets: Example (1/2) - skip Theorem: The open interval [0,1) :  {r  R| 0  r < 1} is uncountable. ([0,1) 의 실수는 uncountable) Proof by Cantor Assume there is a series {r i } = r 1, r 2,... containing all elements r  [0,1). Consider listing the elements of {r i } in decimal notation in order of increasing index: r 1 = 0.d 1,1 d 1,2 d 1,3 d 1,4 d 1,5 d 1,6 d 1,7 d 1,8 … r 2 = 0.d 2,1 d 2,2 d 2,3 d 2,4 d 2,5 d 2,6 d 2,7 d 2,8 … r 3 = 0.d 3,1 d 3,2 d 3,3 d 3,4 d 3,5 d 3,6 d 3,7 d 3,8 … r 4 = 0.d 4,1 d 4,2 d 4,3 d 4,4 d 4,5 d 4,6 d 4,7 d 4,8 … … Now, consider r’ = 0.d 1 d 2 d 3 d 4 … where d i = 4 if d ii  4 and d i = 5 if d ii = 4. Sequences and Summations

Discrete Mathematics by Yang-Sae Moon Page 22 Uncountable Sets: Example (2/2) - skip E.g., a postulated enumeration of the reals: r 1 = … r 2 = … r 3 = … r 4 = … … OK, now let’s make r’ by replacing d ii by the rule. (Rule: r’ = 0.d 1 d 2 d 3 d 4 … where d i = 4 if d ii  4 and d i = 5 if d ii = 4) r’ = … can’t be on the list anywhere! ( 왜냐면, 4 가 아니면 4 로, 4 이면 5 로 바꾸었기 때문에 ) This means that the assumption({r i } is countable) is wrong, and thus, [0,1), {r i }, is uncountable. Sequences and Summations