arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.04834cs.LGcs.CC
收藏

学习正则表达式的难度

On the Hardness of Learning Regular Expressions

Institute for Data, Econometrics, Algorithms, and Learning (IDEAL)(数据、计量经济学、算法和学习研究所);University of Illinois at Chicago(伊利诺伊大学芝加哥分校);Toyota Technological Institute at Chicago(芝加哥丰田技术研究所);Weizmann Institute of Science(魏茨曼科学研究院)

Idan Attias, Lev Reyzin, Nathan Srebro, Gal Vardi

AI总结:

研究在PAC模型和成员查询下学习正则表达式的计算难度,证明即使在均匀分布下也困难,且不依赖于DFA/NFA的现有结果。

摘要:

尽管正则表达式具有理论重要性和广泛的实践应用,但学习它们的计算复杂度在很大程度上尚未被探索。我们研究了在PAC模型和成员查询下非恰当学习正则表达式的计算难度。我们证明,即使在超立方体上的均匀分布下,PAC学习也是困难的,并且还证明了在成员查询下无分布学习的难度。此外,如果正则表达式扩展了补集或交集操作,我们建立了即使在均匀分布下使用成员查询学习的难度。我们强调,这些结果并不源于现有的关于学习DFA或NFA的难度结果,因为正则语言在DFA、NFA和正则表达式之间的描述复杂度可能呈指数级差异。

英文摘要:

Despite the theoretical significance and wide practical use of regular expressions, the computational complexity of learning them has been largely unexplored. We study the computational hardness of improperly learning regular expressions in the PAC model and with membership queries. We show that PAC learning is hard even under the uniform distribution on the hypercube, and also prove hardness of distribution-free learning with membership queries. Furthermore, if regular expressions are extended with complement or intersection, we establish hardness of learning with membership queries even under the uniform distribution. We emphasize that these results do not follow from existing hardness results for learning DFAs or NFAs, since the descriptive complexity of regular languages can differ exponentially between DFAs, NFAs, and regular expressions.

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

↑