Skip to content

This repository contains one of the pds project assigned by politecnico di torino

License

Notifications You must be signed in to change notification settings

samu8991/pds_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ParallelGraphColoring


This project is about solving a famous problem in informatics called vertex coloring problem. The problem is defined as follows: given a graph G=(V,E) where V is the set of nodes and E is the set of edges of the graph you have to find a function C : V → N capable of assigning a color to each vertex such that for each (u,v) in E C(v) <> C(u).

Contents

  1. Build instructions
    1. Linux
    2. Windows
  2. Usage

Build instructions

This project can be run on both windows and linux operating systems

Linux

Software needed:

  • Download Boost from the official site
  • cmake(>=3.17)
  • make
  • boost filesystem library

On debian distributions you can run the following:

# apt install cmake libboost-filesystem-dev

In order to compile you have to put yourself inside the build directory and then hit the following:

$ cmake .. && make

Windows

Software needed:

  • boost library

On Windows distribution compute the following instruction:

  • Download Boost from the official site
  • Extract Boost from the .7z folder
  • Open the Boost folder and run bootstrap.bat; it creates the file b2.exe
  • Run b2.exe and wait it finishes

In order to compile you have to put yourself inside the build directory and then hit the following:

$ cmake .. && make

Usage

Regardless of whether you are using linux or windows, you must put the benchmark folder inside a specific folder. As far as windows is concerned the folder is: "C:" while in linux is: "/home/username" or the well known "~". There are actually two ways of executing the program:

  1. without arguments, the program will guide the user
  2. with arguments(representation,algorithm,no. threads, file name).

About

This repository contains one of the pds project assigned by politecnico di torino

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •