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

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

计算机科学 > 数据结构与算法

arXiv:2107.01752 (cs)
[提交于 2021年8月20日 (v1),最后修订于 2021年8月20日 (此版本, v3)]

标题:Dynamic programming by polymorphic semiring algebraic shortcut fusion

作者:Max A. Little, Xi He, Ugur Kayas
查看论文《Dynamic programming by polymorphic semiring algebraic shortcut fusion》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Dynamic programming (DP) is an algorithmic design paradigm for the efficient, exact solution of otherwise intractable, combinatorial problems. However, DP algorithm design is often presented in an ad-hoc manner. It is sometimes difficult to justify algorithm correctness. To address this issue, this paper presents a rigorous algebraic formalism for systematically deriving DP algorithms, based on semiring polymorphism. We start with a specification, construct an algorithm to compute the required solution which is self-evidently correct because it exhaustively generates and evaluates all possible solutions meeting the specification. We then derive, through the use of shortcut fusion, an implementation of this algorithm which is both efficient and correct. We also demonstrate how, with the use of semiring lifting, the specification can be augmented with combinatorial constraints, showing how these constraints can be fused with the algorithm. We furthermore demonstrate how existing DP algorithms for a given combinatorial problem can be abstracted from their original context and re-purposed. This approach can be applied to the full scope of combinatorial problems expressible in terms of semirings. This includes, for example: optimal probability and Viterbi decoding, probabilistic marginalization, logical inference, fuzzy sets, differentiable softmax, relational and provenance queries. The approach, building on ideas from the existing literature on constructive algorithmics, exploits generic properties of polymorphic functions, tupling and formal sums and algebraic simplifications arising from constraint algebras. We demonstrate the effectiveness of this formalism for some example applications arising in signal processing, bioinformatics and reliability engineering. Python software implementing these algorithms can be downloaded from: http://www.maxlittle.net/software/dppolyalg.zip.
评论: Updated v22 with revised text
主题: 数据结构与算法 (cs.DS); 机器学习 (cs.LG); 环与代数 (math.RA)
引用方式: arXiv:2107.01752 [cs.DS]
  (或者 arXiv:2107.01752v3 [cs.DS] 对于此版本)
  https://doi.org/10.48550/arXiv.2107.01752
期刊参考: Formal Aspects of Computing, May 2024
相关 DOI: https://doi.org/10.1145/3664828

提交历史

来自:Max Little
[v3] 2021年8月20日 星期五 22:48:38 UTC
全文链接:

访问论文:

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

当前浏览上下文:

cs.LG
< 上一篇   |   下一篇 >
最新 | 近期 | 2021-08
切换浏览方式为:
cs
cs.DS
math.RA

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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