arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.20227cs.FLcs.NI
收藏

通过过程发现实现自动机尺寸缩减

Automata Size Reduction by Procedure Finding

Michal Šedý, Lukáš Holík

AI总结:

本文提出通过发现并折叠重复子图为带有限状态寄存器的过程来压缩有限自动机,并在 FPGA 加速模式匹配中对已最小化自动机实现最高 70% 的尺寸缩减。

摘要:

我们提出了一种通过压缩重复子图来缩减有限自动机尺寸的新范式。这些重复子图可被视为对单一过程的调用。无需显式表示每次调用,而是可以用一个单一过程替换它们,该过程使用小型运行时内存来记住调用上下文。我们详细阐述了该想法的一种基础实现的技术细节,其中过程所使用的内存是一个简单的有限状态寄存器。我们提出了用于识别重复子图、将其折叠为过程以及衡量由此产生的自动机尺寸缩减的方法。即便是这种通过过程发现进行缩减的基础实现,也取得了具有实际意义的结果,尤其是在 FPGA 加速模式匹配的场景中,自动机尺寸是其中的主要瓶颈。对于已经使用现有先进方法最小化过的自动机,我们实现了高达 70% 的尺寸缩减。

英文摘要:

We introduce a novel paradigm for reducing the size of finite automata by compressing repeating sub-graphs. These repeating sub-graphs can be viewed as invocations of a single procedure. Instead of representing each invocation explicitly, they can be replaced by a single procedure that uses a small runtime memory to remember the call context. We elaborate on the technical details of a basic implementation of this idea, where the memory used by the procedures is a simple finite-state register. We propose methods for identifying repetitive sub-graphs, collapsing them into procedures, and measuring the resulting reduction in automata size. Already this basic implementation of reduction by procedure finding yields practically relevant results, particularly in the context of FPGA-accelerated pattern matching, where automata size is a primary bottleneck. We achieve a size reduction of up to 70\% in automata that had already been minimized using existing advanced methods.

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

↑