Skip to main content

No project description provided

Project description

PACE 2024 Verifier

This package can be used to verify a given solution against a set of crossing counting algorithms. For more information check the pace website.

Installation

Install the verifier from pip:

$ pip install pace2024-verifier

Usage

Verifier

To verify a solution use the following command:

$ pace2024verify <path/to/graph.gr> <path/to/solution.sol>

The verifiery has three different methods for verification usable via the switches:

  • --segtree = Use a segment tree to count the crossings. [default]
  • --interleave = Count the crossings by checking for each pair of edges if they interleave.
  • --stacklike = Count the crossings by checking how many pairs are out of order in a one-sided book embedding.

There is also the option to only print the number of crossings via -c/--only-crossings.

Tester

To test a solver against a set of tests use:

$ pace2024tester <solver>

where <solver> has to be an executable. So if for example you run your solver via a shell-script solver.sh run the command $ pace2024tester solver.sh. The solver will then be run using the tiny test set. The instances and solutions of this set are included with the verifier. To add your own tests create a folder mytests containing a subfolder instances and a subfolder <solutions>. You can then run

$ pace2024tester --test <path/to/mytests> <solver>

and the tester will check the solver against this test set. You can also suppply multiple test sets via

$ pace2024tester --test <path/to/mytests1> --test <path/to/mytests2> <solver>

For each instance in an instances folder we match it to the same-named file in the solutions folder. The provided solver is then executed on each instance and the pace2024verifier is used to check the results. If you do not want to use the tiny test set you can switch it off using:

$ pace2024tester --no-tiny --test <path/to/mytests1> --test <path/to/mytests2> <solver>

By default the tester assumes that the solver uses files for input and output and calls it as:

$ <solver> path/to/input path/to/output

If you prefer using stdin or stdout use the following switches:

  • --instanceas file/stdin = provide the input file as a path to the file or on stdin
  • --solutionas file/stdin = expect the output to be written to a file or on stdout

For solution files the tester creates temporary file using the tempdir library of python. All created files are deleted by this library after execution.

Finally, for easier parsable output you can use the flag:

  • --only-compare/-c which prints only the line Testing now <instancename>... followed by the string <crossingssolver>,<crossingssolution>.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pace2024_verifier-0.3.5.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pace2024_verifier-0.3.5-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file pace2024_verifier-0.3.5.tar.gz.

File metadata

  • Download URL: pace2024_verifier-0.3.5.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.6.8-arch1-1

File hashes

Hashes for pace2024_verifier-0.3.5.tar.gz
Algorithm Hash digest
SHA256 fdd742868d8d2e775d9c31e24728580796d57de502e4bd240e2eb02ab0d4f0f8
MD5 832f80a8706f6805adbe01ba6f1abf21
BLAKE2b-256 2d5d7287bec04c9640b5a2e0d849a2174a51f181543df5207f96ed66f39490bd

See more details on using hashes here.

File details

Details for the file pace2024_verifier-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: pace2024_verifier-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.6.8-arch1-1

File hashes

Hashes for pace2024_verifier-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 09a8938ac319af3953d08fb6693517e7372304a7d63add47bc69bcf9f7862198
MD5 85118db39d6b932eec8f73288c9c297a
BLAKE2b-256 06c6729aff7da08f28ceb15d6ed502ac37cdf308dcfb9f3eb7686893e03467c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page