Sequences and Summations

Slides:



Advertisements
Similar presentations
CSNB143 – Discrete Structure
Advertisements

Chapter Matrices Matrix Arithmetic
Mathematics. Matrices and Determinants-1 Session.
“No one can be told what the matrix is…
Matrices MSU CSE 260.
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
MATRICES. Matrices A matrix is a rectangular array of objects (usually numbers) arranged in m horizontal rows and n vertical columns. A matrix with m.
3.8 Matrices.
Functions Section 2.3.
CSE 504 Discrete Mathematics & Foundations of Computer Science
February 25, 2002Applied Discrete Mathematics Week 5: Mathematical Reasoning 1 Addition of Integers How do we (humans) add two integers? Example: 7583.
Lecture 7 Matrices CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Chapter 4 – Matrix CSNB 143 Discrete Mathematical Structures.
Functions Section 2.3.
If A and B are both m × n matrices then the sum of A and B, denoted A + B, is a matrix obtained by adding corresponding elements of A and B. add these.
Functions Section 2.3.
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
CSCI 171 Presentation 9 Matrix Theory. Matrix – Rectangular array –i th row, j th column, i,j element –Square matrix, diagonal –Diagonal matrix –Equality.
Matrices Section 2.6. Section Summary Definition of a Matrix Matrix Arithmetic Transposes and Powers of Arithmetic Zero-One matrices.
Chapter 2 … part1 Matrices Linear Algebra S 1. Ch2_2 2.1 Addition, Scalar Multiplication, and Multiplication of Matrices Definition A matrix is a rectangular.
CSNB143 – Discrete Structure Topic 3 – Matrices. Learning Outcomes Students should understand all matrices operations. Students should be able to differentiate.
CompSci 102 Discrete Math for Computer Science February 7, 2012 Prof. Rodger Slides modified from Rosen.
Greatest Common Divisors & Least Common Multiples  Definition 4 Let a and b be integers, not both zero. The largest integer d such that d|a and d|b is.
1.3 Matrices and Matrix Operations. A matrix is a rectangular array of numbers. The numbers in the arry are called the Entries in the matrix. The size.
Copyright © Cengage Learning. All rights reserved. 2 SYSTEMS OF LINEAR EQUATIONS AND MATRICES.
Af2. The Queen Mother says “ Please be quite and let Patrick give the lecture. Thank you.”
Section Section Summary Definition of a Function. Domain, Codomain Image, Preimage Injection, Surjection, Bijection Inverse Function Function Composition.
Section 2.4. Section Summary  Sequences. o Examples: Geometric Progression, Arithmetic Progression  Recurrence Relations o Example: Fibonacci Sequence.
CS 285- Discrete Mathematics Lecture 11. Section 3.8 Matrices Introduction Matrix Arithmetic Transposes and Power of Matrices Zero – One Matrices Boolean.
A very brief introduction to Matrix (Section 2.7) Definitions Some properties Basic matrix operations Zero-One (Boolean) matrices.
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
Matrices. Matrix A matrix is an ordered rectangular array of numbers. The entry in the i th row and j th column is denoted by a ij. Ex. 4 Columns 3 Rows.
Linear Algebra by Dr. Shorouk Ossama.
MTH108 Business Math I Lecture 20.
CSE15 Discrete Mathematics 03/01/17
CSE 504 Discrete Mathematics & Foundations of Computer Science
CSNB 143 Discrete Mathematical Structures
3.8 Matrices L Al-zaid Math1101.
4.5 Matrices.
Matrices and Matrix Operations
Properties and Applications of Matrices
Boyce/DiPrima 10th ed, Ch 7.2: Review of Matrices Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and.
MATRICES.
1.4 Inverses; Rules of Matrix Arithmetic
Discrete Structures – CNS2300
Applied Discrete Mathematics Week 5: Mathematical Reasoning
MATHEMATICS Matrix Algebra
4.6 Matrices.
MATHEMATICS Matrix Multiplication
L5 matrix.
Matrices and Systems of Equations 8.1
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Rosen 5th ed., §2.7 ~18 slides, ~1 lecture
Section 7.4 Matrix Algebra.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Functions Section 2.3.
Section 2.4 Matrices.
CS100: Discrete structures
Matrices and Matrix Operations
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc.
Properties of Relations
Section 9.4 Matrix Operations
Discrete Mathematics and its Applications
Matrix Addition, C = A + B Add corresponding elements of each matrix to form elements of result matrix. Given elements of A as ai,j and elements of B as.
Rosen 5th ed., §2.7 ~18 slides, ~1 lecture
3.8 Matrices L Al-zaid Math1101.
Applied Discrete Mathematics Week 4: Functions
Matrices and Determinants
Presentation transcript:

Sequences and Summations Section 2.4

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

Sequences Definition1: A sequence is a function from a subset of the integers (usually either the set {0, 1, 2, 3, 4, …..} or {1, 2, 3, 4, ….} ) to a set S. The notation an is used to denote the image of the integer n. We can think of an as the equivalent of f(n) where f is a function from {0,1,2,…..} to S. We call an a term of the sequence. A sequence is a discrete structure used to represent an ordered list. 1,2,3,5,8 is a finite sequence, 1,3,9,27,…,3n,… is an finite sequence Example: consider the sequence {an}, where an=1/n, list the first four items of the sequence. Solution: 1,1/2,1/3,1/4

Geometric Progression Definition 2: A geometric progression is a sequence of the form: where the initial term a and the common ratio r are real numbers. Examples: Let a = 1 and r = −1. Then: Let a = 2 and r = 5. Then:

Arithmetic Progression Definition 3: A arithmetic progression is a sequence of the form: where the initial term a and the common difference d are real numbers. Examples: Let a = −1 and d = 4: Let a = 1 and d = 2:

Section Summary Definition of a Matrix Matrix Arithmetic Transposes and Powers of Arithmetic Zero-One matrices

Matrix Definition 1: A matrix is a rectangular array of numbers. A matrix with m rows and n columns is called an m⨉n matrix. The plural of matrix is matrices. A matrix with the same number of rows as columns is called square. Two matrices are equal if they have the same number of rows and the same number of columns and the corresponding entries in every position are equal. 3 ⨉ 2 matrix

Notation Let m and n be positive integers and let The ith row of A is the 1 ⨉ n matrix [ai1, ai2,…,ain]. The jth column of A is the m ⨉ 1 matrix: The (i,j)th element or entry of A is the element aij. We can use A = [aij ] to denote the matrix with its (i,j)th element equal to aij.

Matrix Arithmetic: Addition Definition 3: Let A = [aij] and B = [bij] be m ⨉ n matrices. The sum of A and B, denoted by A + B, is the m ⨉ n matrix that has aij + bij as its (i,j)th element. In other words, A + B = [aij + bij]. Example: Note that matrices of different sizes can not be added.

Matrix Multiplication Definition 4: Let A be an m ⨉ k matrix and B be a k ⨉ n matrix. The product of A and B, denoted by A ⨉ B, is the m ⨉ n matrix that has its (i,j)th element equal to the sum of the products of the corresponding elments from the ith row of A and the jth column of B. In other words, if AB = [cij] then cij = ai1b1j + ai2b2j + … + akjb2j. Example: The product of two matrices is undefined when the number of columns in the first matrix is not the same as the number of rows in the second. ⨉ =

Illustration of Matrix Multiplication The Product of A = [aij] and B = [bij]

Matrix Multiplication is not Commutative Example: Let Does AB = BA? Solution: AB ≠ BA

Identity Matrix and Powers of Matrices Definition 5: The identity matrix of order n is the n ⨉ n matrix In = [ij], where ij = 1 if i = j and ij = 0 if i≠j. when A is an m n matrix , AIn = ImA = A Powers of square matrices can be defined. When A is an n  n matrix, we have: A0 = In Ar = AAA∙∙∙A r times

Transposes of Matrices Definition 6: Let A = [aij] be an m ⨉ n matrix. The transpose of A, denoted by At ,is the n ⨉ m matrix obtained by interchanging the rows and columns of A. If At = [bij], then bij = aji for i =1,2,…,n and j = 1,2, ...,m.

Transposes of Matrices Definition 7: A square matrix A is called symmetric if A = At. Thus A = [aij] is symmetric if aij = aji for i and j with 1≤ i≤ n and 1≤ j≤ n. Square matrices do not change when their rows and columns are interchanged.

Zero-One Matrices A matrix all of whose entries are either 0 or 1 is called a zero-one matrix. Algorithms operating on discrete structures represented by zero-one matrices are based on Boolean arithmetic defined by the following Boolean operations:

Zero-One Matrices Definition 8: Let A = [aij] and B = [bij] be an m  n zero-one matrices. The join of A and B is the zero-one matrix with (i,j)th entry aij ∨ bij. The join of A and B is denoted by A ∨ B. The meet of A and B is the zero-one matrix with (i,j)th entry aij ∧ bij. The meet of A and B is denoted by A ∧ B.

Joins and Meets of Zero-One Matrices Example: Find the join and meet of the zero-one matrices Solution: The join of A and B is The meet of A and B is

Boolean Product of Zero-One Matrices Definition 9: Let A = [aij] be an m  k zero-one matrix and B = [bij] be a k  n zero-one matrix. The Boolean product of A and B, denoted by A ⊙ B, is the m  n zero-one matrix with(i,j)th entry cij = (ai1 ∧ b1j)∨ (ai2 ∧ b2j) ∨ … ∨ (aik ∧ bkj). Example: Find the Boolean product of A and B, where

Boolean Powers of Zero-One Matrices Definition 10: Let A be a square zero-one matrix and let r be a positive integer. The rth Boolean power of A is the Boolean product of r factors of A, denoted by A[r]. Hence, We define A[0] to be In. The Boolean product is well defined because the Boolean product of matrices is associative.

Boolean Powers of Zero-One Matrices Example: Let Find An for all positive integers n. Solution: