Free String Monoids¶
AUTHORS:
- David Kohel <kohel@maths.usyd.edu.au>, 2007-01
Sage supports a wide range of specific free string monoids.
-
sage.monoids.string_monoid.
AlphabeticStringMonoid
¶ The free alphabetic string monoid on generators A-Z.
EXAMPLES:
sage: S = AlphabeticStrings(); S Free alphabetic string monoid on A-Z sage: S.gen(0) A sage: S.gen(25) Z sage: S([ i for i in range(26) ]) ABCDEFGHIJKLMNOPQRSTUVWXYZ
-
sage.monoids.string_monoid.
AlphabeticStrings
¶ The free alphabetic string monoid on generators A-Z.
EXAMPLES:
sage: S = AlphabeticStrings(); S Free alphabetic string monoid on A-Z sage: S.gen(0) A sage: S.gen(25) Z sage: S([ i for i in range(26) ]) ABCDEFGHIJKLMNOPQRSTUVWXYZ
-
sage.monoids.string_monoid.
BinaryStringMonoid
¶ The free binary string monoid on generators \(\{ 0, 1 \}\).
-
sage.monoids.string_monoid.
BinaryStrings
¶ The free binary string monoid on generators \(\{ 0, 1 \}\).
-
sage.monoids.string_monoid.
HexadecimalStringMonoid
¶ The free hexadecimal string monoid on generators \(\{ 0, 1, \dots, 9, a, b, c, d, e, f \}\).
-
sage.monoids.string_monoid.
HexadecimalStrings
¶ The free hexadecimal string monoid on generators \(\{ 0, 1, \dots, 9, a, b, c, d, e, f \}\).
-
sage.monoids.string_monoid.
OctalStringMonoid
¶ The free octal string monoid on generators \(\{ 0, 1, \dots, 7 \}\).
-
sage.monoids.string_monoid.
OctalStrings
¶ The free octal string monoid on generators \(\{ 0, 1, \dots, 7 \}\).
-
sage.monoids.string_monoid.
Radix64StringMonoid
¶ The free radix 64 string monoid on 64 generators.
-
sage.monoids.string_monoid.
Radix64Strings
¶ The free radix 64 string monoid on 64 generators.
-
sage.monoids.string_monoid.
StringMonoid_class
¶ A free string monoid on \(n\) generators.