We give an exact description of the counting function of a sparse context-free language. Let L be a sparse context-free language and let f(L) be its counting function. Then there exist polynomials p(0), P-1,..., Pk-1, with rational coefficients, and an integerconstant k(0), such that for any n >= k(0) one has f(L) (it) = p(j) (n) where j is such that j equivalent to n mod k. As a consequence one can easily show the decidability of some questions concerning sparse context-free languages. Finally, we show that for any sparse context-free language L there exists a regular language L' such that for any n >= 0 one has f(L) (n) = f(L') (it) and, therefore, f(L) is rational. (c) 2006 Elsevier B.V. All rights reserved.
On the structure of the counting function of sparse context-free languages / D'Alessandro, Flavio; Benedetto, Intrigila; Stefano, Varricchio. - In: THEORETICAL COMPUTER SCIENCE. - ISSN 0304-3975. - 356:1-2(2006), pp. 104-117. [10.1016/j.tcs.2006.01.037]
On the structure of the counting function of sparse context-free languages
D'ALESSANDRO, Flavio;
2006
Abstract
We give an exact description of the counting function of a sparse context-free language. Let L be a sparse context-free language and let f(L) be its counting function. Then there exist polynomials p(0), P-1,..., Pk-1, with rational coefficients, and an integerconstant k(0), such that for any n >= k(0) one has f(L) (it) = p(j) (n) where j is such that j equivalent to n mod k. As a consequence one can easily show the decidability of some questions concerning sparse context-free languages. Finally, we show that for any sparse context-free language L there exists a regular language L' such that for any n >= 0 one has f(L) (n) = f(L') (it) and, therefore, f(L) is rational. (c) 2006 Elsevier B.V. All rights reserved.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.


