Giter VIP home page Giter VIP logo

ford-fulkerson's Introduction

GRAPH GENERATOR:
This Java program creates random graphs and conducts a comprehensive analysis of their properties using various algorithms for finding augmenting paths. The generated graphs are saved 
as text files for further examination. The algorithms implemented are part of the Ford-Fulkerson maximum flow algorithm.

HOW TO USE:
Compile the Java code and run the program using the following commands:

javac GraphGenerator.java
java GraphGenerator

The program generates graphs for diverse combinations of parameters, such as the number of vertices (n), radius (r), and upper capacity (upperCap). The resulting graphs are saved in 
separate text files, e.g., graph1.txt, graph2.txt, etc.

GENERATE GRAPH:

The generated graphs include information about vertices, edges, source, and sink. The graph files are formatted for easy readability and analysis.

ALGORITHM ANALYSIS:

Different algorithms are employed to find augmenting paths, and their properties are analyzed. The results are printed in the console, detailing the number of augmenting paths, average length, mean proportional length, total edges, and max flow for each algorithm.

Parameters
n: An array of integers representing the number of vertices in the graphs.
r: An array of doubles representing the radius of the graphs.
upperCap: An array of integers representing the upper capacity of edges in the graphs.
File Naming Convention
The generated graph files adhere to the naming convention: graph{counter}.txt, where {counter} denotes a sequential number.

RESULTS
The results of the algorithm analysis are displayed in the console, providing insights into the performance of each algorithm. The output includes columns for the number of augmenting paths, average length of augmenting paths, mean proportional length, total edges, and max flow for each algorithm.

ADDITIONAL INFORMATION
The program utilizes the Ford-Fulkerson algorithm with distinct augmenting path selection strategies.

ford-fulkerson's People

Contributors

simran-99 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.