Abstract: In this paper, we consider the graph G(L|w)<math><mi is="true">G</mi><mo stretchy="false" is="true">(</mo><mi is="true">L</mi><mo stretchy="false" is="true">|</mo><mi is="true">w</mi><mo stretchy="false" is="true">)</mo></math>, resp. the directed graph G→(L|w)<math><mover accent="true" is="true"><mrow is="true"><mi is="true">G</mi></mrow><mrow is="true"><mo stretchy="false" is="true">→</mo></mrow></mover><mo stretchy="false" is="true">(</mo><mi is="true">L</mi><mo stretchy="false" is="true">|</mo><mi is="true">w</mi><mo stretchy="false" is="true">)</mo></math>, associated with an arbitrary language ⁎L⊆Σ⁎<math><mi is="true">L</mi><mo is="true">⊆</mo><msup is="true"><mrow is="true"><mi mathvariant="normal" is="true">Σ</mi></mrow><mrow is="true"><mo is="true">⁎</mo></mrow></msup></math> and an arbitrary string ⁎w∈Σ⁎<math><mi is="true">w</mi><mo is="true">∈</mo><msup is="true"><mrow is="true"><mi mathvariant="normal" is="true">Σ</mi></mrow><mrow is="true"><mo is="true">⁎</mo></mrow></msup></math>. The clique number of L is then defined as the supremum of the clique numbers of the graphs G(L|w)<math><mi is="true">G</mi><mo stretchy="false" is="true">(</mo><mi is="true">L</mi><mo stretchy="false" is="true">|</mo><mi is="true">w</mi><mo stretchy="false" is="true">)</mo></math> where w ranges over all strings in ⁎Σ⁎<math><msup is="true"><mrow is="true"><mi mathvariant="normal" is="true">Σ</mi></mrow><mrow is="true"><mo is="true">⁎</mo></mrow></msup></math>. The maximum in- or outdegree of L is defined analogously. We characterize regular languages with an infinite clique number and determine tight upper bounds in the finite case. We obtain analogous results for the maximum indegree and the maximum outdegree of a regular language. As an application, we consider the problem of determining the maximum activity level of a prefix-closed regular language — a parameter that is related to the computational complexity of parsing techniques utilizing unbounded regular lookahead. Finally, we determine the computational complexity of various problems arising from our graph-theoretic approach.
Loading