encyclopegia.org

Star height

In theoretical computer science, more precisely in the theory of formal languages, the star height is a measure for the structural complexity of regular expressions and regular languages.[src] The star height of a regular expression equals the maximum nesting depth of stars appearing in that expression.[src] The star height of a regular language is the least star height of any regular expression for that language.[src] The concept of star height was first defined and studied by Eggan (1963).[src]

In theoretical computer science, more precisely in the theory of formal languages, the star height is a measure for the structural complexity of regular expressions and regular languages.[src] The star height of a regular expression equals the maximum nesting depth of stars appearing in that expression.[src] The star height of a regular language is the least star height of any regular expression for that language.[src] The concept of star height was first defined and studied by Eggan (1963).[src] ==Formal definition== More formally, the star height of a regular expression E over a finite alphabet A is inductively defined as follows: \textstyle h\left(\emptyset\right)\,=\,0 , \textstyle h\left(\varepsilon\right)\,=\,0 , and \textstyle h\left(a\right)\,=\,0 for all alphabet symbols a in A.[src] \textstyle h\left(E F\right)\,=\, h\left(E\, \mid\, F\right)\,=\,\max \left(\, h(E), h(F)\,\right) \textstyle h\left(E^*\right)\,=\,h(E)+1.[src] Here, \scriptstyle \emptyset is the special regular expression denoting the empty set and ε the special one denoting the empty word; E and F are arbitrary regular expressions.[src] The star height h(L) of a regular language L is defined as the minimum star height among all regular expressions representing L.[src] 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.[src] ==Examples== While computing the star height of a regular expression is easy, determining the star height of a language can be sometimes tricky.[src] For illustration, the regular expression \textstyle \left(b\, \mid\, a a^*b\right)^*a a^* over the alphabet A = {a,b} has star height 2.[src] However, the described language is just the set of all words ending in an a: thus the language can also be described by the expression \textstyle (a\, \mid\, b)^*a which is only of star height 1.[src] To prove that this language indeed has star height 1, one still needs to rule out that it could be described by a regular expression of lower star height.[src] For our example, this can be done by an indirect proof: One proves that a language of star height 0 contains only finitely many words.[src] Since the language under consideration is infinite, it cannot be of star height 0.[src] The star height of a group language is computable: for example, the star height of the language over {a,b} in which the number of occurrences of a and b are congruent modulo 2 n is n.[src] ==Eggan's theorem== transforms it into the regular expression , which has star-height 2.[src] By Eggan's theorem, an equivalent regular expression of star-height ≤1 must exist.[src] In fact, describes the same language.]] In his seminal study of the star height of regular languages, established a relation between the theories of regular expressions, finite automata, and of directed graphs.[src] In subsequent years, this relation became known as Eggan's theorem, cf.[src] .[src] We recall a few concepts from graph theory and automata theory.[src] In graph theory, the cycle rank r(G) of a directed graph (digraph) is inductively defined as follows: If G is acyclic, then .[src] This applies in particular if G is empty.[src] If G is strongly connected and E is nonempty, then r(G) = 1 + \min_{v\in V} r(G-v),\, where is the digraph resulting from deletion of vertex and all edges beginning or ending at .[src] If G is not strongly connected, then r(G) is equal to the maximum cycle rank among all strongly connected components of G.[src] In automata theory, a nondeterministic finite automaton with ε-transitions (ε-NFA) is defined as a 5-tuple, (Q, Σ, δ, q 0 , F), consisting of a finite set of states Q a finite set of input symbols Σ a set of labeled edges δ, referred to as transition relation: Q × (Σ ∪{ε}) × Q.[src] Here ε denotes the empty word.[src] an initial state q 0 ∈ Q a set of states F distinguished as accepting states F ⊆ Q.[src] A word w ∈ Σ * is accepted by the ε-NFA if there exists a directed path from the initial state q 0 to some final state in F using edges from δ, such that the concatenation of all labels visited along the path yields the word w.[src] The set of all words over Σ * accepted by the automaton is the language accepted by the automaton A.[src] When speaking of digraph properties of a nondeterministic finite automaton A with state set Q, we naturally address the digraph with vertex set Q induced by its transition relation.[src] Now the theorem is stated as follows.[src] Eggan's Theorem: The star height of a regular language L equals the minimum cycle rank among all nondeterministic finite automata with ε-transitions accepting L.[src] Proofs of this theorem are given by , and more recently by .[src] ==Generalized star height== The above definition assumes that regular expressions are built from the elements of the alphabet A using only the standard operators set union, concatenation, and Kleene star.[src] Generalized regular expressions are defined just as regular expressions, but here also the set complement operator is allowed (the complement is always taken with respect to the set of all words over A).[src] If we alter the definition such that taking complements does not increase the star height, that is, \textstyle h\left(E^c\right)\,=\,h(E) we can define the generalized star height of a regular language L as the minimum star height among all generalized regular expressions representing L.[src] It is an open problem whether some languages can only be expressed with a generalized star height greater than one: this is the generalized star-height problem.[src] Note that, whereas it is immediate that a language of (ordinary) star height 0 can contain only finitely many words, there exist infinite languages having generalized star height 0.[src] For instance, the regular expression \textstyle (a\, \mid\, b)^*a, which we saw in the example above, can be equivalently described by the generalized regular expression \textstyle \emptyset^c a , since the complement of the empty set is precisely the set of all words over A.[src] Thus the set of all words over the alphabet A ending in the letter a has star height one, while its generalized star height equals zero.[src] Languages of generalized star height zero are also called star-free languages.[src] It can be shown that a language L is star-free if and only if its syntactic monoid is aperiodic ( ).[src] ==See also== Star height problem Generalized star height problem ==References==[src]

49 sentences · 49 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Star height." encyclopegia.org, 2023, https://encyclopegia.org/wiki/star-height. Accessed 01 December 2026.

Chicago

"Star height." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/star-height.

APA

encyclopegia.org. (2023). Star height. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/star-height

Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Star Trek

stub · references available

giant star

stub · references available

circumpolar star

stub · references available

Sagittarius Star Cloud

stub · references available

Barnard's Star

stub · references available

Death Star

stub · references available

Star Destroyer

stub · references available

Star One

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1188056294 · 0.5 · snapshot enwiki-001188056294

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.