Star Height of Regular Expression and Regular Language (original) (raw)

Last Updated : 13 Apr, 2026

The star height relates to the field of theoretical computation (TOC). It is used to indicate the structural complexity of regular expressions and regular languages. In this context, complexity refers to the maximum nesting depth of Kleene stars present in a regular expression. A regular language may be represented by multiple equivalent regular expressions, each having different star heights based on their structure.

star_height_0

**Generalized Star Height

The generalized star height defines the minimum nesting depth of Kleene stars required to describe the language using a generalized regular expression.

For example, consider the language (a+b)* over the alphabet set {a,b}:

  1. (a + b)^* → **Star height = 1
  2. (a^* b^*)^* → **Star height = 2

Since we consider the least star height, the star height of the regular language “aba” is 1.

Recursive rules for Star Height

The **star height of a regular expression is formally defined as:

**Examples of Star Height

**Advantages of Considering Star Height

**1. Complexity Analysis

**2. Expressive Power Assessment

**3. Design Considerations

**Disadvantages of Considering Star Height

**1. Limited to Regular Languages

**2. Overemphasis on Repetition

**3. Computational Limitations

**4. Star Height May Not Correlate with Real-World Applications