StringTools
MinimumConjugate
compute the lexicographically least conjugate of a string
Calling Sequence
Parameters
Description
Examples
MinimumConjugate( s )
s
-
Maple string
The MinimumConjugate(s) command computes, efficiently, the lexicographically least conjugate of the word (string) s. The conjugates of a word are its cyclic permutations.
All of the StringTools package commands treat strings as (null-terminated) sequences of 8-bit (ASCII) characters. Thus, there is no support for multibyte character encodings, such as unicode encodings.
with⁡StringTools:
MinimumConjugate⁡abc
abc
MinimumConjugate⁡bca
MinimumConjugate⁡bac
acb
See Also
string
StringTools[IsConjugate]
StringTools[LyndonFactors]
Download Help Document