Coder Social home page Coder Social logo

mihalykoandras / rigidityaugmentations Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 13.89 MB

Fast algorithms on 2 dimensional rigidity and (k,l)-sparsity matroids. M-component hypergraph, transversal on the MCT sets and redundant augmentation in O(|V|^2) time and O(|V|) memory.

License: MIT License

C++ 100.00%
rigid rigidity redundancy augmentation m-component matroid graph-algorithms

rigidityaugmentations's Introduction

M-component hypregraph and redundant augmentation

This project is a C++ implementation of some of the most important algorithms regarding the (k,l)-sparsity matroids. Given a graph, we can find a maximal (k,l)-sparse subgraph, the (k,l)-M-component hypergraph, or a minimal edge-set that makes a (k,l)-tight (hyper)graph (k,l)-redundant. All of these algorithms run in O(|V|^2+|E|) time, which is O(|V|^2) in case of simple graphs.

Theory

The theoretical background of these algorithms is presented in the papers Sparse graphs and an augmentation problem and Globally rigid augmentation of rigid graphs Section 3. This implementation is desribed in details in the PhD dissertation of András Mihálykó, Chapter 8.

Usage

The code is tested with C++14. Can be compiled with g++ by

g++ *.cpp -std=c++14 -O3 -o rigidAugmentations

The driver (main.cpp) accepts two parameters, k and l. Default value is (k,l) = (2,3). For example with the previous compile running

./rigidAugmentations 1 1

will work on the (1,1)-sparsity matroid, (i.e. graphical matroid, aka tree).

The program reads the graph in edge-list form from the standard input and writes to the standard input.

Contribution

The code is under construction, some features are still missing. Any remark on bugs, realization, style or any other contribution is highly appreciated.

rigidityaugmentations's People

Contributors

mihalykoandras avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

haodi-ping

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.