SDSU CS 662 Theory of Parallel Algorithms
Numerical Methods part 3

[To Lecture Notes Index]
San Diego State University -- This page last updated May 2, 1996
----------


Iterative Methods


Jacobi

Let Ax = b then we have:
So

But need x's to compute x's!

Iterate

Let = a guess for

= t'th iteration for by the equation:

Example
and

then

What to use for guess?

Does it work?
Two Guesses
tx1x2x1x2
00010001000
10.20-0.3-599.80-500
20.35-0.4300.35300
30.41-0.4-179.59-150
40.46-0.590.4689.5
50.47-0.5-53.53-45
60.49-0.527.4926.5
70.49-0.5-15.71-14
80.50-0.58.607.6
90.50-0.5-4.36-4.5
100.50-0.52.931.93
110.50-0.5-0.96-1.7
120.50-0.51.230.23
130.50-0.50.06-0.9
140.50-0.50.72-0.3
150.50-0.50.37-0.6
160.50-0.50.57-0.4
170.50-0.50.46-0.5
180.50-0.50.52-0.5
190.50-0.50.49-0.5
200.50-0.50.51-0.5

Example 2
Let and then

and
tx1x2x1x2x1x2
000115-5
10.20-0.5-0.40-2.53.20-11
20.50-0.91.700.36.50-6.9
30.74-1.50.02-3.94.34-14
41.10-22.54-0.58.30-9.2
51.39-2.70.52-5.65.71-17
61.82-3.33.55-1.510.46-12
72.17-4.11.13-7.67.35-21
82.68-4.84.76-2.813.05-15
93.10-5.91.85-109.32-27
103.72-6.76.21-4.216.16-19
114.22-7.92.73-1311.68-33
124.96-8.97.95-619.89-24
135.56-103.77-1614.52-40
146.46-1210.04-824.37-30
157.17-135.02-2117.92-49
168.25-1512.55-1129.75-36
179.11-176.53-2622.01-60
1810.40-1915.56-1436.20-45
1911.43-218.34-3226.91-73
2012.98-2319.17-1743.94-54

Convergence

When does this work?

Let D be the diagonal matrix whose diagonal entries are equal to diagonal entries of A

Let B = A -D

Then can be written as


converges to x for all initial guesses if and only if

This happens if and only if the eigenvalues of are all less than 1

Def. A square matrix A with entries is row diagonally dominant if
for all j

Theorem.
If A is row diagonally dominant than the Jacobi method converges
Example 1



Example 2


Gauss-Seidel Method

Let Ax = b and let

if converges it converges to x


Theorem
If the Jacobi method converges for a given A then the Gauss-Seidel method also converges

Where is the Parallelism?

Gauss-Seidel Method
Jacobi Method

----------