CutWord
A composition of n as the binary word of length n - 1 marking where it is cut.
CutWord(Composition)A composition of n as the binary word of length n - 1 marking where it is cut.Typed signatures
| Type | Package | Applies |
|---|---|---|
(composition) -> binary_word | combinatorics | always |
Details
- Takes a
Compositionand returns aBinaryWord— a typed map, so a wrong carrier is a type error rather than a wrong answer. - Not order-preserving: IntegerCompositions lists compositions lex on their parts, while BinaryWords(n - 1) through Composition(word) gives them in their cut words' order.
Examples
About
| Examples | 1 |
|---|