确定型有限自动机压缩的难度与近似算法
Hardness and Approximation for Compressing Deterministic Finite Automata
AI总结:
本文研究最优$\text{D}^2\text{FA}$的压缩问题,证明其为NP难问题,标准森林限制方法提供$3/2$近似且该比是紧的。
摘要:
延迟确定型有限自动机($\text{D}^2\text{FA}$)是一种强大的工具,用于压缩现代基于签名的深度包检测系统中使用的大到难以处理的确定型有限自动机(DFA)。$\text{D}^2\text{FA}$通过添加未标记的默认转换来增强DFA,以移除相似的转换。该技术在实践中效果良好,并启发了大量后续研究。然而,现有方法无法保证得到最优大小的$\text{D}^2\text{FA}$,因为它们限制默认转换形成森林。在本文中,我们研究寻找最优$\text{D}^2\text{FA}$的问题。我们的关键观察是,默认转换的环是有效的,且能生成更小的$\text{D}^2\text{FA}$,前提是对于字母表中的每个字符,环中至少有一个状态有以该字符为标签的出转换。这一观察提出了关于寻找最优$\text{D}^2\text{FA}$的计算复杂性以及标准(受森林限制)方法的近似保证的基本问题。我们通过证明寻找最优$\text{D}^2\text{FA}$是NP难的,且标准方法能提供最优解的$3/2$近似,来回答这两个问题。为证明NP难性,我们使用带有小装置的DFA构造了从集合覆盖问题的归约,其中有效的默认转换选择对应于选择集合。为证明近似比,我们将最优解中的环与默认转换形成森林的变体进行比较。最后,我们通过构造的DFA族证明该$3/2$比是紧的。
英文摘要:
The delayed deterministic finite automaton ($\text{D}^2\text{FA}$) is a powerful tool for compressing the prohibitively large deterministic finite automata (DFAs) used in modern signature-based deep packet inspection systems. A $\text{D}^2\text{FA}$ augments a DFA with unlabeled default transitions to remove transitions that are similar. This technique works well in practice and has inspired numerous subsequent studies. However, existing approaches do not guarantee a $\text{D}^2\text{FA}$ of optimal size as they restrict the default transitions to form a forest. In this paper, we consider the problem of finding an optimal $\text{D}^2\text{FA}$. We make the key observation that cycles of default transitions can be valid and produce a smaller $\text{D}^2\text{FA}$, provided that for every character in the alphabet, at least one state in the cycle has an outgoing transition labeled by that character. This observation raises fundamental questions concerning the computational complexity of finding an optimal $\text{D}^2\text{FA}$ and the approximation guarantee of the standard (forest-restricted) approach. We answer both questions by showing that it is NP-hard to find an optimal $\text{D}^2\text{FA}$ and by proving that the standard approach provides a $3/2$-approximation to the optimum. To establish NP-hardness, we construct a reduction from set cover using a DFA with gadgets where valid default transition choices correspond to selecting sets. To prove our approximation ratio, we compare the cycles in an optimal solution to a variant where the default transitions form a forest. Finally, we demonstrate that this $3/2$ ratio is tight via a constructed family of DFAs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。