1 Friday, November 03, 2006 “The greatest obstacle to discovery is not ignorance, but the illusion of knowledge.” -D. Boorstin.

Slides:



Advertisements
Similar presentations
Lecture 19: Parallel Algorithms
Advertisements

Example 1 Matrix Solution of Linear Systems Chapter 7.2 Use matrix row operations to solve the system of equations  2009 PBLPathways.
Dense Matrix Algorithms. Topic Overview Matrix-Vector Multiplication Matrix-Matrix Multiplication Solving a System of Linear Equations.
Linear Systems LU Factorization CSE 541 Roger Crawfis.
CS 484. Dense Matrix Algorithms There are two types of Matrices Dense (Full) Sparse We will consider matrices that are Dense Square.
1 Parallel Algorithms II Topics: matrix and graph algorithms.
Linear Systems of Equations
Lecture 7 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
1 Simultaneous Linear Equations Gaussian Elimination.
Stanford University CS243 Winter 2006 Wei Li 1 Loop Transformations and Locality.
Avoiding Communication in Sparse Iterative Solvers Erin Carson Nick Knight CS294, Fall 2011.
CS 584. Dense Matrix Algorithms There are two types of Matrices Dense (Full) Sparse We will consider matrices that are Dense Square.
1/26 Design of parallel algorithms Linear equations Jari Porras.
Dense Matrix Algorithms CS 524 – High-Performance Computing.
Systems of Linear Equations Vocabulary. This is a System of Linear Equations.
EXAMPLE 2 Solve a matrix equation SOLUTION Begin by finding the inverse of A = Solve the matrix equation AX = B for the 2 × 2 matrix X. 2 –7 –1.
Assignment Solving System of Linear Equations Using MPI Phạm Trần Vũ.
ITERATIVE TECHNIQUES FOR SOLVING NON-LINEAR SYSTEMS (AND LINEAR SYSTEMS)
Scientific Computing Linear Systems – LU Factorization.
AN INTRODUCTION TO ELEMENTARY ROW OPERATIONS Tools to Solve Matrices.
Math 201 for Management Students
Linear Systems Gaussian Elimination CSE 541 Roger Crawfis.
Matrix Solutions to Linear Systems. 1. Write the augmented matrix for each system of linear equations.
Solving Systems of 3 or More Variables Why a Matrix? In previous math classes you solved systems of two linear equations using the following method:
CS 584 l Assignment. Systems of Linear Equations l A linear equation in n variables has the form l A set of linear equations is called a system. l A solution.
6.5 – Applying Systems of Linear Equations
System of Linear Equations with One Solution Solve the given system of linear equations by graphing both equations on the same integer screen. 1. The point.
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M
Solving Systems Using Elimination
Math /4.2/4.3 – Solving Systems of Linear Equations 1.
Solving Linear Systems Solving linear systems Ax = b is one part of numerical linear algebra, and involves manipulating the rows of a matrix. Solving linear.
Chapter 1: Systems of Linear Equations and Matrices
Linear Algebra Diyako Ghaderyan 1 Contents:  Linear Equations in Linear Algebra  Matrix Algebra  Determinants  Vector Spaces  Eigenvalues.
1 ECE 1304 Introduction to Electrical and Computer Engineering Section 1.7 Linear Algebra with MATLAB.
CS 484. Iterative Methods n Gaussian elimination is considered to be a direct method to solve a system. n An indirect method produces a sequence of values.
Dense Linear Algebra Sathish Vadhiyar. Gaussian Elimination - Review Version 1 for each column i zero it out below the diagonal by adding multiples of.
click to start Example: A LINEAR TRANSFORMATION.
Linear Algebra Diyako Ghaderyan 1 Contents:  Linear Equations in Linear Algebra  Matrix Algebra  Determinants  Vector Spaces  Eigenvalues.
Section 9.3 Systems of Linear Equations in Several Variables Objectives: Solving systems of linear equations using Gaussian elimination.
SOLVING SYSTEMS USING ELIMINATION 6-3. Solve the linear system using elimination. 5x – 6y = -32 3x + 6y = 48 (2, 7)
1.1 The row picture of a linear system with 3 variables.
2 2.5 © 2016 Pearson Education, Ltd. Matrix Algebra MATRIX FACTORIZATIONS.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
GEOMETRIC CAMERA CALIBRATION The Calibration Problem Least-Squares Techniques Linear Calibration from Points Reading: Chapter 3.
Sinwook Lee Digital Media Lab. HYU.  Linear Equations  To gain the appropriate solution, 1..n of equations are necessary.  The num of equations < n.
PRE-AP PRE-CALCULUS CHAPTER 7, SECTION 3 Multivariate Linear Systems and Row Operations
Numerical Computation Lecture 6: Linear Systems – part II United International College.
Section 6-1: Multivariate Linear Systems and Row Operations A multivariate linear system (also multivariable linear system) is a system of linear equations.
An Introduction to Matrix Algebra Math 2240 Appalachian State University Dr. Ginn.
Multivariable Linear Systems and Row Operations
PreCalculus Section 14.3 Solve linear equations using matrices
Spring Dr. Jehad Al Dallal
Linear Systems November 28, 2016.
Lecture 22: Parallel Algorithms
Solving Linear Systems Algebraically
Inconsistent and Dependent Systems and Their Applications
Warm-up: Find the equation of the parabola y = ax2 + bx + c that passes through the given points: (-1, 4), (1, -6), (2, -5) CW: 7.1 – 7.3 Systems Quiz.
Matrix Solutions to Linear Systems
Review of Matrix Algebra
Numerical Computation and Optimization
Numerical Analysis Lecture10.
ARRAY DIVISION Identity matrix Islamic University of Gaza
Dense Linear Algebra (Data Distributions)
Systems of Equations Solve by Graphing.
To accompany the text “Introduction to Parallel Computing”,
Example 2B: Solving Linear Systems by Elimination
7.1 Solving Systems of Equations
Solving a System of Linear Equations
Multiply by 5/40 and sum with 2nd row
Major: All Engineering Majors Authors: Autar Kaw
Presentation transcript:

1 Friday, November 03, 2006 “The greatest obstacle to discovery is not ignorance, but the illusion of knowledge.” -D. Boorstin

2 Solving a System of Linear Equations §This is written as Ax = b, where A is an n x n matrix with A[i, j] = a i,j, b is an n x 1 vector [ b 0, b 1, …, b n ] T, and x is the solution.

3 Solving a System of Linear Equations We write this as: Ux = y. A commonly used method for transforming a given matrix into an upper-triangular matrix is Gaussian Elimination.

4 A 00 A 01 A 02 A 03 A 10 A 11 A 12 A 13 A 20 A 21 A 22 A 23 A 30 A 31 A 32 A 33

5 A 00 A 01 A 02 A 03 A 10 A 11 A 12 A 13 A 20 A 21 A 22 A 23 A 30 A 31 A 32 A 33

6 1A 01 / A 00 A 02 / A 00 A 03 / A 00 A 10 A 11 A 12 A 13 A 20 A 21 A 22 A 23 A 30 A 31 A 32 A 33

7 1A 01 / A 00 A 02 / A 00 A 03 / A 00 A 10 A 11 A 12 A 13 A 20 A 21 A 22 A 23 A 30 A 31 A 32 A 33

8 1A 01 / A 00 A 02 / A 00 A 03 / A 00 0A` 11 A` 12 A` 13 A 20 A 21 A 22 A 23 A 30 A 31 A 32 A 33

9 1A 01 / A 00 A 02 / A 00 A 03 / A 00 0A` 11 A` 12 A` 13 0A` 21 A` 22 A` 23 A 30 A 31 A 32 A 33

10 1A 01 / A 00 A 02 / A 00 A 03 / A 00 0A` 11 A` 12 A` 13 0A` 21 A` 22 A` 23 0A` 31 A` 32 A` 33 k+1 to n-1 1 to 3

11 1A 01 / A 00 A 02 / A 00 A 03 / A 00 01A` 12 A` 13 00A` 22 A` 23 00A` 32 A` 33 k+1 to n-1 2 to 3

12 1A 01 / A 00 A 02 / A 00 A 03 / A 00 01A` 12 A` A` A` 33 k+1 to n-1 3 to 3

13

14 Gaussian Elimination Serial Gaussian Elimination

15 Gaussian Elimination §What are the opportunities of parallelization?

16 Gaussian Elimination §1-D partitioning §Pi stores elements A[i,j] for 0<=j<=n

17 n Division Step

18

19 Elimination Step

20 Overall parallel runtime

21 §Idle processes in previous algorithm?

22 §Pipelined communication.

23 A 00 A 01 A 02 A 03 A 04 A 10 A 11 A 12 A 13 A 14 A 20 A 21 A 22 A 23 A 24 A 30 A 31 A 32 A 33 A 34 A 40 A 41 A 42 A 43 A 44 Division step k=0 Elimination step k=0 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2 Iteration k=0 has started

24 1A 01 A 02 A 03 A 04 A 10 A 11 A 12 A 13 A 14 A 20 A 21 A 22 A 23 A 24 A 30 A 31 A 32 A 33 A 34 A 40 A 41 A 42 A 43 A 44 Division step k=0 Elimination step k=0 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2

25 1A 01 A 02 A 03 A 04 A 10 A 11 A 12 A 13 A 14 A 20 A 21 A 22 A 23 A 24 A 30 A 31 A 32 A 33 A 34 A 40 A 41 A 42 A 43 A 44 Division step k=0 Elimination step k=0 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2

26 1A 01 A 02 A 03 A 04 A 10 A 11 A 12 A 13 A 14 A 20 A 21 A 22 A 23 A 24 A 30 A 31 A 32 A 33 A 34 A 40 A 41 A 42 A 43 A 44 Division step k=0 Elimination step k=0 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2

27 1A 01 A 02 A 03 A 04 0A 11 A 12 A 13 A 14 A 20 A 21 A 22 A 23 A 24 A 30 A 31 A 32 A 33 A 34 A 40 A 41 A 42 A 43 A 44 Division step k=0 Elimination step k=0 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2 Iteration k=1 has started

28 1A 01 A 02 A 03 A 04 01A 12 A 13 A 14 0A 21 A 22 A 23 A 24 A 30 A 31 A 32 A 33 A 34 A 40 A 41 A 42 A 43 A 44 Division step k=0 Elimination step k=0 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2

29 1A 01 A 02 A 03 A 04 01A 12 A 13 A 14 0A 21 A 22 A 23 A 24 0A 31 A 32 A 33 A 34 A 40 A 41 A 42 A 43 A 44 Iteration k=0 has ended Division step k=0 Elimination step k=0 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2

30 1A 01 A 02 A 03 A 04 01A 12 A 13 A 14 0A 21 A 22 A 23 A 24 0A 31 A 32 A 33 A 34 0A 41 A 42 A 43 A 44 Division step k=0 Elimination step k=0 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2

31 1A 01 A 02 A 03 A 04 01A 12 A 13 A 14 00A 22 A 23 A 24 0A 31 A 32 A 33 A 34 0A 41 A 42 A 43 A 44 Division step k=0 Elimination step k=0 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2 Iteration k=2 has started

32 1A 01 A 02 A 03 A 04 01A 12 A 13 A A 23 A 24 00A 32 A 33 A 34 0A 41 A 42 A 43 A 44 Division step k=0 Elimination step k=0 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2 Iteration k=1 has ended

33 1A 01 A 02 A 03 A 04 01A 12 A 13 A A 23 A 24 00A 32 A 33 A 34 00A 42 A 43 A 44 Division step k=0 Elimination step k=0 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2

34 1A 01 A 02 A 03 A 04 01A 12 A 13 A A 23 A 24 00A 32 A 33 A 34 00A 42 A 43 A 44 Division step k=0 Elimination step k=0 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2

35 1A 01 A 02 A 03 A 04 01A 12 A 13 A A 23 A A 33 A 34 00A 42 A 43 A 44 Division step k=3 Elimination step k=3 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2 Iteration k=3 has started

36 1A 01 A 02 A 03 A 04 01A 12 A 13 A A 23 A A A 43 A 44 Division step k=3 Elimination step k=3 Division step k=1 Elimination step k=1 Division step k=2 Elimination step k=2

37 1A 01 A 02 A 03 A 04 01A 12 A 13 A A 23 A A A 43 A 44 Division step k=3 Elimination step k=3 Division step k=4 Elimination step k=4 Division step k=2 Elimination step k=2 Iteration k=3 has ended

38 1A 01 A 02 A 03 A 04 01A 12 A 13 A A 23 A A A 44 Division step k=3 Elimination step k=3 Division step k=4 Elimination step k=4 Division step k=2 Elimination step k=2 Iteration k=4 has started

39 1-D partitioning with less than n processes

40

41

42 §2-D partitioning

43

44

45

46

47 §Analysis of nxn 2D partitioning on nxn processors

48

49

50

51