Skip to content

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

Notifications You must be signed in to change notification settings

joaomhmpereira/Parallel-and-Distributed-Computing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallel and Distributed Computing

This repository contains work developed in the Parallel and Distributed Computing masters course at IST.

More specifically, it contains three (one sequential and two parallel) implementations of the Travelling Salesman Problem using the Branch and Bound algorithm.

Regarding the parallel implementations, one was done using OpenMP and the other using MPI (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 <path-to-input-file> <max-cost>
  • OpenMP
    • ./tsp-omp <path-to-input-file> <max-cost>
  • MPI
    • mpirun -n <number-of-processes> tsp-mpi <path-to-input-file> <max-cost>

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages