RUS  ENG
Full version
JOURNALS // Diskretnaya Matematika // Archive

Diskr. Mat., 2003 Volume 15, Issue 4, Pages 84–99 (Mi dm217)

This article is cited in 2 papers

On the complexity of the string generation problem

A. S. Okhotin


Abstract: We consider the problem of generating strings that belong to certain languages and satisfy some additional restrictions. Languages are defined by formal grammars and automata. The following formulation of this problem as a decision one is proposed: for a language represented by a formal grammar or an automaton and a pair of strings, determine whether there exists a string in this language that lies lexicographically between these strings. It is proved that this problem is NLOGSPACE-complete for deterministic and nondeterministic finite automata and for linear context-free grammars; P-complete for context-free grammars of the general form; NP-complete for alternating finite automata, for conjunctive grammars and for linear conjunctive grammars; PSPACE-complete for context-sensitive grammars and linear bounded automata.

UDC: 519.7

Received: 10.06.2002

DOI: 10.4213/dm217


 English version:
Discrete Mathematics and Applications, 2003, 13:5, 467–482

Bibliographic databases:


© Steklov Math. Inst. of RAS, 2024