Home
Scholarly Works
On lengths of words in context-free languages
Journal article

On lengths of words in context-free languages

Abstract

We consider slender languages, that is, languages for which the number of words of the same length is bounded from above by a constant. It is known that the slender context-free languages are precisely the unions of paired loops, that is, finite unions of sets of the form {uvnwxny|n⩾0}. Analysing the structure of the derivation trees of such loops, we find some upper bounds for the lengths of words in the loops of a slender context-free language, i.e., the words u,v,w,x,y in the notation above. These upper bounds depend on the given language only. Using this result, we give two new and simple proofs for the decidability of the slenderness problem for context-free languages. Moreover, due to the constructivity of our proof, we are able to find effectively a representation as union of paired loops for an arbitrary slender context-free language; even a representation as a disjoint such union. As a consequence, we prove that the maximal number of words of the same length is computable. Finally, some undecidable problems are investigated.

Authors

Ilie L

Journal

Theoretical Computer Science, Vol. 242, No. 1-2, pp. 327–359

Publisher

Elsevier

Publication Date

July 6, 2000

DOI

10.1016/s0304-3975(98)00266-7

ISSN

0304-3975

Contact the Experts team