Permutation Tools
Browse all available permutation tools.
Available tools
- Index Permutation Composition Compose index permutations by applying first then second to each index; composition convention is explicit and operand lengths must agree.
- Index Permutation Cycle Table Decompose an index permutation into disjoint cycles, including fixed points and starting each cycle at its smallest unseen index.
- Index Permutation Fixed Points List all fixed input indexes of a validated complete permutation in ascending original order.
- Index Permutation Integer Power Raise an index permutation to an exact signed integer power by cycle offsets, including negative inverse powers and zero identity.
- Index Permutation Inverse Invert a complete zero-based index permutation, treating its entries as the image of each input index.
- Index Permutation Orbit Return the orbit of an explicit index under a validated permutation, starting at the requested index and omitting the repeated closure.
- Index Permutation Order Return exact permutation order as the least common multiple of cycle lengths; the empty permutation has order one.
- Index Permutation Sign Compute permutation parity from its disjoint-cycle count, not from numeric value signs; empty and identity permutations are even.
- Index Permutation Validator Audit a proposed zero-based index permutation with invalid positions, duplicates and missing indexes; malformed evidence is reported rather than accepted.
- Lehmer Code Permutation Decoder Decode a bounded Lehmer code by selecting each digit from the remaining sorted index universe; invalid digit ranges are rejected.
- Next Lexicographic Permutation Return the next lexicographic index permutation without wraparound; null marks the boundary of the permutation order.
- Permutation Adjacent Swap Distance Compute the minimum adjacent-swap distance between two index permutations by relative inversion count; no arbitrary value sorting.
- Permutation Cycle Notation Formatter Format canonical zero-based disjoint permutation cycles with an explicit fixed-point display policy; no one-based convention implied.
- Permutation Cycle Notation Parser Parse zero-based disjoint cycle notation on an explicit index universe; overlapping cycles are rejected instead of interpreted as cycle products.
- Permutation Lehmer Code Encode a validated index permutation as a Lehmer inversion code with one digit per original position.
- Permutation Lexicographic Rank Return a zero-based exact lexicographic permutation rank as decimal integer text; no floating factorial approximation.
- Permutation Lexicographic Unrank Unrank a zero-based lexicographic index permutation from exact integer text and an explicit bounded size.
- Permutation Unrestricted Swap Distance Compute minimum unrestricted swap distance between two index permutations from relative cycle count; adjacent-swap distance is different.
- Previous Lexicographic Permutation Return the previous lexicographic index permutation without wraparound; null marks the boundary of the permutation order.