Chapter Matrices Matrix Arithmetic

Slides:



Advertisements
Similar presentations
CSNB143 – Discrete Structure
Advertisements

February 26, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1 Addition of Integers Example: Add a = (1110) 2 and b = (1011) 2. a 0 + b.
Applied Informatics Štefan BEREŽNÝ
1 Section 7.3 Representing relations (part 1: matrices)
Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
Matrix Definition: An array of numbers in m rows and n colums is called an mxn matrix A square matrix of order n, is an (nxn) matrix.
Mathematics. Matrices and Determinants-1 Session.
1 Matrices Rosen 6 th ed., §3.8 2 Matrices A matrix is a rectangular array of numbers.A matrix is a rectangular array of numbers. An m  n (“m by n”)
CALCULUS – II Matrix Multiplication by Dr. Eman Saad & Dr. Shorouk Ossama.
“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.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
3.8 Matrices.
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.
ECON 1150 Matrix Operations Special Matrices
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Chapter 3: The Fundamentals: Algorithms, the Integers, and Matrices
Matrices & Determinants Chapter: 1 Matrices & Determinants.
Chapter 8 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Matrix Operations and Their Applications.
Matrices. A matrix, A, is a rectangular collection of numbers. A matrix with “m” rows and “n” columns is said to have order m x n. Each entry, or element,
Lecture 7 Matrices CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Chapter 4 – Matrix CSNB 143 Discrete Mathematical Structures.
Company LOGO Chapter 1: Matrix, Determinant, System of linear equations Module 1: Matrix Natural Science Department Example 1: The following rectangular.
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.
Matrices Matrices A matrix (say MAY-trix) is a rectan- gular array of objects (usually numbers). An m  n (“m by n”) matrix has exactly m horizontal.
2009/9 1 Matrices(§3.8)  A matrix is a rectangular array of objects (usually numbers).  An m  n (“m by n”) matrix has exactly m horizontal rows, and.
Module #9: Matrices Rosen 5 th ed., §2.7 Now we are moving on to matrices, section 7.
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
Chapter 6 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Matrix Operations and Their Applications.
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.
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.
Chapter 2 Determinants. With each square matrix it is possible to associate a real number called the determinant of the matrix. The value of this number.
Unit 3 Matrix Arithmetic IT Disicipline ITD 1111 Discrete Mathematics & Statistics STDTLP 1 Unit 3 Matrix Arithmetic.
Copyright © Cengage Learning. All rights reserved. 2 SYSTEMS OF LINEAR EQUATIONS AND MATRICES.
Matrices and Determinants
Table of Contents Matrices - Definition and Notation A matrix is a rectangular array of numbers. Consider the following matrix: Matrix B has 3 rows and.
Section 2.4. Section Summary  Sequences. o Examples: Geometric Progression, Arithmetic Progression  Recurrence Relations o Example: Fibonacci Sequence.
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
CS 285- Discrete Mathematics Lecture 11. Section 3.8 Matrices Introduction Matrix Arithmetic Transposes and Power of Matrices Zero – One Matrices Boolean.
Introduction Types of Matrices Operations
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.
2.1 Matrix Operations 2. Matrix Algebra. j -th column i -th row Diagonal entries Diagonal matrix : a square matrix whose nondiagonal entries are zero.
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.
MTH108 Business Math I Lecture 20.
CSE 504 Discrete Mathematics & Foundations of Computer Science
3.8 Matrices L Al-zaid Math1101.
Properties and Applications of Matrices
MATRICES.
Discrete Structures – CNS2300
1.5 Matricies.
Section 7.4 Matrix Algebra.
Sequences and Summations
2. Matrix Algebra 2.1 Matrix Operations.
Section 2.4 Matrices.
CS100: Discrete structures
3.8 Matrices L Al-zaid Math1101.
Applied Discrete Mathematics Week 4: Functions
Presentation transcript:

Chapter 3 3.8 Matrices Matrix Arithmetic Algorithms for Matrix Multiplication Transposes and Powers of Matrices Zero-One Matrices

Matrix Arithmetic 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.

Matrix Arithmetic Definition 2: Let The ith row of A is the 1 x n matrix [ai1,ai2,. . .,ain]. The jth column of A is the n x 1 matrix The (i, j)th element or entry of is the element aij , that is , the number in the ith row and jth column of A. A convenient shorthand notation for expressing the matrix A is to write A =[aij], which indicates that A is the matrix with its (i, j)th element equal to aij.

Matrix Arithmetic Definition 3: Let A=[aij] and B=[bij] be m x n matrices. The sum of A and B, denoted by A+B, is the m x n matrix that has aij+bij as its (i, j)th element. In other words, A+B= [aij+bij]. Example 2: we have

cij = ai1b1j + ai2b2j +. . . +aikbkj Matrix Arithmetic Definition 4: Let A be an m x k matrix and B be k x n matrix. The product of A and B, denoted by AB, is the m x n matrix with its (i , j )th entry equal to the sum of the products of the corresponding elements from the ith row of A and the jth column of B. In other words, if AB=[cij], then cij = ai1b1j + ai2b2j +. . . +aikbkj

Matrix Arithmetic

Algorithms for Matrix Multiplication Algorithm 1 : Matrix Multiplication procedure matrix multiplication (A, B: matrices) for i := 1 to m for j := 1 to n begin cij :=0 for q := 1 to k cij :=cij + aiqbqj end {C= [cij] is the product of A and B} Example 6: In which order should the matrices A1, A2, and A3, where A1 is 30x20 , A2 is 20x40 , A3 is 40x10, all with integer entries – be multiplied to use the least number of multiplications of integers?

Transposes and Powers of Matrices Definition 5: the identity matrix of order n is the n x n matrix In = [δij] where δij =1 if i = j and δij = 0 if i ≠ j. Hence,

Transposes and Powers of Matrices Definition 6: Let A=[aij] be an m x n matrix. The transpose of A, denoted by At, is the n x m matrix obtained by interchanging the rows and columns of A . In other words, if At=[bij], then bij = aji for i=1,2,. . .,n and j = 1,2,. . .,m . Definition 7: A square matrix A is called symmetric if A = At. Thus A =[aij] is symmetric if aij = aji for all i and j with 1≤ i ≤ n and 1 ≤ j ≤ n .

Symmetric Matrix

Zero-One Matrices Definition 8: Let A=[aij] and B=[bij] be m x n zero-one matrices. Then the join of A and B is the zero-one matrix with (i , j )th entry aij v bij. The join of A and B is denoted by A v 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.

Zero-One Matrices Definition 9: Let A=[aij] be an m x k zero-one matrix and B=[bij] be a k x n zero-one matrix . Then the boolean product of A and B,denote by A⊙B , is the m x n matrix with with (i , j)th entry cij where Example 10: find the Boolean product of A and B, where

Zero-One Matrices Algorithm 2: The Boolean Product procedure Boolean product(A, B: zero-one matrices) for i := 1 to m for j := 1 to n begin cij :=0 for q := 1 to k end {C= [cij] is the Boolean product of A and B}

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

Zero-One Matrices Example 11: Let . Find A[n] for all positive integers n.