What does $S = \{1,2,3 \}^*$ mean?

$\begingroup$

Apparently, if one adds an asterisk to the right side of a set definition, it means the set to the left can be built out of elements in the set to the right.

How is this so? What does the asterisk officially mean?

$\endgroup$

3 Answers

$\begingroup$

This notation is most common in discrete mathematics. In that context the set $S$ is considered to be an alphabet and $S^*$ just means the set of all finite strings that can be formed with letters from the alphabet. Variants are $S^n$ for the set of all strings of length $n$, and $S^{\le n}$ for the set of all strings with length no more than $n$. These latter two variants are widely used in set theory as well.

$\endgroup$ 3 $\begingroup$

It means whatever it says it means in the place where you found it. Without knowing that context, it could mean anything.

One common meaning is something like what you've said. It could mean all finite strings of symbols made up from the symbols 1, 2, and 3.

$\endgroup$ 0 $\begingroup$

It's called the "Kleene star": see

$\endgroup$

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like