https://github.com/jbock-java/parmigiano
Finite permutations for Java
https://github.com/jbock-java/parmigiano
education group-theory permutations
Last synced: 24 days ago
JSON representation
Finite permutations for Java
- Host: GitHub
- URL: https://github.com/jbock-java/parmigiano
- Owner: jbock-java
- Created: 2021-12-09T17:51:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-21T16:03:28.000Z (5 months ago)
- Last Synced: 2025-04-13T15:05:25.800Z (24 days ago)
- Topics: education, group-theory, permutations
- Language: Java
- Homepage:
- Size: 246 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/parmigiano)
This library does finite permutations in Java.
### Cycle based
````java
Permutation.cycle(0, 1).apply(List.of("a", "b", "c"));
// => ["b", "a", "c"]
````### Composition
````java
Permutation.cycle(0, 1).compose(2, 3);
// => (0 1) (2 3)
````### Getting all permutations of 5 Elements
````java
Permutation.symmetricGroup(5).count();
// => 120
````Permutation group:
* https://github.com/cicirello/JavaPermutationTools