An open API service indexing awesome lists of open source software.

https://github.com/joaomhmpereira/parallel-and-distributed-computing

Travelling Salesman Problem (Serial, OpenMP and MPI) implementation using Branch and Bound algorithm.
https://github.com/joaomhmpereira/parallel-and-distributed-computing

branch-and-bound mpi openmp parallel-computing travelling-salesman-problem

Last synced: 26 days ago
JSON representation

Travelling Salesman Problem (Serial, OpenMP and MPI) implementation using Branch and Bound algorithm.

Awesome Lists containing this project

README

          

# `Parallel and Distributed Computing` #

This repository contains work developed in the [Parallel and Distributed Computing](https://fenix.tecnico.ulisboa.pt/disciplinas/CPD2/2022-2023/2-semestre/pagina-inicial) masters course at IST.

More specifically, it contains three (one sequential and two parallel) implementations of the [Travelling Salesman Problem](https://en.wikipedia.org/wiki/Travelling_salesman_problem) using the [Branch and Bound](https://en.wikipedia.org/wiki/Branch_and_bound) algorithm.

Regarding the parallel implementations, one was done using [OpenMP](https://en.wikipedia.org/wiki/OpenMP) and the other using [MPI (Message Passing Interface)](https://en.wikipedia.org/wiki/Message_Passing_Interface).

Grade: 18/20.

Author | Github
-------|-------
Leonor Barreiros | https://github.com/leonormbarreiros
Catarina Bento | https://github.com/catarinab
João Pereira | https://github.com/joaomhmpereira

### `Instructions to run each implementation` ###

All implementations have their own directory and each already include a Makefile to compile the program.

Directories `pub-instances` and `output` contain the available tests (input files) and expected outputs respectively.

After compiling, use the following commands to run the programs:
- Serial
- `./tsp `
- OpenMP
- `./tsp-omp `
- MPI
- `mpirun -n tsp-mpi `