Lably
Skip to content

Star height

  • 4 min read
  • 4 chapters

Related on Lably

Through Alphabet, Directed graph and Tuple

Formal definition

More formally, the star height of a regular expression E over a finite alphabet A is inductively defined as follows:

  • h(∅)=0, h(ε)=0, and h(a)=0 for all alphabet symbols a in A.
  • h(EF)=h(E∣F)=max(h(E),h(F))
  • h(E∗)=h(E)+1.

Here, ∅ is the special regular expression denoting the empty set and ε the special one denoting the empty word; E and F are arbitrary regular expressions.

The star height h(L) of a regular language L is defined as the minimum star height among all regular expressions representing L. The intuition is here that if the language L has large star height, then it is in some sense inherently complex, since it cannot be described by means of an "easy" regular expression, of low star height.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Computing and communication