Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiset_permutations iterator #1003

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

lpewewq
Copy link

@lpewewq lpewewq commented Dec 13, 2024

Implementation of an iterator adaptor that generates all unique multiset permutations for the given iterator. Based on the algorithm presented in this paper by Aaron Williams.

Pro: It is substantially more efficient than chaining permutations and unique.

Con: It can not handle infinite iterators

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.41%. Comparing base (6814180) to head (d9347c8).
Report is 129 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1003      +/-   ##
==========================================
+ Coverage   94.38%   94.41%   +0.02%     
==========================================
  Files          48       50       +2     
  Lines        6665     6844     +179     
==========================================
+ Hits         6291     6462     +171     
- Misses        374      382       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant