English

Directed Regular and Context-Free Languages

Formal Languages and Automata Theory 2024-01-22 v2 Computation and Language

Abstract

We study the problem of deciding whether a given language is directed. A language LL is \emph{directed} if every pair of words in LL have a common (scattered) superword in LL. Deciding directedness is a fundamental problem in connection with ideal decompositions of downward closed sets. Another motivation is that deciding whether two \emph{directed} context-free languages have the same downward closures can be decided in polynomial time, whereas for general context-free languages, this problem is known to be coNEXP-complete. We show that the directedness problem for regular languages, given as NFAs, belongs to AC1AC^1, and thus polynomial time. Moreover, it is NL-complete for fixed alphabet sizes. Furthermore, we show that for context-free languages, the directedness problem is PSPACE-complete.

Keywords

Cite

@article{arxiv.2401.07106,
  title  = {Directed Regular and Context-Free Languages},
  author = {Moses Ganardi and Irmak Saglam and Georg Zetzsche},
  journal= {arXiv preprint arXiv:2401.07106},
  year   = {2024}
}
R2 v1 2026-06-28T14:16:02.187Z