2
$\begingroup$

Hi All!

I was supposed to find a solution of Ax=b using Jacobi and Gauss-Seidel method. The A is 100x100 symetric, positive-definite matrix and b is a vector filled with 1's. I am iterating(k = 1,2,....) those methods until the norm of (x(k+1) - x(k)) < precision which means that x is not changing and it is senseless to iterate more. Both methods ends with the same k(changed precision and k is still the same). So is it possible that the convergence of Jacobi and Gauss-Seidel is the same?

I will appreciate every resposne.

$\endgroup$
2
  • 3
    $\begingroup$ I'm far from being a specialist in numerical analysis. But if I remember correctly, the rate of convergence of Gauss-Seidel and Jacobi are both quite sensitive to the problem at hand. Depending on the problem either one can be faster than the other. But this sounds more like homework than a research level question, so you should consider to head over to an alternative site, see mathoverflow.net/faq $\endgroup$ Dec 3, 2010 at 2:24
  • $\begingroup$ I am not asking for making this, but I made it by myself, and I am confused because the convergence is the same, I am only asking whether it's possible for that kind of matrix. $\endgroup$
    – user11277
    Dec 3, 2010 at 2:29

3 Answers 3

4
$\begingroup$

There are several important cases where it is proved that $\rho(G)<\rho(J)$, with $G$ and $J$ the iteration matrices associated to the Gauss-Seidel and Jacobi methods. See for instance my book Matrices. GTM 216, Springer-Verlag. For instance, in the tridiagonal case, $\rho(G)=\rho(J)^2$ thus G-S is twice faster as Jacobi.

What means twice faster (or just $k$-times faster) ? These are order one methods, in the sense that a fixed number of exact digits are gained at each step. This number is $\tau=-\log_{10}\rho$. A method is twice faster than an other if the ratio $\tau_{one}/\tau_{other}$ equals $2$. Thus you should see a significant difference between both methods. If not, there might be two reasons. Either you are in an exceptional case where $\rho(G)=\rho(J)$, or something is wrong in your code.

In general, I do not recommend Jacobi and G-S. They are good examples in a course to beginners. But a slight change of G-S yields the relaxation method. With an optimal parameter, it is much faster. This is because $\rho(G)$ is very close to $1$ when $n$ is large, and thus $\tau$ is very small.

$\endgroup$
2
$\begingroup$

You need to be careful how you define rate of convergence. For Gauss-Seidel and Jacobi you split $A$ and rearrange \begin{eqnarray} Ax & = & b \\ M-K & = & b \\ \implies x & = & M^{-1}Kx + M^{-1}b \\ & \triangleq & Rx + c \\ \end{eqnarray} Giving the iteration $x_{m+1} = Rx_m + c$. We (Demmel's book) define the rate of convergence as the increase in the number of correct decimal places per iteration $$ r = -\log_{10}( \rho(R)) $$ where $\rho(R)$ is the spectral radius of $R$. It can be shown that for $A$ strictly row diagonally dominant that $$ \rho(R_{\text{Gauss}}) \leq \rho(R_{\text{Jacobi}}) < 1 $$ indicating that the rate of convergence for Gauss Seidel is greater than that of Jacobi.

However I have never seen a significant difference in speed between the two methods.

$\endgroup$
3
  • $\begingroup$ dranxo, in place of $$\rho(R_{\text{Gauss}}) \leq \rho(R_{\text{Jacobi}})$$ shouldn't be $$\|R_{\text{Gauss}}\|_{\infty} \leq \|R_{\text{Jacobi}}\|_{\infty}$$ ? $\endgroup$
    – Tadashi
    Oct 5, 2014 at 21:56
  • $\begingroup$ Counterexample to $$ \rho(R_{\text{Gauss}}) \leq \rho(R_{\text{Jacobi}}).$$ Considering $$ A=\begin{bmatrix}1 & 2 & -2\\ 1 & 1 & 1\\ 2 & 2 & 1 \end{bmatrix}, $$ one has that $\rho(R_{\text{Gauss}})=2$ and $\rho(R_{\text{Jacobi}})=0$. $\endgroup$
    – Tadashi
    Oct 6, 2014 at 2:19
  • 1
    $\begingroup$ @Shamisen dranxo states that the inequality only holds when $A$ is strictly row diagonally dominant. The counterexample you have given is not row-diagonally dominant. $\endgroup$
    – nukeguy
    Jan 30, 2018 at 16:08
0
$\begingroup$

Sufficient condition for convergence:

$$ \| C \| < 1 . $$

This $\|C\|$ is some matrix norm, this norm can be find using 3 methods

  1. frobineus norm

    $$ \| C \| = \sqrt{\sum_{j=1}^n\sum_{k=1}^n |C_{j,k}|^2} $$

  2. column "sum" norm $$ \| C \| = \max_k \sum_{j=1}^n| C_{j,k} |$$ OR greatest of the sums of the $| C_{j,k} |$ in a column of $C$

  3. row “sum” norm $$ \| C \| = \max_j \sum_{k=1}^n| C_{j,k} |$$ OR greatest of the sums of the $| C_{j,k} |$ in a row of $C$.

These are the most frequently used matrix norms in numerics. In most cases the choice of one of these norms is a matter of computational convenience.

$\endgroup$
1
  • 4
    $\begingroup$ Hi, there seems to be something strange in your math display (in particular the appearance of ▒). Please consider editing your answer to make use of the MathJax capability of this website. $\endgroup$ Jun 26, 2013 at 10:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.