https://github.com/jbock-java/parmigiano
Finite permutations for Java
https://github.com/jbock-java/parmigiano
education group-theory permutations
Last synced: 16 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: 2025-06-13T19:55:33.000Z (18 days ago)
- Last Synced: 2025-06-13T20:37:15.728Z (18 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