Skip to content

Parallel sorting algorithms implemented with MPI: Bitonic Sort, Odd-Even Transposition, and Parallel Quicksort. Graphical representation using the Allegro library.

Notifications You must be signed in to change notification settings

Copelli-Yoshovski-Associates/Parallel-Sorting-Algorithms-MPI

Repository files navigation

Parallel Sorting Algorithms in MPI

Bitonic Sort, Odd-Even Transposition, and Parallel Quicksort

Parallel execution of three sorting algorithms implemented with MPI: Bitonic Sort, Odd-Even Transposition, and Parallel Quicksort. The project showcases the graphical representation of the sorting process using the Allegro library. This project was developed for the course of Parallel Algorithms and Distributed Systems (University of Calabria) in July 2021

Contributors

Francesco Copelli
Stefan Yoshovski

Table of Contents

Used Technologies

  • MPI (Message Passing Interface) for parallel execution
  • Allegro 5 library for graphical representation of the sorting process
  • Bitonic Sort, Odd-Even Transposition, and Parallel Quicksort algorithms implemented with MPI
  • C++

How to run the project?

Pre-requirements: Having allegro5 installed in the same directory of the project

Step-By-Step Guide to install allegro5
git clone https://github.com/liballeg/allegro5.git

cd allegro5
mkdir build
cd build
cmake ..
make
sudo make install

To compile the program on Linux: make

To run the program: mpirun -np <num_processors> ./sorting.out <size_sequence> <graphic>

example: mpirun -np 4 ./ sorting.out 1024 1

Video Demo and Snapshots

Bitonic Sort

Bitonic Sort

Parallel Quicksort

Parallel Quicksort

Odd Even Transposition

Odd Even Transposition

About

Parallel sorting algorithms implemented with MPI: Bitonic Sort, Odd-Even Transposition, and Parallel Quicksort. Graphical representation using the Allegro library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published