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

正则约束下的拓扑排序

Topological Sorting under Regular Constraints

Antoine Amarilli, Charles Paperman

摘要:

我们引入了约束拓扑排序问题(CTS):给定一个正则语言K和一个有向无环图G,确定G是否有一个拓扑排序能在K中形成一个字.这个自然问题适用于几种设置,例如,成本调度或验证并发程序。本文考虑了问题CTS[K],其中目标语言K是固定的,并研究了它的复杂性依赖于K。我们证明了当K属于几个语言家族时,CTS[K]是易处理的,例如,单项式的并集,其可用于模式匹配。然而,我们证明了CTS[K]对于K =(ab)^* 是NP难的,并引入了一种洗牌归约技术来证明更多语言的难度。我们还研究了特殊情况下的约束洗牌问题(CSh),输入图是一个不相交的联盟字符串,并表明,CSH[K]是额外的听话时,K是一个组语言或联盟的区域组单项式。我们猜想,二分法应该保持CTS[K]或CSH[K]的复杂性取决于K,并通过在不同的问题措辞下证明一个更粗糙的二分法来证实这一点,这确保了易处理的语言在常见的操作符下是封闭的。

英文摘要:

We introduce the constrained topological sorting problem (CTS): given a regular language K and a directed acyclic graph G with labeled vertices, determine if G has a topological sort that forms a word in K. This natural problem applies to several settings, e.g., scheduling with costs or verifying concurrent programs. We consider the problem CTS[K] where the target language K is fixed, and study its complexity depending on K. We show that CTS[K] is tractable when K falls in several language families, e.g., unions of monomials, which can be used for pattern matching. However, we show that CTS[K] is NP-hard for K = (ab)^* and introduce a shuffle reduction technique to show hardness for more languages. We also study the special case of the constrained shuffle problem (CSh), where the input graph is a disjoint union of strings, and show that CSh[K] is additionally tractable when K is a group language or a union of district group monomials. We conjecture that a dichotomy should hold on the complexity of CTS[K] or CSh[K] depending on K, and substantiate this by proving a coarser dichotomy under a different problem phrasing which ensures that tractable languages are closed under common operators.

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

↑