LU Decomposition Method

Similar documents
Ones Assignment Method for Solving Traveling Salesman Problem

Pattern Recognition Systems Lab 1 Least Mean Squares

Lecture 1: Introduction and Strassen s Algorithm

AN OPTIMIZATION NETWORK FOR MATRIX INVERSION

The Closest Line to a Data Set in the Plane. David Gurney Southeastern Louisiana University Hammond, Louisiana

A Note on Least-norm Solution of Global WireWarping

Project 2.5 Improved Euler Implementation

Homework 1 Solutions MA 522 Fall 2017

Civil Engineering Computation

EE123 Digital Signal Processing

Ch 9.3 Geometric Sequences and Series Lessons

Fuzzy Minimal Solution of Dual Fully Fuzzy Matrix Equations

Numerical Methods Lecture 6 - Curve Fitting Techniques

On Computing the Fuzzy Weighted Average Using the KM Algorithms

A Study on the Performance of Cholesky-Factorization using MPI

An improved Thomas Algorithm for finite element matrix parallel computing

Optimal Mapped Mesh on the Circle

Pseudocode ( 1.1) Analysis of Algorithms. Primitive Operations. Pseudocode Details. Running Time ( 1.1) Estimating performance

1.2 Binomial Coefficients and Subsets

Chapter 3 Classification of FFT Processor Algorithms

Lecture 5. Counting Sort / Radix Sort

Alpha Individual Solutions MAΘ National Convention 2013

Fuzzy Membership Function Optimization for System Identification Using an Extended Kalman Filter

Fast Fourier Transform (FFT) Algorithms

1. The lines intersect. There is one solution, the point where they intersect. The system is called a consistent system.

The number n of subintervals times the length h of subintervals gives length of interval (b-a).

AMS subject classifications. 65F05 Direct methods for linear systems and matrix inversion

Dimensionality Reduction PCA

CIS 121 Data Structures and Algorithms with Java Fall Big-Oh Notation Tuesday, September 5 (Make-up Friday, September 8)

Solving Fuzzy Assignment Problem Using Fourier Elimination Method

BOOLEAN MATHEMATICS: GENERAL THEORY

A New Morphological 3D Shape Decomposition: Grayscale Interframe Interpolation Method

9.1. Sequences and Series. Sequences. What you should learn. Why you should learn it. Definition of Sequence

Algorithm Design Techniques. Divide and conquer Problem

Arithmetic Sequences

3D Model Retrieval Method Based on Sample Prediction

A Recursive Blocked Schur Algorithm for Computing the Matrix Square Root. Deadman, Edvin and Higham, Nicholas J. and Ralha, Rui. MIMS EPrint: 2012.

Computer Science Foundation Exam. August 12, Computer Science. Section 1A. No Calculators! KEY. Solutions and Grading Criteria.

CIS 121 Data Structures and Algorithms with Java Spring Stacks and Queues Monday, February 12 / Tuesday, February 13

Intro to Scientific Computing: Solutions

MATHEMATICAL METHODS OF ANALYSIS AND EXPERIMENTAL DATA PROCESSING (Or Methods of Curve Fitting)

Gauss-Seidel Method. An iterative method. Basic Procedure:

An Efficient Algorithm for Graph Bisection of Triangularizations

Lower Bounds for Sorting

How do we evaluate algorithms?

Optimum Solution of Quadratic Programming Problem: By Wolfe s Modified Simplex Method

An Efficient Algorithm for Graph Bisection of Triangularizations

Exercise 6 (Week 42) For the foreign students only.

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Accuracy Improvement in Camera Calibration

Eigenimages. Digital Image Processing: Bernd Girod, Stanford University -- Eigenimages 1

A Method for Solving Balanced Intuitionistic Fuzzy Assignment Problem

Speeding-up dynamic programming in sequence alignment

Second-Order Domain Decomposition Method for Three-Dimensional Hyperbolic Problems

Parabolic Path to a Best Best-Fit Line:

Eigenimages. Digital Image Processing: Bernd Girod, 2013 Stanford University -- Eigenimages 1

Lecture Notes 6 Introduction to algorithm analysis CSS 501 Data Structures and Object-Oriented Programming

CSC165H1 Worksheet: Tutorial 8 Algorithm analysis (SOLUTIONS)

The following algorithms have been tested as a method of converting an I.F. from 16 to 512 MHz to 31 real 16 MHz USB channels:

Appendix A. Use of Operators in ARPS

New Results on Energy of Graphs of Small Order

AN EFFICIENT IMPLEMENTATION OF IMPLICIT OPERATOR FOR BLOCK LU-SGS METHOD

Force Network Analysis using Complementary Energy

Lecture 28: Data Link Layer

Computational Geometry

CHAPTER IV: GRAPH THEORY. Section 1: Introduction to Graphs

Examples and Applications of Binary Search

EE University of Minnesota. Midterm Exam #1. Prof. Matthew O'Keefe TA: Eric Seppanen. Department of Electrical and Computer Engineering

Major CSL Write your name and entry no on every sheet of the answer script. Time 2 Hrs Max Marks 70

Linearising Calibration Methods for a Generic Embedded Sensor Interface (GESI)

Chapter 24. Sorting. Objectives. 1. To study and analyze time efficiency of various sorting algorithms

A Resource for Free-standing Mathematics Qualifications

Recursive Procedures. How can you model the relationship between consecutive terms of a sequence?

UNIT 1 RECURRENCE RELATIONS

Python Programming: An Introduction to Computer Science

Chapter 9. Pointers and Dynamic Arrays. Copyright 2015 Pearson Education, Ltd.. All rights reserved.

OCR Statistics 1. Working with data. Section 3: Measures of spread

Exact Minimum Lower Bound Algorithm for Traveling Salesman Problem

Using Gaussian Elimination for Determination of Structure Index in Euler Deconvolution

Creating Exact Bezier Representations of CST Shapes. David D. Marshall. California Polytechnic State University, San Luis Obispo, CA , USA

n n B. How many subsets of C are there of cardinality n. We are selecting elements for such a

Redundancy Allocation for Series Parallel Systems with Multiple Constraints and Sensitivity Analysis

An Improved Shuffled Frog-Leaping Algorithm for Knapsack Problem

IMP: Superposer Integrated Morphometrics Package Superposition Tool

Lecture 9: Exam I Review

Autar Kaw Benjamin Rigsby. Transforming Numerical Methods Education for STEM Undergraduates

EE 459/500 HDL Based Digital Design with Programmable Logic. Lecture 13 Control and Sequencing: Hardwired and Microprogrammed Control

COARSE ANGLE ROTATION MODE CORDIC BASED SINGLE PROCESSING ELEMENT QR-RLS PROCESSOR

A RELATIONSHIP BETWEEN BOUNDS ON THE SUM OF SQUARES OF DEGREES OF A GRAPH

Hole Machining Path Planning Optimization Based on Dynamic Tabu Artificial Bee Colony Algorithm

Cubic Polynomial Curves with a Shape Parameter

IJESMR International Journal OF Engineering Sciences & Management Research

SEQUENCES AND SERIES

Computers and Scientific Thinking

Section 7.2: Direction Fields and Euler s Methods

Python Programming: An Introduction to Computer Science

CIS 121 Data Structures and Algorithms with Java Spring Stacks, Queues, and Heaps Monday, February 18 / Tuesday, February 19

THIN LAYER ORIENTED MAGNETOSTATIC CALCULATION MODULE FOR ELMER FEM, BASED ON THE METHOD OF THE MOMENTS. Roman Szewczyk

Algorithms for Disk Covering Problems with the Most Points

Nodal Circuit Analysis Using KCL. Most useful for when we have mostly current sources Node analysis uses KCL to establish the currents

Transcription:

SOLUTION OF SIMULTANEOUS LINEAR EQUATIONS LU Decompositio Method Jamie Traha, Autar Kaw, Kevi Marti Uiversity of South Florida Uited States of America kaw@eg.usf.edu http://umericalmethods.eg.usf.edu Itroductio Whe solvig multiple sets of simultaeous liear equatios with the same coefficie matrix but differet right had sides, LU Decompositio is advatageous over other umerical methods i that it proves to be umerically more efficiet i computatioa tha other techiques. I this worksheet, the reader ca choose a system of equatios ad see how each step of LU decompositio method is coducted. To lear more abo LU Decompositio method as well as the efficiecy of its computatioal time click h LU Decompositio method is used to solve a set of simultaeous liear equatios, [A [X] = [C], where [A] x is a o-sigular square coefficiet matrix, [X] x is the solutio vector, ad [C] x is the right had side array. Whe coductig LU decompositio method, oe must first decompose the coefficet matrix [A] x ito a lower triagular matrix [L] x, ad upper triagular matrix [U] x. These two matrice the be used to solve the solutio vector [X] x i the followig sequece: Recall that [A] [X] = [C]. Kowig that [A] = [L] [U] the first solvig with ward substitutio [L] [Z] = [C] ad the solvig with back substitutio [U] [X] = [Z] gives the solutio vector [X]. A simulatio of LU Decompositio method follows.

Sectio : Iput Below are the iput parameters to begi the simulatio. This is the oly sectio that requires user iput. The user ca chage the values that are highlighted ad Mathcad calculate the solutio vector [X]. ORIGIN := Number of equatios := 4 [A] x coefficiet matrix A :=. 4.. 9 8. [RHS] x right had side array RHS := 9..

Sectio : LU Decompositio Method This sectio divides LU Decompositio ito steps: ) Decompositio of coefficiet matrix [A] x ) Forward Substitutio ) Back Substitutio Step : Fidig [L] ad [U] How does oe decompose a o-sigular matrix [A], that is how do you fid [L] ad [U]? The followig procedure decomposes the coefficiet matrix [A] ito a lower triagular matrix [L] ad upper triagular matrix [U], give [A] = [L] [U]. For [U], the elemets of the matrix are exactly the same as the coefficiet matrix oe obtais at the ed of ward elimiatio steps i Naive Gauss Elimiatio. For [L], the matrix has i its diagoal etries. The o zero elemets o the o-diagoal elemets are multipliers that made the correspodig etries zero i the upper triagular matrix durig ward elimiatio. LU decompositio procedure: Variable ames: = umber of equatios U = x upper triagular matrix L = x lower triagular matrix ludecompose := U A i.. L ii, k.. i k +.. U L multiplier U ik, U kk, L multiplier ik, j.. U U multiplier U i, j i, j k, j Assigig coefficiet matrix [A] to local matrix [U] Iitializig diagoal of [L] to be uity Coductig (-) steps of Naive Gauss ward elimiatio. Defiig row elemets Computig multiplier values Puttig multiplier i proper row ad colum of [L] matrix. Geeratig rows of [U] matrix. Returig [U] ad [L]

Extractig [U] matrix from LU decompositio procedure: U := ludecompose The upper triagular matrix [U] is U = 4.4... 8.44. 44. Extractig [L] matrix from LU decompositio procedure: L := ludecompose The lower triagular matrix [L] is L =.8.8.4. 4.8 Notice that matrix [L] has oly oe ukow to be solved i its first row, ad matrix [U] has oly oe ukow to be solved i its last row. This will prove useful i solv the solutio vector [X] i the followig steps of LU decompositio method.

Step : Forward Substitutio Now that the [L] matrix has bee med, ward substitutio step [L] [Z] = [C] ca be coducted, begiig with the first equatio as it has oly oe ukow, c z := Equatio (.) l, Subsequet steps of ward substitutio ca be represeted by the followig mula: i c l z i ( i, j j ) j = i=.. z := Equatio (.) i l ii, The followig procedure coducts ward substitutio steps to solve [Z]. Variable ames: = umber of equatios RHS = x right had side array L = x lower triagular matrix RHS ward_substitutio := Z L, Z i.. sum j.. i sum sum + L Z i, j j RHS sum i Z i L ii, Solvig the first equatio as it has oly oe ukow. Defiig remaiig (-) rows whose ukows eed to be solved. Iitializig series sum to equal zero. Calculatig summatio term i Eq.(.) Usig Eq. (.) to solve itermediate solutio vector [Z]. Returig [Z] The [Z] solutio vector is ow Z := ward_substitutio Z =...99

Step : Back Substitutio Now that [Z] has bee foud, it ca be used i the back substitutio step, [U] [X] = [Z], to solve solutio vector [X] x, where [U] x is the upper triagular matrix calculated i Step, ad [Z] x is the right had side array. Back substitutio begis with solvig the th equatio as it has oly oe ukow. z x := Equatio (.) u, The remaiig ukows are solved workig backwards from the (-) th equatio to the first equatio usig the followig mula: z u x i ( i, j j ) j = i+ i= ( ).. x := Equatio (.4) i u ii, The followig procedure solves [X]. Variable ames = umber of equatios Z = x right had side array U = x upper triagular matrix Z back_substitutio := X U, i.. X sum j i +.. sum sum + U X i, j j Z sum i X i U ii, Solvig th equatio as it has oly oe ukow. Defiig remaiig (-) rows whose ukows eed to be solved. Iitializig series sum to zero. Calculatig summatio term from Eq. (.4). Usig Eq. (.4) to calculate solutio vector [X]. Returig solutio vector [X].

The solutio vector [X] is X := back_substitutio X =...844.4 Refereces Autar Kaw, Holistic Numerical Methods Istitute, http://umericalmethods.eg.usf.edu/mws, See Itroductio to Systems of Equatios. How does LU Decompositio method work? Savig of computatioal time fidig iverse of a matrix usig LU decompositio. Coclusio Mathcad helped us apply our kowledge of LU Decompositio method to solve a syst of simultaeous liear equatios. Questio : Solve the followig set of simultaeous liear equatios usig LU decompositio method 9..... x x x x 4 = 4. 8 Questio : Use LU decompositio repeatedly to fid the iverse of 9..... Questio : Look at the [Z] matrix i [L] [Z] = [C] step i LU decompositio method of Questio. Is it the same as the [RHS] matrix at the ed of ward elimiatio steps i Naive Gauss Elimiatio method? If yes, is this a coicidece?