压缩连续模式匹配

IF 3.4 2区 计算机科学 Q2 COMPUTER SCIENCE, INFORMATION SYSTEMS
Paweł Gawrychowski , Garance Gourdel , Tatiana Starikovskaya , Teresa Anna Steiner
{"title":"压缩连续模式匹配","authors":"Paweł Gawrychowski ,&nbsp;Garance Gourdel ,&nbsp;Tatiana Starikovskaya ,&nbsp;Teresa Anna Steiner","doi":"10.1016/j.is.2025.102607","DOIUrl":null,"url":null,"abstract":"<div><div>Originating from the work of Navarro and Thankachan [TCS 2016], the problem of consecutive pattern matching is a variant of the fundamental pattern matching problem. In this problem, one is given a text and a pair of patterns <span><math><mrow><msub><mrow><mi>p</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>,</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>2</mn></mrow></msub></mrow></math></span>, and must compute consecutive occurrences of <span><math><mrow><msub><mrow><mi>p</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>,</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>2</mn></mrow></msub></mrow></math></span> in the text. Assuming that the text is given as a straight-line program of size <span><math><mi>g</mi></math></span>, we develop an algorithm that computes all consecutive occurrences of <span><math><mrow><msub><mrow><mi>p</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>,</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>2</mn></mrow></msub></mrow></math></span> in optimal <span><math><mrow><mi>O</mi><mrow><mo>(</mo><mi>g</mi><mo>+</mo><mrow><mo>|</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>|</mo></mrow><mo>+</mo><mrow><mo>|</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>2</mn></mrow></msub><mo>|</mo></mrow><mo>+</mo><mi>output</mi><mo>)</mo></mrow></mrow></math></span> time, where <span><math><mi>output</mi></math></span> is the size of the output. As a corollary, we also derive an algorithm that reports all co-occurrences separated by a distance <span><math><mrow><mi>d</mi><mo>∈</mo><mrow><mo>[</mo><mi>a</mi><mo>,</mo><mi>b</mi><mo>]</mo></mrow></mrow></math></span> in <span><math><mrow><mi>O</mi><mrow><mo>(</mo><mi>g</mi><mo>+</mo><mrow><mo>|</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>|</mo></mrow><mo>+</mo><mrow><mo>|</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>2</mn></mrow></msub><mo>|</mo></mrow><mo>+</mo><mi>output</mi><mo>)</mo></mrow></mrow></math></span> time and an algorithm that reports the top-<span><math><mi>k</mi></math></span> closest co-occurrences in <span><math><mrow><mi>O</mi><mrow><mo>(</mo><mi>g</mi><mo>+</mo><mrow><mo>|</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>|</mo></mrow><mo>+</mo><mrow><mo>|</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>2</mn></mrow></msub><mo>|</mo></mrow><mo>+</mo><mi>k</mi><mo>)</mo></mrow></mrow></math></span> time.</div></div>","PeriodicalId":50363,"journal":{"name":"Information Systems","volume":"136 ","pages":"Article 102607"},"PeriodicalIF":3.4000,"publicationDate":"2025-08-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Compressed consecutive pattern matching\",\"authors\":\"Paweł Gawrychowski ,&nbsp;Garance Gourdel ,&nbsp;Tatiana Starikovskaya ,&nbsp;Teresa Anna Steiner\",\"doi\":\"10.1016/j.is.2025.102607\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Originating from the work of Navarro and Thankachan [TCS 2016], the problem of consecutive pattern matching is a variant of the fundamental pattern matching problem. In this problem, one is given a text and a pair of patterns <span><math><mrow><msub><mrow><mi>p</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>,</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>2</mn></mrow></msub></mrow></math></span>, and must compute consecutive occurrences of <span><math><mrow><msub><mrow><mi>p</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>,</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>2</mn></mrow></msub></mrow></math></span> in the text. Assuming that the text is given as a straight-line program of size <span><math><mi>g</mi></math></span>, we develop an algorithm that computes all consecutive occurrences of <span><math><mrow><msub><mrow><mi>p</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>,</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>2</mn></mrow></msub></mrow></math></span> in optimal <span><math><mrow><mi>O</mi><mrow><mo>(</mo><mi>g</mi><mo>+</mo><mrow><mo>|</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>|</mo></mrow><mo>+</mo><mrow><mo>|</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>2</mn></mrow></msub><mo>|</mo></mrow><mo>+</mo><mi>output</mi><mo>)</mo></mrow></mrow></math></span> time, where <span><math><mi>output</mi></math></span> is the size of the output. As a corollary, we also derive an algorithm that reports all co-occurrences separated by a distance <span><math><mrow><mi>d</mi><mo>∈</mo><mrow><mo>[</mo><mi>a</mi><mo>,</mo><mi>b</mi><mo>]</mo></mrow></mrow></math></span> in <span><math><mrow><mi>O</mi><mrow><mo>(</mo><mi>g</mi><mo>+</mo><mrow><mo>|</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>|</mo></mrow><mo>+</mo><mrow><mo>|</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>2</mn></mrow></msub><mo>|</mo></mrow><mo>+</mo><mi>output</mi><mo>)</mo></mrow></mrow></math></span> time and an algorithm that reports the top-<span><math><mi>k</mi></math></span> closest co-occurrences in <span><math><mrow><mi>O</mi><mrow><mo>(</mo><mi>g</mi><mo>+</mo><mrow><mo>|</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>|</mo></mrow><mo>+</mo><mrow><mo>|</mo><msub><mrow><mi>p</mi></mrow><mrow><mn>2</mn></mrow></msub><mo>|</mo></mrow><mo>+</mo><mi>k</mi><mo>)</mo></mrow></mrow></math></span> time.</div></div>\",\"PeriodicalId\":50363,\"journal\":{\"name\":\"Information Systems\",\"volume\":\"136 \",\"pages\":\"Article 102607\"},\"PeriodicalIF\":3.4000,\"publicationDate\":\"2025-08-28\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Information Systems\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0306437925000912\",\"RegionNum\":2,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q2\",\"JCRName\":\"COMPUTER SCIENCE, INFORMATION SYSTEMS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Information Systems","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0306437925000912","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, INFORMATION SYSTEMS","Score":null,"Total":0}
引用次数: 0

摘要

连续模式匹配问题起源于Navarro和Thankachan [TCS 2016]的工作,是基本模式匹配问题的一种变体。在这个问题中,给定一个文本和一对模式p1,p2,并且必须计算文本中p1,p2的连续出现次数。假设文本作为大小为g的直线程序给出,我们开发了一种算法,该算法计算最优O(g+|p1|+|p2|+输出)时间内所有连续出现的p1,p2,其中输出是输出的大小。作为推论,我们还推导出一种算法,该算法在O(g+|p1|+|p2|+输出)时间内报告距离d∈[a,b]的所有共现,以及一种算法,该算法在O(g+|p1|+|p2|+k)时间内报告最接近的前k个共现。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Compressed consecutive pattern matching
Originating from the work of Navarro and Thankachan [TCS 2016], the problem of consecutive pattern matching is a variant of the fundamental pattern matching problem. In this problem, one is given a text and a pair of patterns p1,p2, and must compute consecutive occurrences of p1,p2 in the text. Assuming that the text is given as a straight-line program of size g, we develop an algorithm that computes all consecutive occurrences of p1,p2 in optimal O(g+|p1|+|p2|+output) time, where output is the size of the output. As a corollary, we also derive an algorithm that reports all co-occurrences separated by a distance d[a,b] in O(g+|p1|+|p2|+output) time and an algorithm that reports the top-k closest co-occurrences in O(g+|p1|+|p2|+k) time.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Information Systems
Information Systems 工程技术-计算机:信息系统
CiteScore
9.40
自引率
2.70%
发文量
112
审稿时长
53 days
期刊介绍: Information systems are the software and hardware systems that support data-intensive applications. The journal Information Systems publishes articles concerning the design and implementation of languages, data models, process models, algorithms, software and hardware for information systems. Subject areas include data management issues as presented in the principal international database conferences (e.g., ACM SIGMOD/PODS, VLDB, ICDE and ICDT/EDBT) as well as data-related issues from the fields of data mining/machine learning, information retrieval coordinated with structured data, internet and cloud data management, business process management, web semantics, visual and audio information systems, scientific computing, and data science. Implementation papers having to do with massively parallel data management, fault tolerance in practice, and special purpose hardware for data-intensive systems are also welcome. Manuscripts from application domains, such as urban informatics, social and natural science, and Internet of Things, are also welcome. All papers should highlight innovative solutions to data management problems such as new data models, performance enhancements, and show how those innovations contribute to the goals of the application.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信