CS 250, Discrete Structures, Fall 2011 Nitesh Saxena

Slides:



Advertisements
Similar presentations
CSNB143 – Discrete Structure
Advertisements

Chapter Matrices Matrix Arithmetic
1 Section 7.3 Representing relations (part 1: matrices)
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.
Maths for Computer Graphics
Matrices MSU CSE 260.
Matrices The Basics Vocabulary and basic concepts.
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
Chapter 1: Matrices Definition 1: A matrix is a rectangular array of numbers arranged in horizontal rows and vertical columns. EXAMPLE:
8.4 Matrix Operations Day 1 Thurs May 7 Do Now Solve X – 2y = -6 3x + 4y = 7.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
9/8/2011Lecture Functions1 Lecture 2.4: Functions CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda.
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.
Lecture 3.4: Recursive Algorithms CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph Grunschlag.
Matrices A matrix is a table or array of numbers arranged in rows and columns The order of a matrix is given by stating its dimensions. This is known as.
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.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/21 Module.
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.
Prepared by Deluar Jahan Moloy Lecturer Northern University Bangladesh
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.
Lecture 4.2: Relations Basics CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
Lecture 4.2: Relations CS 250, Discrete Structures, Fall 2013 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
3.4 Solution by Matrices. What is a Matrix? matrix A matrix is a rectangular array of numbers.
Unit 3 Matrix Arithmetic IT Disicipline ITD 1111 Discrete Mathematics & Statistics STDTLP 1 Unit 3 Matrix Arithmetic.
Matrices and Determinants
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
MATRIX A set of numbers arranged in rows and columns enclosed in round or square brackets is called a matrix. The order of a matrix gives the number of.
9/13/2011Lecture Sequences1 Lecture 2.5: Sequences* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph.
Where do you sit?. What is a matrix? How do you classify matrices? How do you identify elements of a matrix?
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.
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
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
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
CSNB 143 Discrete Mathematical Structures
4.5 Matrices.
Discrete Structures – CNS2300
1.5 Matricies.
4.6 Matrices.
L6 matrix operations.
Section 7.4 Matrix Algebra.
Sequences and Summations
2. Matrix Algebra 2.1 Matrix Operations.
MATRICES MATRIX OPERATIONS.
CS 250, Discrete Structures, Fall 2014
CS 250, Discrete Structures, Fall 2015
CS100: Discrete structures
CS 250, Discrete Structures, Fall 2014 Nitesh Saxena
Discrete Mathematics and its Applications
Matrix Operations Ms. Olifer.
CS 250, Discrete Structures, Fall 2015 Nitesh Saxena
Applied Discrete Mathematics Week 4: Functions
Presentation transcript:

CS 250, Discrete Structures, Fall 2011 Nitesh Saxena Lecture 2.6: Matrices* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena 9/15/2011 Lecture 2.6 -- Matrices

Course Admin Mid-Term 1 on Thursday, Sep 22 No lecture on Sep 20 In-class (from 11am-12:15pm) Will cover everything until the lecture on Sep 15 No lecture on Sep 20 As announced previously, I will be traveling to Beijing to attend and present a paper at the Ubicomp 2012 conference This will not affect our overall topic coverage This will also give you more time to prepare for the exam 9/15/2011 Lecture 2.6 -- Matrices

Course Admin HW2 has been posted – due Sep 30 Covers chapter 2 (lectures 2.*) Start working on it, please. Will be helpful in preparation of the mid-term HW1 grading delayed a bit TA/grader was sick with chicken pox Trying to finish as soon as possible HW1 solution has been released 9/15/2011 Lecture 2.6 -- Matrices

Outline Matrix Types of Matrices Matrix Operations 9/15/2011 Lecture 2.6 -- Matrices

Matrix – what it is? A = {aij}, where i = 1, 2, …, m and j = 1, 2,…, n An array of numbers arranged in m horizontal rows and n vertical columns. We say that A is a matrix m x n. (Dimension of matrix) . A = {aij}, where i = 1, 2, …, m and j = 1, 2,…, n 9/15/2011 Lecture 2.6 -- Matrices

Examples Grades obtained by a set of students in different courses can be represented a matrix Average monthly temperature at a set of cities can be represented as a matrix Facebook friend connections for a given set of users can be represented as a matrix … 9/15/2011 Lecture 2.6 -- Matrices

Types of Matrices Square Matrix Number of rows = number of columns Which one(s)of the following is(are) square matrix(ces)? Where is the main diagonal? 9/15/2011 Lecture 2.6 -- Matrices

Types of Matrices Diagonal Matrix “a square matrix in which entries outside the main diagonal area are all zero, the diagonal entries may or may not be zero” 9/15/2011 Lecture 2.6 -- Matrices

Equality of Matrices Two matrices are said to be equal if the corresponding elements are equal. Matrix A = B iff aij = bij Example: If A and B are equal matrices, find the values of a, b, x and y 9/15/2011 Lecture 2.6 -- Matrices

Equality of Matrices Equal Matrices - Work this out If 2. If Find a, b, c, and d Find a, b, c, k, m, x, y, and z 9/15/2011 Lecture 2.6 -- Matrices

Adding two Matrices Matrices Summation The sum of the matrices A and B is defined only when A and B have the same number of rows and the same number of columns (same dimension). C = A + B is defined as {aij + bij} 9/15/2011 Lecture 2.6 -- Matrices

Adding Two Matrices Matrices Summation – work this out a) Identify the pair of which matrices between which the summation process can be executed b) Compute C + G, A + D, E + H, A + F. 9/15/2011 Lecture 2.6 -- Matrices

Multiplying two Matrices Matrices Products Steps before Find out if it is possible to get the products? Find out the result’s dimension Arrange the numbers in an easy way to compute – avoid confusion 9/15/2011 Lecture 2.6 -- Matrices

Multiplying two Matrices Matrices Products – Possible outcomes 9/15/2011 Lecture 2.6 -- Matrices

Multiplying two Matrices Matrices Products – Work this out Let Show that AB is NOT BA (this means that matrix multiplication is not commutative) 9/15/2011 Lecture 2.6 -- Matrices

Matrix Transpose Transposition Matrix A matrix which is formed by turning all the rows of a given matrix into columns and vice-versa. The transpose of matrix A is written AT, and AT = {aji} 9/15/2011 Lecture 2.6 -- Matrices

Matric Transpose Compute (BA)T : Compute AT(D + F) Transposition Matrix – Work this out Compute (BA)T : Compute AT(D + F) 9/15/2011 Lecture 2.6 -- Matrices

Symmetric Matrix Symmetrical Matrix A is said to be symmetric if all entries are symmetrical to its main diagonal. That is, if aij = aji 9/15/2011 Lecture 2.6 -- Matrices

Boolean Matrices Boolean Matrix and Its Operations Boolean matrix is an m x n matrix where all of its entries are either 1 or 0 only. There are three operations on Boolean: Join by Meet Boolean Product 9/15/2011 Lecture 2.6 -- Matrices

Boolean Matrices Boolean Matrix and Its Operations – Join By Given A = [aij] and B = [bij] are Boolean matrices with the same dimension, join by A and B, written as A  B, will produce a matrix C = [cij], where cij = aij  bij 9/15/2011 Lecture 2.6 -- Matrices

Boolean Matrices Boolean Matrix and Its Operations – Meet Meet for A and B, both with the same dimension, written as A  B, will produce matrix D = [dij] where dij = aij  bij 9/15/2011 Lecture 2.6 -- Matrices

Boolean Matrices Boolean Matrix and Its Operations – Boolean Products If A = [aij] is an m x p Boolean matrix, and B = [bij] is a p x n Boolean matrix, we can get a Boolean product for A and B written as A ⊙ B, producing C, where: 9/15/2011 Lecture 2.6 -- Matrices

Boolean Matrices 9/15/2011 Lecture 2.6 -- Matrices

Boolean Matrices Work this out 9/15/2011 Lecture 2.6 -- Matrices

Today’s Reading Rosen 2.6 9/15/2011 Lecture 2.6 -- Matrices