计算机科学 > 计算机科学中的逻辑
[提交于 2021年8月23日]
标题:On Specialization of a Program Model of Naive Pattern Matching in Strings (Extended Abstract)
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We have proved that for any pattern p the tail recursive program model of naive pattern matching may be automatically specialized w.r.t. the pattern p to a specialized version of the so-called KMP-algorithm, using the Higman-Kruskal relation that controls the unfolding/folding. Given an input string, the corresponding residual program finds the first occurrence of p in the string in linear time on the string length. The current state of the automated program specialization art based on unfolding/folding is too weak in order to be able to reproduce the proof, done by hands, of the uniform property above, while it known before that program specialization is sometimes able to produce the KMP-algorithm for a few concrete static patterns.
提交历史
来自:Andrei Nemytykh[v1] 2021年8月23日 星期一 17:44:32 UTC