Iterator[Inversion]
LeftInversionToPermutation
convert left inversion table to permutation
Calling Sequence
Parameters
Description
Examples
References
Compatibility
LeftInversionToPermutation(b)
b
-
{list,rtable}; left inversion table
LeftInversionToPermutation constructs the permutation, , of integers 1 to corresponding to the inversion table b, where is the number of elements to the left of in that are greater than .
The b parameter is a left inversion table; it may be a list or one-dimensional rtable indexed from one, with .
The output is an Array indexed from 1 to that contains a permutation of the integers from 1 to .
Knuth, Donald Ervin. The Art of Computer Programming, volume 3, 2nd ed. sorting and searching sec. 5.1.1, inversions, exercise 4, answers, pp. 591-592. See also exercise 5; this can be made , rather than .
The Iterator[Inversion][LeftInversionToPermutation] command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
Iterator
Download Help Document