Giter Club home page Giter Club logo

maxflow's Introduction

===================
SYSTEM REQUIREMENTS
===================
-- suitable C++ compiler (preferably gcc >= 3.4)
-- make

This code has been tested using gcc 3.4.2 on Solaris 5.8 (sparc), and
gcc 4.1.2 on GNU Linux 2.6.18 (x86), but should compile fine with any
standard C++ compiler.

===========
COMPILATION
===========
A makefile has been included with this distribution, so to compile the code
it suffices to run the make command.
All the source code is located in the src/ directory, and there is one
test case included so far in the tests/ directory.

=====
USAGE
=====
./maxflow [FILE]

The FILE parameter is optional; if unspecified, it will default to
"challenge.net". Otherwise, it will read the input network from FILE.
The format of the file must be in the DIMACS format, and must be
syntactically correct (otherwise the behaviour is undefined). The
DIMACS format is described in the source code, as well as at the following
webpage: http://lpsolve.sourceforge.net/5.5/DIMACS_maxf.htm

The value of the maximum flow is displayed upon termination of this program.

=========
ALGORITHM
=========
The algorithm used is the highest-level variant of the preflow-push algorithm,
with several heuristics:
- local relabeling heuristic
- gap heuristic
- global relabeling heuristic (actually this is only done twice)
- 2-phase approach

maxflow's People

Contributors

npow avatar

Watchers

James Cloos avatar

Forkers

angiebird

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.