Discrete Structures – CNS2300

Slides:



Advertisements
Similar presentations
Review of Ch. 3—Matrices end of section 3.8 This material is a prereq for the second half of ch. 8 on relations.
Advertisements

CSNB143 – Discrete Structure
Chapter Matrices Matrix Arithmetic
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.
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.
CALCULUS – II Matrix Multiplication by Dr. Eman Saad & Dr. Shorouk Ossama.
“No one can be told what the matrix is…
Matrices MSU CSE 260.
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.
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
Chapter 3: The Fundamentals: Algorithms, the Integers, and Matrices
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.
Algebra 3: Section 5.5 Objectives of this Section Find the Sum and Difference of Two Matrices Find Scalar Multiples of a Matrix Find the Product of Two.
13.1 Matrices and Their Sums
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.
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.
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.
MATRICES Operations with Matrices Properties of Matrix Operations
Af2. The Queen Mother says “ Please be quite and let Patrick give the lecture. Thank you.”
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.
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.
Linear Algebra by Dr. Shorouk Ossama.
2.3 Modeling Real World Data with Matrices
MTH108 Business Math I Lecture 20.
CSE15 Discrete Mathematics 03/01/17
The Euclidean Algorithm
CSE 504 Discrete Mathematics & Foundations of Computer Science
CSNB 143 Discrete Mathematical Structures
3.8 Matrices L Al-zaid Math1101.
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.
nhaa/imk/sem /eqt101/rk12/32
MATRICES.
Applied Discrete Mathematics Week 5: Mathematical Reasoning
1.5 Matricies.
MATHEMATICS Matrix Algebra
MATHEMATICS Matrix Multiplication
L5 matrix.
Dr. Ameria Eldosoky Discrete mathematics
Applied Discrete Mathematics Week 4: Number Theory
Rosen 5th ed., §2.7 ~18 slides, ~1 lecture
Section 7.4 Matrix Algebra.
Sequences and Summations
2. Matrix Algebra 2.1 Matrix Operations.
Section 2.4 Matrices.
Matrices Introduction.
CS100: Discrete structures
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc.
[MATRICES ].
Discrete Mathematics and its Applications
Rosen 5th ed., §2.7 ~18 slides, ~1 lecture
[MATRICES ].
3.8 Matrices L Al-zaid Math1101.
Applied Discrete Mathematics Week 4: Functions
Matrices and Determinants
Presentation transcript:

Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5th Edition) Chapter 2 The Fundamentals: Algorithms, the Integers, and Matrices

Section 2.7 Matrices

Matrix Definition A matrix is a rectangular array of numbers. A matrix with m rows and n columns is called an mxn 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.

Examples 3x2 2x3 2x2 1x5

Sum of two matrices Let A = [aij] and B = [bij] be mxn matrices. The sum of A and B, is the mxn matrix that has aij + bij as its (i,j)th element. In other words, A + B = [aij + bij].

Examples

Examples Not Possible

Matrix Multiplication Let A be an mxk matrix and B be a kxn matrix. The product of A and B, denoted by AB, is the mxn matrix with (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

Example 3x3 3x2 2x3

Example 3x3 3x2 2x3

Example 3x2 2x3 3x3

Example 3x2 2x3 3x3

Algorithm procedure matrix multiplication(A,B:matrices) for i:=1 to m begin for j:=1 to n begin cij := 0 for q := 1 to k cij := cij + aiqbqj end end

Identity Matrix Exist as square matrices. AI = IA = A

Transpose of a matrix The transpose of a square matrix A is labeled AT and is found by interchanging rows and columns.

Symmetric Matrices A square matrix A is called symmetric if A = AT.

Zero-one Matrices

Join of two zero-one matrices

Join

Meet of two zero-one matrices

Boolean Product

Algorithm procedure matrix booleanProduct(A,B:matrices) for i:=1 to m begin for j:=1 to n begin cij := 0 for q := 1 to k cij := cij || aiq&&bqj end end

Boolean Product =

finished