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

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

计算机科学 > 离散数学

arXiv:2312.13644 (cs)
[提交于 2023年12月21日]

标题:Theoretical analysis of git bisect

作者:Julien Courtiel, Paul Dorbec, Romain Lecoq
查看论文《Theoretical analysis of git bisect》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:In this paper, we consider the problem of finding a regression in a version control system (VCS), such as git. The set of versions is modelled by a Directed Acyclic Graph (DAG) where vertices represent versions of the software, and arcs are the changes between different versions. We assume that somewhere in the DAG, a bug was introduced, which persists in all of its subsequent versions. It is possible to query a vertex to check whether the corresponding version carries the bug. Given a DAG and a bugged vertex, the Regression Search Problem consists in finding the first vertex containing the bug in a minimum number of queries in the worst-case scenario. This problem is known to be NP-complete. We study the algorithm used in git to address this problem, known as git bisect. We prove that in a general setting, git bisect can use an exponentially larger number of queries than an optimal algorithm. We also consider the restriction where all vertices have indegree at most 2 (i.e. where merges are made between at most two branches at a time in the VCS), and prove that in this case, git bisect is a $\frac{1}{\log_2(3/2)}$-approximation algorithm, and that this bound is tight. We also provide a better approximation algorithm for this case. Finally, we give an alternative proof of the NP-completeness of the Regression Search Problem, via a variation with bounded indegree.
评论: Algorithmica, 2023
主题: 离散数学 (cs.DM); 数据结构与算法 (cs.DS)
引用方式: arXiv:2312.13644 [cs.DM]
  (或者 arXiv:2312.13644v1 [cs.DM] 对于此版本)
  https://doi.org/10.48550/arXiv.2312.13644
相关 DOI: https://doi.org/10.1007/s00453-023-01194-0

提交历史

来自:Romain Lecoq
[v1] 2023年12月21日 星期四 08:13:40 UTC
全文链接:

访问论文:

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

当前浏览上下文:

cs.DM
< 上一篇   |   下一篇 >
最新 | 近期 | 2023-12
切换浏览方式为:
cs
cs.DS

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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