RUS  ENG
Full version
JOURNALS // Doklady Rossijskoj Akademii Nauk. Mathematika, Informatika, Processy Upravlenia // Archive

Dokl. RAN. Math. Inf. Proc. Upr., 2025 Volume 524, Pages 11–18 (Mi danma652)

MATHEMATICS

On complexity of total derivability problem in noncontracting and context-free grammars

S. M. Dudakovab, B. N. Karlova

a Tver State University
b National Research University Higher School of Economics, Moscow

Abstract: In this paper we study the problem of total derivability in context-free, noncontracting, and context-sensitive grammars. Given a grammar and a terminal word, one has to determine whether there exists a derivation of this word which uses each production no less than a given number of times. It is proved that the problem of total derivability of the emptyword in a context-free grammar is NP-complete. For noncontracting and context-sensitive grammars it is polynomially decidable for words of length 1, and it is NP-complete for every fixed word of length at least 2. Analagous results are obtained for another variant of the problem of total derivability when restrictions are placed on the amount of uses of nonterminals in the derivation.

Keywords: context-free grammar, noncontracting grammar, context-sensitive grammar, total derivability, computational complexity, NP-complete problem.

UDC: 510.52, 519.766.23

Presented: A. L. Semenov
Received: 13.06.2025
Revised: 01.07.2025
Accepted: 04.07.2025

DOI: 10.7868/S3034504925040024



Bibliographic databases:


© Steklov Math. Inst. of RAS, 2026