Skip to content

Travelling Salesman Problem (Serial, OpenMP and MPI) implementation using Branch and Bound algorithm. Grade: 18/20

Notifications You must be signed in to change notification settings

catarinab/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. Grade: 18/20

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 85.1%
  • C 12.0%
  • Python 2.4%
  • Makefile 0.5%