Skip to main content

Efficient algorithm for generating all unique k-combinations of a set with duplicates, based on the algorithm by Tadao Takaoka (2015, O(1) Time Generation of Adjacent Multiset Combinations)

Project description

TTGen

Efficient algorithm for generating all unique k-combinations of a set with duplicates, based on the algorithm by Tadao Takaoka (2015, O(1) Time Generation of Adjacent Multiset Combinations).

This is a pure Python implementation of the Pascal code provided by Tadao Takaoka in the linked article.

Installation

Via pip

pip install ttgen

Locally for development via

pip install -e .

Publishing

Remember to increment the version number in pyproject.toml first.

python -m build
python -m twine upload dist/ttgen-X.Y.Z*

Maintenance

  • pytest to run unit tests

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

ttgen-1.0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

ttgen-1.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file ttgen-1.0.1.tar.gz.

File metadata

  • Download URL: ttgen-1.0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for ttgen-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8c8c139b5c425b4d1957b24b52c4e0b980f0cde0b93d46ebe305106619b3f463
MD5 fcf91d80c28f63e18b4132db40af0168
BLAKE2b-256 fede7fe137593db33488d04dd6e18ac7ef82b96029210bbbb3f5cf1fdfdd9372

See more details on using hashes here.

File details

Details for the file ttgen-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ttgen-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for ttgen-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0ece8229799b0a20f80f7afcf77577e86fbf15d23884350a6460ccf714abcd9
MD5 3821b512493851f9cacfe0a9cb97ebca
BLAKE2b-256 48194d7a95beeee0c57a8882379a85e0c56ac0c6198baa7f016e5bba5001e926

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