arXiv:2610.39990cs.DCOct 2026

Manuscript Offprint

arXiv:2610.39990

An Exact Parallel Dense Gauss-Seidel Algorithm with Trade-Offs between Parallel Execution Time and Preprocessing Time

Mugurel-Ionuţ Andreica, Pantelimon George Popescu, Eliana-Dina Tîrşa

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The Gauss-Seidel iterative method is commonly used for solving systems of linear equations because of its good convergence properties. However, the Gauss-Seidel algorithm cannot be easily parallelized because of the data dependencies existing at each iteration. The best parallel execution time for dense systems of equations is O(n)O(n) given that enough processors are available and no preprocessing is performed. In this paper we propose a new parallel Gauss-Seidel algorithm which is capable of achieving better parallel runtimes at the expense of more preprocessing time. The algorithm can be tuned in order to provide convenient trade-offs between the preprocessing time and the best parallel runtime achievable by the algorithm.

1. Introduction

In order to solve large systems of linear equations, iterative methods like Jacobi or Gauss-Seidel [1] are used. These methods produce good approximate results much faster than solving the system of equations exactly. When implemented sequentially, the Gauss-Seidel method is known to converge faster than the Jacobi method and, thus, it is preferable to use it.

∗^{*}This manuscript was originally written in July 2013, and the names and affiliation of the authors are reflecting the state at that time. Recently, the original manuscript went through a few rounds of AI-based reviews, which identified several typos and bugs, which were corrected, but which didn’t change the original ideas. AI was only used for identifying issues, not for correcting them.

However, when the size of the system of equations is large enough even sequential implementations of these methods are too slow and parallel versions are required. The Jacobi method can be easily parallelized, because the value of each unknown at the current iteration depends only on the values of the unknowns at the previous iteration. The Gauss-Seidel method, on the other hand, seems difficult to parallelize because the value of an unknown i at iteration k, x(k,i)x(k,i), depends on all the values x(k,j<i)x(k,j < i). This property is what helps the Gauss-Seidel method converge to a good solution with a smaller number of iterations than Jacobi, but it is also what prevents it from being easily parallelized. In this paper we propose a new parallel Gauss-Seidel algorithm for dense systems of linear equations which can overcome the limitations of the standard Gauss-Seidel method at the expense of more preprocessing time. In fact, with enough preprocessing time available and enough available processors, we can reach a parallel running time of O(log⁡(n))O(\log(n)) per iteration (n is the size of the system of linear equations), which is also the best result possible for the parallel version of the Jacobi method. However, this is not the main contribution of this paper. The most important result is that our algorithm can make use of a parameter m which can tune the amount of preprocessing time and the amount of parallelism available at each iteration of the Gauss-Seidel method. The algorithm will provide a trade-off between the preprocessing time and the best achievable parallel runtime: the more preprocessing time we can spend, the more parallelism per iteration we can achieve (and, thus, the better the parallel runtime can be).

The rest of this paper is structured as follows. In Section 2 we describe the Gauss-Seidel method in detail and we discuss some parallelization opportunities of the standard formulation of this method. In Section 3 we present our new parallel Gauss-Seidel algorithm together with a detailed complexity analysis. The algorithm is focused on achieving the best parallel running time possible for a given number P of available processors. In Section 4 we conclude.