Kleene Star on a Small Language

The Kleene star contains all concatenations of zero or more words from its input language.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace one repeated unit
  2. Check the input unit carefully
  3. Generate short words from repeated block choices
  4. Distinguish block count from character count

Trace one repeated unit

Starting with the language containing ab, star produces empty, ab, abab, and longer repetitions. Taking zero units gives the empty word.

Check the input unit carefully

The star of the language containing a and b includes all binary-alphabet strings written with those two symbols. Repeating ab as one unit gives a stricter language. See language concatenation.[1]

Generate short words from repeated block choices

For \(L=\{ab,c\}\), the star includes the empty word, each block and concatenations including abc and cab. Word aba cannot be segmented into full allowed blocks. See concatenating words.

Zero blocks: ε
One block: ab, c
Two blocks: abab, abc, cab, cc
Three blocks include ccc of length 3

Distinguish block count from character count

Different blocks can have different lengths. To list every result up to a character budget, bound total length and remove duplicate generated words. Empty blocks require care because they may add no length.

References

  1. Michael Sipser, Introduction to the Theory of Computation ↩