计算机科学 > 程序设计语言
[提交于 2022年11月22日]
标题:Reversible Programming: A Case Study of Two String-Matching Algorithms
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:String matching is a fundamental problem in algorithm. This study examines the development and construction of two reversible string-matching algorithms: a naive string-matching algorithm and the Rabin-Karp algorithm. The algorithms are used to introduce reversible computing concepts, beginning from basic reversible programming techniques to more advanced considerations about the injectivization of the polynomial hash-update function employed by the Rabin-Karp algorithm. The results are two clean input-preserving reversible algorithms that require no additional space and have the same asymptotic time complexity as their classic irreversible originals. This study aims to contribute to the body of reversible algorithms and to the discipline of reversible programming.
提交历史
来自:EPTCS[v1] 2022年11月22日 星期二 12:32:38 UTC