StringTools[MonotonicFactors] - compute the (left-to-right) monotonic factorization of a string
|
Calling Sequence
|
|
MonotonicFactors( w )
|
|
Description
|
|
•
|
The MonotonicFactors(w) command produces the monotonic factorization of the string w. It returns a list of strings whose catenation is the string w, such that each string in the list is maximal monotonic (either increasing or decreasing).
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?