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

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

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

arXiv:2611.30206 (cs)
[提交于 2026年11月23日]

标题:Location-Aware Matching Statistics

作者:Lorraine A. K. Ayad, Grigorios Loukides, Solon P. Pissis
查看论文《Location-Aware Matching Statistics》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:Edit distance is the standard measure of string similarity, but its quadratic-time complexity is prohibitive for long strings. Popular linear-time alternatives, such as the $q$-gram distance, or the average common substring measure (ACS) that is based on matching statistics (MS), consider the substrings shared by the two input strings but not where they occur in each string. Yet in many real-world applications, e.g., when comparing document versions or co-recorded time series, a shared substring is really relevant only if its occurrences are close in position. We introduce Location-Aware Matching Statistics (LAMAS). Given strings $X$ and $Y$ and a displacement tolerance $d$, LAMAS reports, for every position $i$ of $Y$, the longest substring starting at $i$ that occurs in $X$ at a position $j$ with $|j-i|\le d$, together with the displacement $(j-i)$. MS is the special case of LAMAS with unbounded $d$. Our main result is an algorithm that solves LAMAS in $\mathcal{O}(n)$ time and space for strings of length at most $n$ and any $d$; this is optimal and matches the complexity of MS. The algorithm reduces LAMAS to predecessor and successor queries over a sliding window of suffix ranks and answers them in linear total time via a window decomposition and interval union-find. Experiments on 20 real datasets and synthetic data show that LAMAS substantially improves over MS and $q$-gram distance in similarity-based classification, top-$K$ retrieval, and clustering. It is competitive with edit distance and a constrained dynamic time warping variant in classification and generally outperforms a state-of-the-art method for top-$K$ retrieval under edit distance. Finally, our implementation of the main algorithm for LAMAS scales linearly in $n$ and does not slow down as $d$ grows.
主题: 数据结构与算法 (cs.DS); 数据库 (cs.DB)
引用方式: arXiv:2611.30206 [cs.DS]
  (或者 arXiv:2611.30206v1 [cs.DS] 对于此版本)
  https://doi.org/10.48550/arXiv.2611.30206

提交历史

来自:Solon Pissis
[v1] 2026年11月23日 星期一 07:43:02 UTC (404 KB)
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.DS
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-11
切换浏览方式为:
cs
cs.DB

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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