GithubHelp home page GithubHelp logo

phisco / advanced_algorithms_project Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 624.4 MB

Strongly connected component algorithms implementations using BGL (boost graph library)

License: MIT License

CMake 0.01% C++ 0.13% Shell 0.01% Python 0.01% Jupyter Notebook 2.33% Makefile 0.04% HTML 97.48%

advanced_algorithms_project's Introduction

advance_algorithms_project

Strongly connected component algorithms implementations using BGL (boost graph library)

Files:

Presentation:

Algorithms :

Mains :

  • main.cpp : simple test running the three versions against the bgl implementation on a randomly generated graph, build with g++ -O2 -lboost_graph -lboost_timer main.cpp -o main, run with ./main
  • main_*.cpp : examples of application and timing with graphs passed from stdin in graphml format build with g++ -O2 -lboost_graph -lboost_timer main_*.cpp -o main_*, run with ./main_* < graphml_file
  • test_from_stdin.cpp : runs the four versions of the algorithm against the bgl implementation timing them and checking for correctness, reads graph from stdin in graphml format, used to measure timing samples, build with g++ -O2 -lboost_graph -lboost_timer test_from_stdin.cpp -o test_from_stdin, run with ./test_from_stdin < graphml_file

Scripts :

  • time_test.sh : runs test_from_stdin for each of the graphs in the specified directory and prints to stdout the results (time and correctness), run with ./time_test.sh dir_with_graphs
  • generate_graph.cpp : outputs to stdout a graph in graphml format with a specified number of vertices and probability of having an edge between two vertices, build with g++ -O2 -lboost_graph -lboost_timer generate_graph.cpp -o generate_graph, run with ./generate_graph number_of_vertices edge_probability
  • generate_graph.sh : script generates in a specified direcotory graphs to be used for timing measures, run with ./generate_graph.sh root_dir min_nodes step max_nodes step_edges max_edges
  • test_tc.sh : tests transitive closure over all the graphs in a directory and store to file results
  • read_peaks.sh : reads memory peaks from a specified directory of files outputted from massif and produces a csv with the measurements, run with ./read_peaks.sh massif_files_directory (better cd mem_test/massif_files_directory && ../read_peaks.sh .)
  • read_peaks.py : script used by read_peaks.sh, reads res.txt and produces res.csv

Notebooks :

  • time_analysis.ipynb : notebook taking the output from time_test.sh, generating a csv and plotting the measurements
  • memory.ipynb : notebook taking the output from read_peaks.sh and plotting the measurements

Data :

  • g0_1000/* : randomly generated graphs with 0 to 1000 vertices (V) with step 10 and 0 to 1000 edges, increasing probability s.t. number of edges is between 0 and V*(V-1) with step 10
  • mem_test// : graphs generated to be used for memory profiling
  • res.txt, res.csv : memory usage peaks generated by read_peaks.sh and used for plotting in memory.ipynb
  • time_optimized_0_1000.csv : timeings of the 4 algorithms (tarjan, nuutila, pearce, non recursive pearce) generated by time_test.sh and used for plotting in time_analysis.ipynb
  • tarjan.html,nuutila.html, pearce.html, pearceNR.html : the 3d plots of the timing results for tarjan, nuutila, pearce and pearce not recursive in (V, E, t) space

advanced_algorithms_project's People

Contributors

emaema94 avatar phisco avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ai-mannamalai

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.