Skip to main content

MM is a package for running the greedy cover algorithm to perform multiset multicover.

Project description

This package implements the Greedy Cover algorithm for multisets

in C++ and exposes it to Python. Given a universe of elements U, and a family of subsets F = {S1, …, Sn} of U, the set cover problem asks to find the smallest number of sets in F such that every element of U appears in at least one such set. This can be extended to a multicover problem, where we ask that every element be included at least k sets. This in turn, can be extended to accomodate multisets, where each element in Si also has a given multiplicity.

The set cover problem is NP hard. The best known algorithm is a greedy approach that iteratively selects the set with the largest number of elements that have not been covered yet. This algorithm has a log(n)-approximation guarantee where n is the size of the largest set. The same guarantee also applies to the multicover problem, as well as the multiset multicover problem (n here corresponds to the size of the largest set, counting multiplicities).

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

multiset_multicover-1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distributions

multiset_multicover-1.0-cp311-cp311-win_amd64.whl (23.7 kB view details)

Uploaded CPython 3.11 Windows x86-64

multiset_multicover-1.0-cp311-cp311-win32.whl (21.2 kB view details)

Uploaded CPython 3.11 Windows x86

multiset_multicover-1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (246.1 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

multiset_multicover-1.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (238.0 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

multiset_multicover-1.0-cp311-cp311-macosx_10_9_x86_64.whl (27.8 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

multiset_multicover-1.0-cp310-cp310-win_amd64.whl (23.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

multiset_multicover-1.0-cp310-cp310-win32.whl (21.2 kB view details)

Uploaded CPython 3.10 Windows x86

multiset_multicover-1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (245.8 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

multiset_multicover-1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (237.6 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

multiset_multicover-1.0-cp310-cp310-macosx_10_9_x86_64.whl (27.8 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

multiset_multicover-1.0-cp39-cp39-win_amd64.whl (23.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

multiset_multicover-1.0-cp39-cp39-win32.whl (21.2 kB view details)

Uploaded CPython 3.9 Windows x86

multiset_multicover-1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (245.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

multiset_multicover-1.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (237.4 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686

multiset_multicover-1.0-cp39-cp39-macosx_10_9_x86_64.whl (27.8 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

multiset_multicover-1.0-cp38-cp38-win_amd64.whl (23.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

multiset_multicover-1.0-cp38-cp38-win32.whl (21.2 kB view details)

Uploaded CPython 3.8 Windows x86

multiset_multicover-1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (245.2 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

multiset_multicover-1.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (236.9 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686

multiset_multicover-1.0-cp38-cp38-macosx_10_9_x86_64.whl (27.7 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

multiset_multicover-1.0-cp37-cp37m-win_amd64.whl (23.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

multiset_multicover-1.0-cp37-cp37m-win32.whl (21.2 kB view details)

Uploaded CPython 3.7m Windows x86

multiset_multicover-1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (245.0 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

multiset_multicover-1.0-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl (236.6 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ i686

multiset_multicover-1.0-cp37-cp37m-macosx_10_9_x86_64.whl (27.6 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file multiset_multicover-1.0.tar.gz.

File metadata

  • Download URL: multiset_multicover-1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for multiset_multicover-1.0.tar.gz
Algorithm Hash digest
SHA256 c1f8ccbf5ec583208b2c621167953fc5d967650fb9c8da27fcf69c65cea28ad8
MD5 e5d2b0bed506101ad9cf9f5a8b140dea
BLAKE2b-256 ec05bbf0285c3d5fb1934f9eb723ab296320a57f0cde90fbf9ccf185b0b817fb

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 285e800eebc51fb95c4d9c781f54359a387845c08fcc29eb8a371c97fa91e9dd
MD5 c055c7170b79f966c5228f4038bf0754
BLAKE2b-256 a5bda8a04764b4df5f988f436db45e2378885d719ea7e069acc0d829b6fb6ecf

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 43501b8c03632ac5c67ce626f27b76c8aaa36ff2394239f9726120519ede5715
MD5 a44ebe1ddbaa5fe0ad7ebb0bf0d8467c
BLAKE2b-256 5c6b280ccf943f578983682c573c8e9df8eacb6eff5cb6643ed45d291b001625

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b471d606fa76db0208d693835715011f52108dc6cd45668c2f9d56756db4363a
MD5 a3d0cddc4d0ffa4467c28f88120d527f
BLAKE2b-256 2d4ecdfa3b477e1b8488708c6727c703143e438844bdb07aca265c46ed44afae

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 2a67a8589dd876525ac70d11fca879fa8e93eb9b73280bfa209b7f5372357648
MD5 45c26de22efc67244b3545b657a4a088
BLAKE2b-256 d156375e21751f6c9f8db95cbde12a41accab75f71867e9e156317852a867d03

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f43673779d63f0c6922d5f97d45b04cd784a76eb45655ab1bb398811dc77eb71
MD5 9f64515239d4d513ecb4d63d2ce28053
BLAKE2b-256 7cbd543735aefedc41a5fb0d8337505c8b54337b5bcd2939d7f17e17cf0efd2d

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ab10c5414f89f932b89099b06071ab996b174d5e1b04827fba4b98f4075fcd71
MD5 26c1d4dd9d146ef751e74b5d54a02f33
BLAKE2b-256 ea0d47f71244d34872ce577f4977f570c67145f6a489e7808c88c93d5c30aea6

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d3c26b79ca6ca8435fbf6c5d95a1ab65d1aa32dc6975cd5fdad922f6405b5cd9
MD5 6a3b439936a70edd4bddce9383b517ec
BLAKE2b-256 4aca51b6f39a34290ea6849154013aad512e157b4c71846efc84b12d37b57427

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf3e14d42e45ea6fed0d20ea3ba2a72007302396f6b129726a63c8681a7f4822
MD5 e0c2dde5d692fe3c55cd7538e45ebc6e
BLAKE2b-256 9742f6a93d3db5d4a7971d2eca198cab83702484957f75548ab8045335ef8426

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 6f81eddc6894abe4a13325d49df31aa93c2abde3e4a036212c0fbe11b86f3da5
MD5 688b4cbc09d08722683befdf761df04c
BLAKE2b-256 f14e418cab8d94c723a698af3fa2d4d3e4424c5abecd5ad86b80f0c7109bd4e3

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c5569d0a3d1bb0791b77dcbdf52a9e96c165b9cea032cf8d26c49a460c1c6f63
MD5 bd4b47c95d41c313763b53ffecb84157
BLAKE2b-256 9e530a826f213bf5a66f8039327bc14affe97f88ae97093cd6fd0a05b299d7eb

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4d392b5ccee2cb762012c1fb656720a82720a6af6e8ab5d3ee19b686bb2db46f
MD5 24e6cc5a88838a624253e5964e227823
BLAKE2b-256 5bbc37e7793e5364e5545dd3a2fba0dd67647fb2da5c7c0cef6e08af235c132b

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp39-cp39-win32.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a172f5da90369862d7e9b892d561cc76b550906a20f6cfc9e30b39da8c18e61f
MD5 73cb3f463868de3776fd69f245ce9346
BLAKE2b-256 9fe09a80b7b883b25d5e8a29fc4ee3f860f992ba599c90c24b68fc2d8b074552

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1fca5d7e4d1df1b67a7eb36ef41d7f7863ca681caba99fbdb58572e0a776a864
MD5 d21536dcdcc287b2b4910f58d0df9662
BLAKE2b-256 69a74de08aaaa3f36eabd410ee23320dbf0a7e8ac0af4251971d0c0399b85ead

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 471f98d968cbe0f8a05d291c9d991499b90416e5e3c3f7bfe045c034617dd0b9
MD5 3f7d4b371fb734b30ca932abe4a8fd70
BLAKE2b-256 b2a0cbc962fc9e354d5372963e5616b034d823e02416828b3611bf3a3ad82623

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a0dd014191abf34625694bcd897a0ca4fe234eb1b83fb4326935cbc7a08e5880
MD5 08455ba48ca861378f27afc52fbd061c
BLAKE2b-256 043539c2c41a83870089a479e34661a2b2a61c011ed501cc8fdc323aa622be7c

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a2b1d37321faa127a50c1e5887c76ced5bc7d75408c4206fc3cd7a70d2ce6baf
MD5 924c58810b921e7b57edc3ca14e46c2a
BLAKE2b-256 ccbf354496e87517821b65d3f4fe28d14bb91b71b53fc42bd58ff6f1ecd40601

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp38-cp38-win32.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 61c970e50bc4dc71ea7d444616fd2d0aa0cdb6f8e626097c740240a16821d6a8
MD5 87f68aa78064628b171bcded09a758b9
BLAKE2b-256 0c9f0f4efa40614959ea07112faa5b4a2445324cf0cf3fce1e39a0f3a529ecc8

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d8287552b58ba5258dbd6f84ff870d86f26fa3839161266eef40290b228bc945
MD5 7c8934212f36ffbb47eacaf46402a223
BLAKE2b-256 a1e060fe9d32d60622c4dec752180e54f8d9323d5eb9f082d9bb0c90844b219b

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 d9493adc916e61df2feed8c621e9bf76dbb5601bc6cfd2af18a6a69ea7d4dc9c
MD5 f175e529cfadb7917668d98c11d99b98
BLAKE2b-256 e31d754f66b366fb76b7a8709f1dadad6f68eb90ea163a16cbdd69bad35da6bf

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 56b92eeff64ed0ad502cb23bdc203c9cb7a348d6ad72e11f940522a956c20c17
MD5 1af0e4e26d499c47ae431a31cc9e8eba
BLAKE2b-256 ca2d9e11aea4c26fbb7cec5b96aefdb8f7cf9789e57d3656b5c3adbddcdc1d6b

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 876cb989a1317adab8567c19bd2b0bffa7f5d03f2faa9f114fb46e033bdfb0a5
MD5 d7487b2193ee98227138412b492d4fc8
BLAKE2b-256 1d32b94ef3ee682513c7c2585740ab761c834f8d9a7e77dd92934db756a1e424

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp37-cp37m-win32.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 0f175a8ffd0d1d86f86fe155339c16b62a4fa7a87f258149f8e5e2f1cb62e1ac
MD5 d397cca41265ddf807cae7034e09eb01
BLAKE2b-256 b24cd155aa2ba57ed602bf7b445b322e4c1ecf43b52d3b589074497f471ef902

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 205429f9ed906ad96d021119c4b703576766a25e4e8c946d56fc563a328a29d7
MD5 d918a7aec7921f75ae352ea2a1ee1c95
BLAKE2b-256 663556d2f93c3054d2ef1c1f6e65d0f1ff9c11858db1e97b1c9f767717fecefd

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 e689b4d0c6a6cf397622ee49d12fd83aaa17eb7e3bbe72aa7247cd9f7d1f9277
MD5 dc71acff2c3c2197ab1e115ef30068a6
BLAKE2b-256 71ac249dce870be756bc3c3d47c8baa8d1e57460fd1d1d58f036d622dc830bf4

See more details on using hashes here.

File details

Details for the file multiset_multicover-1.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for multiset_multicover-1.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1cfe40988faa8cba58589c3d9ccf72ccf683a8555fa1d9021cf383bbfac68d51
MD5 5eb7aea512f39f3fe27f203cbe8fa6eb
BLAKE2b-256 e2d2f3c15d05b258f82c9e314c397c7dbf55bbfdbd91068c5b97f632da7336e8

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