Skip to main content

A command-line tool for automatically classifying LCL problems on regular trees in the polynomial region.

Project description

Description

This folder contains a program that decides round complexity of homogenous LCL problems on (binary) trees in the polynomial region.

Usage

  1. Install package using pip by running pip3 install ..

  2. Run python -m poly_classifier and describe (on standard input) configurations of a problem. For example:

Note that one needs to first run the classifier (python -m poly_classifier) and only afterwards provide an input on a separate lines.

> python -m poly_classifier 
Polynomial classifier for homogenous trees (currently for binary rooted & unrooted trees)
For unrooted case, use node configuration in form: 'A B C' and edge configurations in form 'A B'
For rooted case, use only node configurations in form 'A: B C'.
Node configurations: (each configuration on a new line and end with empty line)
a a a
b b b

Edge configurations: (each configuration on a new line and end with empty line)
a b

Complexity of the problem is Θ(n^(1/1)).

Tests

To execute tests, run the following from the root directory:

python -m unittest discover

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

poly-classifier-0.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

poly_classifier-0.0.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file poly-classifier-0.0.1.tar.gz.

File metadata

  • Download URL: poly-classifier-0.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/60.10.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.12

File hashes

Hashes for poly-classifier-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a6b51143ad95b6ffdb9f919c0de5189defb024c85a3ba4b8064ebb1075bedb12
MD5 f8a3bbf30f338e4e86c3c704805308f7
BLAKE2b-256 28405bdb7954c228520908e4371a6ebb42be6de82190298fcc088adc861fab5a

See more details on using hashes here.

File details

Details for the file poly_classifier-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: poly_classifier-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/60.10.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.12

File hashes

Hashes for poly_classifier-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4468ad658dee383f50ed8af4da0ddab8d61f642bfc9384feeda0f835f21cc12
MD5 c4f5545791638947b5c08ac3857bffc9
BLAKE2b-256 1d2219e07771ae77de719a0cbd997e1f828e20dd5c086fc33208f8fc5d42a2a7

See more details on using hashes here.

Supported by

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