Skip to main content

Searching for combinatorial covers.

Project description

CombCov

Build Status Coverage Status Licence

A generalization of the permutation-specific algorithm Struct -- extended for other types of combinatorial objects.

Demo

Take a look at demo/string_set.py as an example on how to use CombCov with your own combinatorial object. It finds a String Set cover for the set of string over the alphabet {a,b} that avoids the substring aa (meaning no string in the set contains aa as a substring).

python -m demo.string_set

It prints out the following:

Trying to find a cover for ''*Av(aa) over ∑={a,b} using elements up to size 7.
(Enumeration: [1, 2, 3, 5, 8, 13, 21, 34])
Solution nr. 1:
 - ''*Av(a,b) over ∑={a,b}
 - 'a'*Av(a,b) over ∑={a,b}
 - 'b'*Av(aa) over ∑={a,b}
 - 'ab'*Av(aa) over ∑={a,b}

Development

Run unittests:

pip install -r tests/requirements.txt
pytest --cov=demo

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

CombCov-0.0.1.tar.gz (3.9 kB view hashes)

Uploaded Source

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