Giter VIP home page Giter VIP logo

one-sided-crossing-minimization's Introduction

INF562 - OCM Problem

Author: Thibaut de Saivre

A solver for the One-sided crossing minimization problem.
See the PDF report here.
See some python benchmarks here. The challenge outputs are in the output folder.

Quickstart

CLI

Run the CLI solver with the following command:

cargo run  --bin ocm-cli -- -a median -v datasets/tiny/complete_4_5.gr

GTK

A GTK GUI is available. However, it requires GTK4. Installation instructions are available here. The Rust book of GTK4.

You can then check the gtk version on your machine:

pkg-config --modversion gtk4

Then run the GUI with:

cargo run --release --bin ocm-gtk -- -a median datasets/tiny/complete_4_5.gr

Run the CLI solver for large graphs and time it with:

cargo run --release --bin ocm-cli -- -a median -v datasets/large/25.gr

Project structure

This project uses cargo workspaces.

├── datasets     # Graph datasets for testing
│   ├── large
│   ├── medium
│   └── tiny
├── ocm-cli      # CLI program for solving the OCM problem
├── ocm-gtk      # GTK GUI for solving the OCM problem
├── ocm-parser   # Graph dataset parser
├── ocm-plotter  # Plotting functions
├── ocm-solver   # Implementation logic
├── output       # Challenge outputs
└── report       # LateX report

Benchmarks

Various benchmarks are available using tests.

  • line_sweep_crossings benchmarked over all datasets, in the crossings.rs file.

ISSUE: the benchmarks run very long for 2 of the large dataset files. You can interrupt the benchmark early, as the results are progressively written to the crossings_benchmark.csv file.

Run them with the following command:

cargo test -- --nocapture # Do not capture stdout so that we can see progress indicators in stdout

one-sided-crossing-minimization's People

Contributors

gnrlleclerc 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.