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

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

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

arXiv:2503.20465 (cs)
[提交于 2025年3月26日]

标题:Linear-Time Graph Programs without Preconditions

作者:Ziad Ismaili Alaoui, Detlef Plump
查看论文《Linear-Time Graph Programs without Preconditions》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:We report on a recent breakthrough in rule-based graph programming, which allows us to reach the time complexity of imperative linear-time algorithms. In general, achieving the complexity of graph algorithms in conventional languages using graph transformation rules is challenging due to the cost of graph matching. Previous work demonstrated that with rooted rules, certain algorithms can be executed in linear time using the graph programming language GP 2. However, for non-destructive algorithms that retain the structure of input graphs, achieving linear runtime required input graphs to be connected and of bounded node degree. In this paper, we overcome these preconditions by enhancing the graph data structure generated by the GP 2 compiler and exploiting the new structure in programs. We present three case studies, a cycle detection program, a program for numbering the connected components of a graph, and a breadth-first search program. Each of these programs runs in linear time on both connected and disconnected input graphs with arbitrary node degrees. We give empirical evidence for the linear time complexity by using timings for various classes of input graphs.
评论: In Proceedings GCM 2023 and 2024, arXiv:2503.19632. arXiv admin note: substantial text overlap with arXiv:2501.09144
主题: 程序设计语言 (cs.PL); 计算机科学中的逻辑 (cs.LO); 性能 (cs.PF)
引用方式: arXiv:2503.20465 [cs.PL]
  (或者 arXiv:2503.20465v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2503.20465
期刊参考: EPTCS 417, 2025, pp. 39-54
相关 DOI: https://doi.org/10.4204/EPTCS.417.3

提交历史

来自:EPTCS
[v1] 2025年3月26日 星期三 11:51:12 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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