Giter Club home page Giter Club logo

mwm_auction_comparison's Introduction

Maximum Weighted Matching & Auction Algorithm Comparison

Project based on the comparison of an implementation of Auction Algorithm and the Maximum Weighted Matching from the Boost Graph Library

Startup

In order to run the benchmark you have to run these command in your console:

sudo apt update
sudo apt install build-essential
sudo apt-get install libboost-all-dev

After that, to compile the project, you have to jump into the /app/src folder and type the following line in your console:

g++ -std=c++2a -o ../bin/app BipartiteGraph.cpp MaximumWeightedMatching.cpp Auction.cpp Main.cpp

For compier optimization instead type:

g++ -std=c++2a -Ofast -o ../bin/app BipartiteGraph.cpp MaximumWeightedMatching.cpp Auction.cpp Main.cpp

The .exe file will be inserted into the /app/bin directory.

Usage

Start the application by typing ./app. Next you have to specify:

  • The VERBOSE mode, 0 or 1
  • The type of Bipartite Graph to take into examination, Incomplete (0) or Complete (1)
  • The starting number of vertices per part of the bipartite graph
  • The ending number of vertices per part of the bipartite graph

After have inserted these four options, at each random bipartite graph the application will execute:

  • Maximum Weighted Matching
  • Auction Algorithms:
    • Original Auction Algorithm
    • Auction Algorithms with e-scaling from scaling factor 1/4 to 1/10

During the benchmark the application at the end of execution of Maximum Weighted Matching and only for the best Auction Algorithm will show the solution of the Assignment Problem in the following form: (FROM vertex, TO vertex, WEIGHT).

In addition, in both strategies we will get the total cost of the matching and execution time. But only for the best Auction Algorithm we will also have the number of iteration for the specific Assignment Problem.

  • VERBOSE mode OFF

  • VERBOSE mode ON

When the benchmark is finished the application generates a resulting .csv file stored into the /results directory and named like so: complete / incomplete + starting number of vertices + ending number of vertices + datetime .csv. This file is generated in order to have a look at the complete score of all the algorithms.

mwm_auction_comparison's People

Contributors

zuliani99 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

sehe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.