FUNCTION: Border2Part - partition associated to a given border
CALLING SEQUENCE:
- Border2Part(border)
- PART[Border2Part](border)
-
PARAMETERS:
- border = a border
SYNOPSIS:
- The Border2Part function gives the partition associated to the border.
- A border delimits the diagram of a partition.
- The border is a list of 0 and 1, 0 denoting an horizontal step of the
border of the diagram, 1 a vertical one.
- The following options are available:
- 'alphabet' = m where m is a list of length 2, returns the
same, m[1] denoting horizontal steps, m[2] vertical ones.
- Whenever there is a conflict between the function name Border2Part and
another name used in the same session, use the long form
PART['Border2Part'].
EXAMPLES:
> with(PART):
> Border2Part([0,1,0,1,0,0,1,1,0,0,1]);
[6, 4, 4, 2, 1]
> Border2Part([a,b,a,b,a,a,b,b,a,a,b], 'alphabet'=[a,b]);
[6, 4, 4, 2, 1]
SEE ALSO: Part2Border Part2Diagonal Part2Conjugate Part2Mat