Skip to content

Implentation of Back Substitution, Conjugate Gradient and Gauss Seidel using OpenMP parallelization

License

Notifications You must be signed in to change notification settings

maitreyeepaliwal/Solving-System-of-linear-equations-in-parallel-and-serial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Linear-equations-solving-using-parallelism

Implentation of Back Substitution, Conjugate Gradient and Gauss Seidel using OpenMP parallelization

Solving large systems of linear equations in serial is time consuming and slow process.
Prallelizing the algorithms using suitable parallel constructs can provide the correct solutions with a lesser time complexity.

This project presents parallel and serial implementation of three algorithms for solving system of linear equations:

  1. Back Substitution,
  2. Conjugate Gradient and
  3. Gauss Seidel

In this project, OpenMP is used for parallelizing the algorithms.
For all the 3 algos, serial and parallel implementations is provided. Execution time for each of the 6 functions(serial and parallel implementations of the three algos) is calculated to determine and henceforth compare the efficiency of the three algorithms.

Two code files: required.c and random.c are basically the same implementation, but random.c considered a random matrix input, while required.c considers specific input matrix considering the limitations of the algorithms.