跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2503.10416 (cs)
[提交于 2025年3月13日]

标题:Super-Linear Speedup by Generalizing Runtime Repeated Recursion Unfolding in Prolog

作者:Thom Fruehwirth
查看论文《Super-Linear Speedup by Generalizing Runtime Repeated Recursion Unfolding in Prolog》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Runtime repeated recursion unfolding was recently introduced as a just-in-time program transformation strategy that can achieve super-linear speedup. So far, the method was restricted to single linear direct recursive rules in the programming language Constraint Handling Rules (CHR). In this companion paper, we generalize the technique to multiple recursion and to multiple recursive rules and provide an implementation of the generalized method in the logic programming language Prolog. The basic idea of the approach is as follows: When a recursive call is encountered at runtime, the recursive rule is unfolded with itself and this process is repeated with each resulting unfolded rule as long as it is applicable to the current call. In this way, more and more recursive steps are combined into one recursive step. Then an interpreter applies these rules to the call starting from the most unfolded rule. For recursions which have sufficiently simplifyable unfoldings, a super-linear can be achieved, i.e. the time complexity is reduced. We implement an unfolder, a generalized meta-interpreter and a novel round-robin rule processor for our generalization of runtime repeated recursion unfolding with just ten clauses in Prolog. We illustrate the feasibility of our technique with worst-case time complexity estimates and benchmarks for some basic classical algorithms that achieve a super-linear speedup.
评论: arXiv admin note: substantial text overlap with arXiv:2307.02180
主题: 程序设计语言 (cs.PL); 数据结构与算法 (cs.DS); 性能 (cs.PF); 符号计算 (cs.SC)
引用方式: arXiv:2503.10416 [cs.PL]
  (或者 arXiv:2503.10416v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2503.10416

提交历史

来自:Thom Fruehwirth
[v1] 2025年3月13日 星期四 14:36:48 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-03
切换浏览方式为:
cs
cs.DS
cs.PF
cs.SC

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站