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.0.tar.gz (3.1 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.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ttgen-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 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.0.tar.gz
Algorithm Hash digest
SHA256 348ee2067093f0ad6f64b34cf1c2e7d8e720a6f3a45f431608e41691826075ca
MD5 0b64c9efd44a1c4a509f8a16c5697e3a
BLAKE2b-256 b173224be3e169073a2c7a9f4b588b9b7baddf1f521bc6447469912657842387

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ttgen-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0486e92ac5368163890364cf110eafb1d4553183207eb884007acdb5e245bcd1
MD5 2db16596b47a506260706901b117d33c
BLAKE2b-256 759a452f28633d2c964390d186ab78f0d7bd8d3e4042b8a385bec8199d3d3718

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