Directed Regular and Context-Free Languages

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Ganardi, Moses, Saglam, Irmak, Zetzsche, Georg
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911760714301440
author Ganardi, Moses
Saglam, Irmak
Zetzsche, Georg
author_facet Ganardi, Moses
Saglam, Irmak
Zetzsche, Georg
contents We study the problem of deciding whether a given language is directed. A language $L$ is \emph{directed} if every pair of words in $L$ have a common (scattered) superword in $L$. 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 $AC^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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_07106
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Directed Regular and Context-Free Languages
Ganardi, Moses
Saglam, Irmak
Zetzsche, Georg
Formal Languages and Automata Theory
Computation and Language
We study the problem of deciding whether a given language is directed. A language $L$ is \emph{directed} if every pair of words in $L$ have a common (scattered) superword in $L$. 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 $AC^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.
title Directed Regular and Context-Free Languages
topic Formal Languages and Automata Theory
Computation and Language
url https://arxiv.org/abs/2401.07106