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 the Lehmer code of a permutation #51

Open
VascoSch92 opened this issue May 24, 2024 · 0 comments
Open

[FEATURE] Implement the Lehmer code of a permutation #51

VascoSch92 opened this issue May 24, 2024 · 0 comments
Labels
feature New feature or request

Comments

@VascoSch92
Copy link
Owner

VascoSch92 commented May 24, 2024

Implement a method for the classes Permutation and CycleDecomposition which returns the Lehmer code.

Proposed API:

def lehmer_code(self) -> int:
    ...

Reference: https://en.wikipedia.org/wiki/Lehmer_code#:~:text=In%20mathematics%20and%20in%20particular,example%20of%20an%20inversion%20table.

@VascoSch92 VascoSch92 added the feature New feature or request label May 24, 2024
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