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

[FEATURE] Implement infrastructure to generate permutation #68

Open
4 of 12 tasks
VascoSch92 opened this issue May 28, 2024 · 1 comment
Open
4 of 12 tasks

[FEATURE] Implement infrastructure to generate permutation #68

VascoSch92 opened this issue May 28, 2024 · 1 comment
Labels
feature New feature or request

Comments

@VascoSch92
Copy link
Owner

VascoSch92 commented May 28, 2024

Implement the infrastructure to generate permutation following a specific algorithm.

Proposed API

from symmetria import generate
...
for permutation in generate(algorithm="lexicographic", degree=4):
    print(permutation)

The first step is:

It follows a list of algorithm of permutations we want to implement:

Reference: https://en.wikipedia.org/wiki/Permutation#Numbering_permutations

@VascoSch92 VascoSch92 added the feature New feature or request label May 28, 2024
@VascoSch92
Copy link
Owner Author

VascoSch92 commented Jun 1, 2024

Think about the possible API

import symmetria

permutations = symmetria.generate(...)

We could use the same for random

import symmetria

random = symmetria.random(...)

Until there is no a new version, we can still change that.

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

No branches or pull requests

1 participant