arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.08127cs.FL
收藏

关于概率词的语言成员复杂性

On the Complexity of Language Membership for Probabilistic Words

Univ. Lille, Inria, CNRS, Centrale Lille, UMR 9189 CRIStAL(里尔大学、法国国家信息与自动化研究所、法国国家科学研究中心、里尔中央理工学院、CRIStAL联合研究实验室);École normale supérieure, Paris(巴黎高等师范学院)

Antoine Amarilli, Mikaël Monet, Paul Raphaël, Sylvain Salvati

AI总结:

研究概率词上下文无关语言成员问题的计算复杂性,证明无歧义CFL可在多项式时间求解,但线性无歧义CFL的并集可能#P-hard,并引入知识编译电路类实现可处理计数。

摘要:

我们研究了概率词上上下文无关语言(CFL)的成员问题,其中每个位置指定了字母上的概率分布。我们的任务是,给定一个概率词,计算根据分布抽取的词属于语言$L$的概率。该问题推广了计算长度为$n$的词中有多少属于$L$,或计算部分词的补全中有多少属于$L$的问题。我们证明,对于无歧义上下文无关语言(uCFL),该问题可以在多项式时间内求解,但对于两个线性uCFL的并集,它可能已经是#P-hard的。更一般地,我们证明对于所谓的多项式切片无歧义语言,该问题可以在多项式时间内求解,其中给定长度$n$,我们可以容易地计算该语言中长度为$n$的词的uCFL。该类包含一些固有歧义语言,并蕴含了有界CFL和由无歧义多项式时间计数器自动机识别的语言的可处理性。然后,我们引入了来自知识编译的电路类,用于可处理计数,并表明这涵盖了多项式切片无歧义语言和一些非多项式切片无歧义CFL的可处理性。用否定扩展这些电路进一步使我们能够证明原始词语言和两个回文串联语言的可处理性。我们还表明,当目标语言作为输入给出时,即使语言仅询问是否存在与一个部分词匹配的因子,我们的问题也是难处理的;然而,当语言以固定$k>0$的$k$歧义自动机给出时,它变得可处理。最后,我们证明了元问题的条件不可判定性,该元问题询问给定CFG,该CFG的概率成员问题是可处理的还是#P-hard的。

英文摘要:

We study the membership problem to context-free languages (CFLs) on probabilistic words, that specify for each position a probability distribution on the letters. Our task is to compute, given a probabilistic word, what is the probability that a word drawn according to the distribution belongs to the language $L$. This problem generalizes the problem of counting how many words of length $n$ belong to $L$, or of counting how many completions of a partial word belong to $L$. We show that this problem is in polynomial time for unambiguous context-free languages (uCFLs), but can be #P-hard already for unions of two linear uCFLs. More generally, we show that the problem is in polynomial time for so-called poly-slicewise-unambiguous languages, where given a length $n$ we can tractably compute an uCFL for the words of length $n$ in the language. This class includes some inherently ambiguous languages, and implies the tractability of bounded CFLs and of languages recognized by unambiguous polynomial-time counter automata. We then introduce classes of circuits from knowledge compilation which we use for tractable counting, and show that this covers the tractability of poly-slicewise-unambiguous languages and of some CFLs that are not poly-slicewise-unambiguous. Extending these circuits with negation further allows us to show tractability for the language of primitive words, and for the language of concatenations of two palindromes. We also show that, when the target language is given as input, our problem is intractable already when the language asks whether there is a factor that matches one partial word; however, it becomes tractable when the language is given as a $k$-ambiguous automaton for any fixed $k>0$. We finally show the conditional undecidability of the meta-problem that asks, given a CFG, whether the probabilistic membership problem for that CFG is tractable or #P-hard.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑