Giter Club home page Giter Club logo

grast's Introduction

GraST

GrasT is a C++ implementation of some streaming graph algorithms. Currently, GraST implements two graph problems: 1) approximate maximum weight matching and 2) approximate minimum weight edge cover. GraST supports two ways to simulate streams: 1) edge read one by one from a matrix market (MTX) format file, which is used to report memory and overall runtime performance, and 2) read all the edges from a file (only support mtx format for now) and then stream from memory, which is used to compare the algorithmic time to the offline algorithms. Please see the following paper for details on the implementation and results for streaming matching and edge cover. Also, if you use GraST, please cite this paper.

@InProceedings{ferdous_et_al:LIPIcs.SEA.2024.12,
author =	{Ferdous, S M and Pothen, Alex and Halappanavar, Mahantesh},
title =	{{Streaming Matching and Edge Cover in Practice}},
booktitle =	{22nd International Symposium on Experimental Algorithms (SEA 2024)},
pages =	{12:1--12:22},
series =	{Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN =	{978-3-95977-325-6},
ISSN =	{1868-8969},
year =	{2024},
volume =	{301},
editor =	{Liberti, Leo},
publisher =	{Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address =	{Dagstuhl, Germany},
URL =		{https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.SEA.2024.12},
URN =		{urn:nbn:de:0030-drops-203773},
doi =		{10.4230/LIPIcs.SEA.2024.12},
annote =	{Keywords: Matching, Edge Cover, Semi-Streaming Algorithm, Parallel Algorithms, Algorithm Engineering}

}

Description

The src directory contains the implementation of the streaming matching, edge covering, and few auxiliary algorithms. The StreamMatch.cc source file implements two semi-streaming matching algorithms: The $\frac{1}{2+\epsilon}$ Paz and Swartzman [2], and the $1/6$-approximate due to Feigenbaum et al [1]. The StreamEC.cc file has the implementation of three new streaming edge cover algorithm. See the detailed description of these algorithms in

Compilation

  1. Clone the GrasT github repo git clone https://github.com/smferdous1/GraST-copy.git
  2. Create a build directory and change current directory to the build one: mkdir -p build && cd build
  3. Generate the make files: cmake ..
  4. Generate the binaries: make

This should create several binaries in the build/apps directory. The stmatch and stec are the two binaries that can be used to execte the streaming matching and edge covering algorithms, respectively. Executing these binaires with -h flag provides with detailed description of the usage.

References

[1] Joan Feigenbaum, Sampath Kannan, Andrew McGregor, Siddharth Suri, and Jian Zhang. On graph problems in a semi-streaming model. Theor. Comput. Sci., 348(2-3):207–216, 2005. doi:10.1016/j.tcs.2005.09.013.

[2] Ami Paz and Gregory Schwartzman. A (2 + ε)-approximation for maximum weight matching in the semi-streaming model. In Proceedings of the ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2153–2161, 2017

Please contact S M Ferdous ([email protected] or [email protected]) if you have any questions!

grast's People

Contributors

smferdous1 avatar

Watchers

 avatar

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.