Matrices An appeaser is one who feeds a crocodile—hoping it will eat him last. Winston Churchhill.

Slides:



Advertisements
Similar presentations
4.1 Introduction to Matrices
Advertisements

Further Pure 1 Matrices Introduction. Definitions A matrix is just a rectangle of numbers. It’s a bit like a two-way table. You meet this concept in D1.
Data Structures: Doubly Linked List1 Doubly linked list l The linear linked list is accessed from the first node each time we want to insert or delete.
Matrices. Special Matrices Matrix Addition and Subtraction Example.
Matrices. Outline What is a matrix? Size of matrices Addition of matrices Scalar multiplication Matrices multiplication.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Matrices The Basics Vocabulary and basic concepts.
Table of Contents Matrices - Multiplication Assume that matrix A is of order m  n and matrix B is of order p  q. To determine whether or not A can be.
MATRICES MATRIX OPERATIONS. About Matrices  A matrix is a rectangular arrangement of numbers in rows and columns. Rows run horizontally and columns run.
8.4 Matrix Operations Day 1 Thurs May 7 Do Now Solve X – 2y = -6 3x + 4y = 7.
Matrices Write and Augmented Matrix of a system of Linear Equations Write the system from the augmented matrix Solve Systems of Linear Equations using.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall.
Chapter 4 Matrices By: Matt Raimondi.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Lecture 7 Matrices CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
The Determinant of a Matrix Note: The determinant of a matrix can be positive, zero, or negative. Chapter 3 Determinants.
How to Multiply Two Matrices. Steps for Matrix Multiplication 1.Determine whether the matrices are compatible. 2.Determine the dimensions of the product.
Matrices: Simplifying Algebraic Expressions Combining Like Terms & Distributive Property.
MATRICES MATRIX OPERATIONS. About Matrices  A matrix is a rectangular arrangement of numbers in rows and columns. Rows run horizontally and columns run.
Algebra Matrix Operations. Definition Matrix-A rectangular arrangement of numbers in rows and columns Dimensions- number of rows then columns Entries-
Warm Up Perform the indicated operations. If the matrix does not exist, write impossible
Two dimensional arrays A two dimensional m x n array A is a collection of m. n elements such that each element is specified by a pair of integers (such.
Notes Over 4.2 Finding the Product of Two Matrices Find the product. If it is not defined, state the reason. To multiply matrices, the number of columns.
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
Matrices.
Solving Systems of Equations Using Matrices
13.4 Product of Two Matrices
Matrices and Matrix Operations
Linear Algebraic Equations and Matrices
Matrices Rules & Operations.
Matrix Operations Free powerpoints at
1.5 Matricies.
Matrices - Addition and Subtraction
More Linking Up with Linked Lists
Matrix Operations Free powerpoints at
Linear Algebraic Equations and Matrices
Matrix Operations Monday, August 06, 2018.
Matrix Operations.
Matrix Operations Add and Subtract Matrices Multiply Matrices
Chapter 8: Lesson 8.1 Matrices & Systems of Equations
Matrix Operations SpringSemester 2017.
Reminder: Array Representation In C++
Matrix Operations Free powerpoints at
Agenda Textbook / Web Based Resource Basics of Matrices Classwork
Warm-up a. Solve for k: 13 −5
7.3 Matrices.
MATRICES MATRIX OPERATIONS.
Reminder: Array Representation In C++
Introduction to Matrices
Matrices Elements, Adding and Subtracting
MATRICES MATRIX OPERATIONS.
Digital Image Processing
Unit 3: Matrices
Sparse matrices, hash tables, cell arrays
MATRICES MATRIX OPERATIONS.
2.2 Introduction to Matrices
RECORD. RECORD COLLABORATE: Discuss: Is the statement below correct? Try a 2x2 example.
Gaussian Elimination.
Matrix Operations Chapter 4, Sections 1, 2, 3.
3.6 Multiply Matrices.
1.8 Matrices.
MATRICES MATRIX OPERATIONS.
MATRICES MATRIX OPERATIONS.
Matrix Operations Ms. Olifer.
Matrix Operations SpringSemester 2017.
Reminder: Array Representation In C++
1.8 Matrices.
Introduction to Matrices
Announcements.
Presentation transcript:

Matrices An appeaser is one who feeds a crocodile—hoping it will eat him last. Winston Churchhill

Types of Sparse Matrices Random Distribution.

Types of Sparse Matrices Cont... Multiple bands Vertical Banding: Diagonal Horizontal

Types of Sparse Matrices Cont... Blocking: Corners Diagonal

Bit Map Compression B Z 5 2 4 9 6 1 3 8 R 1 3 5 6 8 Compressed Matrix Raw Matrix B Z 5 2 4 9 6 1 3 8 R 1 3 5 6 8

Address Map Compression Compressed Matrix Raw Matrix A 1 2 3 4 5 6 7 8 Array Index Z 5 2 4 9 6 1 3 8 R 0 2 4 5 7

Dealing with Empty Rows R must contain place holders into Z. Values are set to next non empty row. Z 5 2 4 9 8 1 3 5 5 5 R

Dealing with Empty Rows When a value is entered in row r Values in Z belonging to r +1 and above are shifted right. Row index in R is also adjusted +1 for rows above r In practice, R would contain a dummy column at the end so the last row is not special cased. 7 Z 5 2 4 9 7 8 1 1 3 5 5 6 R

Orthogonal Linked Lists Data Down Row Col Right Nodes used in the structure Matrix indices. Right & down pointers. Each non-zero entry to the left will be represented by the above node structure. Structure is linked together using the pointer fields

0 1 12 10 5 0 2 0 8 0 6 0 0 6 0 9 0 2 11 0 0 4 5 2 2 2 2 9 4 5 1 9 5 4 6 6 6 1 8 1 3 8 9 8 11 2

Adding [6,4] Find correct row Add Links Find correct Column Add links 0 1 12 10 5 0 2 0 8 0 6 0 0 6 0 9 0 2 11 0 0 4 Adding [6,4] 5 2 2 2 2 9 NEW 6 4 Find correct row Add Links 4 5 1 9 5 4 6 6 6 1 8 1 3 8 9 8 11 2

Relative Compression of Sparse Matrix