计算机科学 > 程序设计语言
[提交于 2021年5月7日]
标题:Hashing Modulo Alpha-Equivalence
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In many applications one wants to identify identical subtrees of a program syntax tree. This identification should ideally be robust to alpha-renaming of the program, but no existing technique has been shown to achieve this with good efficiency (better than $\mathcal{O}(n^2)$ in expression size). We present a new, asymptotically efficient way to hash modulo alpha-equivalence. A key insight of our method is to use a weak (commutative) hash combiner at exactly one point in the construction, which admits an algorithm with $\mathcal{O}(n (\log n)^2)$ time complexity. We prove that the use of the commutative combiner nevertheless yields a strong hash with low collision probability. Numerical benchmarks attest to the asymptotic behaviour of the method.
提交历史
来自:Krzysztof Maziarz[v1] 2021年5月7日 星期五 00:00:00 UTC