<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Oleksandra Osadcha Faculty of Applied Mathematics Silesian University of Technology Gliwice</institution>
          ,
          <country country="PL">Poland</country>
        </aff>
      </contrib-group>
      <fpage>39</fpage>
      <lpage>43</lpage>
      <abstract>
        <p>-This paper illustrates comparison of two stationary Some convergence result for the block Gauss-Seidel method iteration methods for solving systems of linear equations. The for problems where the feasible set is the Cartesian product of aim of the research is to analyze, which method is faster solve m closed convex sets, under the assumption that the sequence tshoilsvienqgu.aTthioinsspaanpderhporwesmenatnsyo miteerwataioyns troeqdueiarledwietahcthhims eptrhoobdlefmor. generated by the method has limit points presented in.[5]. In [9] presented improving the modiefied Gauss-Seidel method Index Terms-comparison, analisys, stationary methods, for Z-matrices. In [11] presented the convergence Gauss-Seidel Jacobi method, Gauss-Seidel method iterative method, because matrix of linear system of equations is positive definite, but it does not afford a conclusion on the I. INTRODUCTION convergence of the Jacobi method. However, it also proved that Jacobi method also converges. Also these methods were present in [12], where described each method. This publication present comparison of Jacobi and GaussSeidel methods. These methods are used for solving systems of linear equations. We analyze, how many iterations required each method and which method is faster.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>The term ”iterative method” refers to a wide range of
techniques that use successive approximations to obtain more
accurate solutions to a linear system at each step. In this
publication we will cover two types of iterative methods. Stationary
methods are older, simpler to understand and implement, but
usually not as effective. Nonstationary methods are a
relatively recent development; their analysis is usually harder to
understand, but they can be highly effective. The nonstationary
methods we present are based on the idea of sequences of
orthogonal vectors. (An exception is the Chebyshev iteration
method, which is based on orthogonal polynomials.)</p>
      <p>
        The rate at which an iterative method converges depends
greatly on the spectrum of the coeffcient matrix. Hence,
iterative methods usually involve a second matrix that
transforms the coeffcient matrix into one with a more favorable
spectrum. The transformation matrix is called a
preconditioner. A good preconditioner improves the convergence of
the iterative method, suffciently to overcome the extra cost of
constructing and applying the preconditioner. Indeed, without
a preconditioner the iterative method may even fail to converge
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        There are a lot of publications with stationary iterative
methods. As is well known, a real symmetric matrix can be
transformed iteratively into diagonal form through a sequence
of appropriately chosen elementary orthogonal transformations
(in the following called Jacobi rotations): Ak ! Ak+1 =
UkT AkUk (A0 = given matrix), this transformations
presented in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The special cyclic Jacobi method for computing
the eigenvalues and eigenvectors of a real symmetric matrix
annihilates the off-diagonal elements of the matrix
successively, in the natural order, by rows or columns. Cyclic Jacobi
method presented in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>Copyright held by the author(s).
then</p>
      <p>We consider the system of linear equations
where A 2 Mn n i detA 6= 0.</p>
      <p>We write the matrix in form of a sum of three matricies:
where:</p>
      <p>L - the strictly lower-triangular matrix
D - the diagonal matrix</p>
      <p>U - the strictly upper-triangular matrix
If the matrix has next form:</p>
    </sec>
    <sec id="sec-2">
      <title>II. JACOBI METHOD</title>
      <p>Ax = B</p>
      <p>A = L + D + U
2
a11
a21
.
.</p>
      <p>.
an1
2
a12
a22
.
.
.</p>
      <p>: : : a1n 3
: : :
. . .</p>
      <p>a2n 7
... 775
an2 : : : ann
0
a21
.
.</p>
      <p>.
an1
0
0
.
.</p>
      <p>.
an2 : : : 0
: : : 0 3
: : : 0 7
. . . ... 775
L + U = 4</p>
    </sec>
    <sec id="sec-3">
      <title>We count</title>
      <p>2
6
D = 6
6
4</p>
      <p>If the matrix A is nonsingular (detA 6= 0), then we can
rearrange its rows, so that on the diagonal there are no zeros,
so aii 6= 0, 8i2(1;2;:::;n)</p>
      <p>If the diagonal matrix D is nonsingular matrix (so aii 6= 0,
i 2 1; : : : ; n), then inverse matrix has following form:
1
2 a11
4
1
0
=
r
5 = 4</p>
      <p>2
3
5
3 3
2
03 5 =
2
1
4
1
x =
0 3
third step (i=2)
+ 1 =
+</p>
      <p>T
x3 =</p>
      <p>1; 1; 1
Ax3
b</p>
      <p>Here we will present differences between these tests. We
carry out the series of research, where we analyze how much
time require each test and also we compare number of iteration
of each test.</p>
      <sec id="sec-3-1">
        <title>A. Analysis of time</title>
        <p>First, we analize speed of each test. After research, we
get data with time in ms and CPU ticks, which presented in
Table.I. Also, we prepared graph of time comparison in ms.
So, we can conclude that Gauss-Seidel method is faster than
Jacobi method.</p>
      </sec>
      <sec id="sec-3-2">
        <title>B. Analisys of efficiency</title>
        <p>Next, we analize the efficiency of these tests. We do research
for different number of n, where n is size of matrix A.
When we compare the numbers of each tests, we can see that
Gauss-Seidel method required less number of iterations than
Jacobi method. So, we can conclude, that Gauss-Seidel method
has better efficiency.</p>
        <p>We have compared two method implemented to solve
systems of linear equations. This paper can helps us to decide,
which method is better. After all research, we can conclude
that Gauss-Seidel method is better method than Jacobi method,
because it faster and required less number of iterations. So,
if we want to get better results and do it faster, we should
use Gauss-Seidel method. Advantages of our proposition is
ease and clarity of description of each method with shown
algorithms. Also in our paper presented examples of each
method, which show how these methods could be used.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Richard</given-names>
            <surname>Barrett</surname>
          </string-name>
          , Michael Berry,
          <string-name>
            <given-names>Tony F.</given-names>
            <surname>Chan</surname>
          </string-name>
          , James Demmel, June M. Donato, Jack Dongarra, Victor Eijkhout, Roldan Pozo,
          <article-title>Charles Romine and Henk Van der Vorst Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods</article-title>
          .
          <year>1994</year>
          , ISBN:
          <fpage>978</fpage>
          -0-
          <fpage>89871</fpage>
          -328-2
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>H.Rutishauser</surname>
          </string-name>
          <article-title>The Jacobi Method for Real Symmetric Matrices Numerische Mathematik 9</article-title>
          ,
          <fpage>1</fpage>
          -
          <lpage>10</lpage>
          (
          <year>1966</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Marszalek</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Marcin</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grzegorz</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Raniyah</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Napoli</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pappalardo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Tramontana</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <article-title>Benchmark tests on improved merge for big data processing</article-title>
          .
          <source>In Asia-Pacific Conference on Computer Aided System Engineering (APCASE)</source>
          , pp.
          <fpage>96</fpage>
          -
          <lpage>101</lpage>
          .
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>H.</given-names>
            <surname>P. M. Van Kempen</surname>
          </string-name>
          <article-title>On the Quadratic Convergence of the Special Cyclic Jacobi Method Numerische Mathematik 9</article-title>
          ,
          <fpage>19</fpage>
          -
          <lpage>22</lpage>
          (
          <year>1966</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>L.</given-names>
            <surname>Grippo</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          <article-title>Sciandrone On the convergence of the block nonlinear GaussSeidel method under convex constraints</article-title>
          ,
          <source>Operations Research Letters</source>
          <volume>26</volume>
          (
          <year>2000</year>
          )
          <fpage>127136</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Woniak</surname>
            <given-names>M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Poap</surname>
            <given-names>D</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Napoli</surname>
            <given-names>C</given-names>
          </string-name>
          , Tramontana E.
          <article-title>Graphic object feature extraction system based on cuckoo search algorithm</article-title>
          .
          <source>Expert Systems with Applications</source>
          . Volume
          <volume>66</volume>
          , pp.
          <fpage>20</fpage>
          -
          <lpage>31</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Woniak</surname>
            <given-names>M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Poap</surname>
            <given-names>D</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Napoli</surname>
            <given-names>C</given-names>
          </string-name>
          , Tramontana E.
          <article-title>Graphic object feature extraction system based on cuckoo search algorithm</article-title>
          .
          <source>Expert Systems with Applications</source>
          . Volume
          <volume>66</volume>
          , pp.
          <fpage>20</fpage>
          -
          <lpage>31</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Capizzi</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sciuto</surname>
            ,
            <given-names>G.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Napoli</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tramontana</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Woniak</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <article-title>Automatic classification of fruit defects based on co-occurrence matrix and neural networks</article-title>
          .
          <source>In Federated Conference on Computer Science and Information Systems (FedCSIS)</source>
          , pp.
          <fpage>861</fpage>
          -
          <lpage>867</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Toshiyuki</given-names>
            <surname>Kohno</surname>
          </string-name>
          , Hisashi Kotakemori,
          <article-title>Hiroshi Niki and Masataka Usui Improving the Modified Gauss-Seidel Method for Z-Matrices, 3 January 1997</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Wozniak</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Polap</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Borowik</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Napoli</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <article-title>A first attempt to cloud-based user verification in distributed system</article-title>
          .
          <source>In Asia-Pacific Conference on Computer Aided System Engineering (APCASE)</source>
          , pp.
          <fpage>226</fpage>
          -
          <lpage>231</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>A.</given-names>
            <surname>Mitiche</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.-R.</given-names>
            <surname>Mansouri</surname>
          </string-name>
          <article-title>On convergence of the Horn and Schunck optical-flow estimation method</article-title>
          ,
          <source>DOI: 10.1109/TIP</source>
          .
          <year>2004</year>
          .
          <volume>827235</volume>
          , 18 May
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Feng</surname>
            <given-names>Ding</given-names>
          </string-name>
          ,
          <article-title>Tongweng Chen Iterative least-squares solutions of coupled Sylvester matrix equations</article-title>
          ,
          <source>Systems &amp; Control Letters</source>
          Volume
          <volume>54</volume>
          ,
          <string-name>
            <surname>Issue</surname>
            <given-names>2</given-names>
          </string-name>
          ,
          <string-name>
            <surname>February</surname>
            <given-names>2005</given-names>
          </string-name>
          , Pages
          <fpage>95</fpage>
          -
          <lpage>107</lpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>