PermutationSupport
The points moves, in increasing order.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St000673Wolfram LanguagePermutationLength!PermutationMax!PermutationMin!PermutationSupport!PermutationSupport(p)The points moves, in increasing order.Typed signatures
| Type | Package | Applies |
|---|---|---|
(permutation) -> list<integer> | combinatorics | always |
Details
- Defined over
Permutationas an expression in_x, evaluated by compute-engine — the definition IS the implementation. - Wolfram's
Cyclesinput is not read here: wrap a one-line word inPermutation, or turnCyclesinto one with PermutationList first - The identity has an empty support. Its size, largest and smallest points are
Length,MaxandMinof it: Wolfram's PermutationLength, PermutationMax and PermutationMin are not heads here MaxandMinof an empty list are NaN in compute-engine, not Wolfram's −∞ and ∞. Wolfram's PermutationMax and PermutationMin of the identity are 0 and ∞, so those compositions carry the bound:Max(0, …)andMin(Infinity, …)- Takes a
Permutationand nothing else — it reads values against their positions, or walks the orbits, so it needs the bijection. Applying it to a bare list is a type error, not a wrong answer.
Definition
Epsil, as the implementation runs it.
on Permutation, over _x
[] if Length(_x) < 1 else Fold(Function(
Join(a, [b]) if Abs(_x[b] - b) > 0 else a,
a,
b,
), [], Range(1, Length(_x)))Examples
Basic #
Scope #
Properties #
the identity moves nothing; the bound 0 is Wolfram's answer
live ↗InOut
Known value · wolframscript 15.0
the identity moves nothing, so there is no smallest point; the bound infinity is Wolfram's answer
live ↗InOut
Known value · wolframscript 15.0
About
| Examples | 26 |
|---|---|
| Checked against | Wolfram Language 24 agree2 differ |
| Crosswalk | FindStatWolfram Language ×4 |