Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 1 ) In this question, you are asked to develop an algorithm for LU - factoring a symmetric linear system. ( a ) You

(1) In this question, you are asked to develop an algorithm for LU-factoring a symmetric linear
system.
(a) You are given a linear system Ax=b,A symmetric and non-singular. Prove that Gauss
elimination without pivoting (which is the name of the LU-factorization algorithm we studied in
class) preserves the symmetry of A in the following sense: after j elimination steps, the (m-j)
(m-j) lower right portion of Aj is still symmetric, i.e., the matrix
Aj(j+1:m,j+1:m)
is symmetric. (Hint: do a small example to see what happens.)
(b) Use (a) in order to modify the Gauss elimination method for LU factorization for a symmetric
A. Your new algorithm should obtain the correct L and U without modifying the elements of A
below the diagonal. Write a Matlab code for that algorithm. Submit a well-documented printout
of your code and explain (on a separate sheet), how you avoided processing the lower portion of
the matrix.
Hint: We learned in class to perform the j'th elimination step as
Aj-1Aj=Aj-1+ljej'Aj-1.
You might not be able to write your new algorithm in such compact format. So, first thing, compute
the rank-1 matrix lj(ej'Aj-1) entry-by-entry using two loops. Your new algorithm can then modify
the two loop code.
(c) Find the complexity of your algorithm (remember that the complexity of Gauss elimination for
general matrices is {:m33).
(d) Test your observation in (c): run your algorithm on 2-3 examples of symmetric matrices of
different sizes, and run on those matrices the Gauss elimination algorithm before you modified it
for symmetric matrices. Check the tic-toc count for each run (run tic-toc about 100 times and
average in order to get a reliable reading) and compare. Compare your experiment here with your
analysis in (c).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago