A string of length
on an alphabet of
characters is an arrangement of
not necessarily distinct symbols from . There are such distinct strings.
For example, the strings of length on the alphabet are ,
, , ,
, , ,
and .
In the Wolfram Language, strings of length in the alphabet
consisting of the members of a list can be enumerated using Tuples[list,
n].
See also
Alphabet,
Ball Picking,
Binomial Coefficient,
Choose,
Combination,
List,
Multichoose,
Multinomial Coefficient,
Multiset,
n-Tuple,
Permutation,
Substring,
Word
Explore with Wolfram|Alpha
References
Skiena, S. "Strings." §1.5.1 in Implementing Discrete Mathematics: Combinatorics and Graph Theory with Mathematica. Reading,
MA: Addison-Wesley, p. 40, 1990.Referenced on Wolfram|Alpha
String
Cite this as:
Weisstein, Eric W. "String." From MathWorld--A
Wolfram Web Resource. https://mathworld.wolfram.com/String.html
Subject classifications