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) |
>
|
|
![["01", "10", "10", "01", "10", "01", "01", "10", "10", "01", "01", "10", "01", "10", "10", "01", "10", "01", "01", "10", "01", "10", "10", "01", "01", "10", "10", "01", "10", "01"]](/support/helpjp/helpview.aspx?si=5728/file03057/math70.png)
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?