标记有向图中高效字符串匹配的可逆变换

Abhinav Nellore, Austin Nguyen, Reid F. Thompson
{"title":"标记有向图中高效字符串匹配的可逆变换","authors":"Abhinav Nellore, Austin Nguyen, Reid F. Thompson","doi":"10.4230/LIPIcs.CPM.2021.20","DOIUrl":null,"url":null,"abstract":"Let $G = (V, E)$ be a digraph where each vertex is unlabeled, each edge is labeled by a character in some alphabet $\\Omega$, and any two edges with both the same head and the same tail have different labels. The powerset construction gives a transform of $G$ into a weakly connected digraph $G' = (V', E')$ that enables solving the decision problem of whether there is a walk in $G$ matching an arbitrarily long query string $q$ in time linear in $|q|$ and independent of $|E|$ and $|V|$. We show $G$ is uniquely determined by $G'$ when for every $v_\\ell \\in V$, there is some distinct string $s_\\ell$ on $\\Omega$ such that $v_\\ell$ is the origin of a closed walk in $G$ matching $s_\\ell$, and no other walk in $G$ matches $s_\\ell$ unless it starts and ends at $v_\\ell$. We then exploit this invertibility condition to strategically alter any $G$ so its transform $G'$ enables retrieval of all $t$ terminal vertices of walks in the unaltered $G$ matching $q$ in $O(|q| + t \\log |V|)$ time. We conclude by proposing two defining properties of a class of transforms that includes the Burrows-Wheeler transform and the transform presented here.","PeriodicalId":236737,"journal":{"name":"Annual Symposium on Combinatorial Pattern Matching","volume":"31 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-05-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":"{\"title\":\"An Invertible Transform for Efficient String Matching in Labeled Digraphs\",\"authors\":\"Abhinav Nellore, Austin Nguyen, Reid F. Thompson\",\"doi\":\"10.4230/LIPIcs.CPM.2021.20\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Let $G = (V, E)$ be a digraph where each vertex is unlabeled, each edge is labeled by a character in some alphabet $\\\\Omega$, and any two edges with both the same head and the same tail have different labels. The powerset construction gives a transform of $G$ into a weakly connected digraph $G' = (V', E')$ that enables solving the decision problem of whether there is a walk in $G$ matching an arbitrarily long query string $q$ in time linear in $|q|$ and independent of $|E|$ and $|V|$. We show $G$ is uniquely determined by $G'$ when for every $v_\\\\ell \\\\in V$, there is some distinct string $s_\\\\ell$ on $\\\\Omega$ such that $v_\\\\ell$ is the origin of a closed walk in $G$ matching $s_\\\\ell$, and no other walk in $G$ matches $s_\\\\ell$ unless it starts and ends at $v_\\\\ell$. We then exploit this invertibility condition to strategically alter any $G$ so its transform $G'$ enables retrieval of all $t$ terminal vertices of walks in the unaltered $G$ matching $q$ in $O(|q| + t \\\\log |V|)$ time. We conclude by proposing two defining properties of a class of transforms that includes the Burrows-Wheeler transform and the transform presented here.\",\"PeriodicalId\":236737,\"journal\":{\"name\":\"Annual Symposium on Combinatorial Pattern Matching\",\"volume\":\"31 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2019-05-09\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"3\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Annual Symposium on Combinatorial Pattern Matching\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.4230/LIPIcs.CPM.2021.20\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Annual Symposium on Combinatorial Pattern Matching","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4230/LIPIcs.CPM.2021.20","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

摘要

设$G = (V, E)$是一个有向图,其中每个顶点都没有标记,每个边都用某种字母中的字符标记$\Omega$,并且具有相同头和相同尾的任何两条边都具有不同的标签。powerset构造给出了将$G$转换为弱连接有向图$G' = (V', E')$的方法,该方法能够解决在$|q|$中是否存在与任意长的查询字符串$q$在时间线性上匹配且独立于$|E|$和$|V|$的$G$中的行走决策问题。我们证明$G$是由$G'$唯一确定的,当对于每一个$v_\ell \in V$,在$\Omega$上有一些独特的字符串$s_\ell$,使得$v_\ell$是$G$中匹配$s_\ell$的封闭行走的起源,并且$G$中没有匹配$s_\ell$的其他行走,除非它开始和结束于$v_\ell$。然后,我们利用这种可逆性条件策略性地改变任何$G$,使其变换$G'$能够在$O(|q| + t \log |V|)$时间内检索未改变的$G$匹配$q$中行走的所有$t$终端顶点。最后,我们提出了一类变换的两个定义性质,这类变换包括Burrows-Wheeler变换和这里给出的变换。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
An Invertible Transform for Efficient String Matching in Labeled Digraphs
Let $G = (V, E)$ be a digraph where each vertex is unlabeled, each edge is labeled by a character in some alphabet $\Omega$, and any two edges with both the same head and the same tail have different labels. The powerset construction gives a transform of $G$ into a weakly connected digraph $G' = (V', E')$ that enables solving the decision problem of whether there is a walk in $G$ matching an arbitrarily long query string $q$ in time linear in $|q|$ and independent of $|E|$ and $|V|$. We show $G$ is uniquely determined by $G'$ when for every $v_\ell \in V$, there is some distinct string $s_\ell$ on $\Omega$ such that $v_\ell$ is the origin of a closed walk in $G$ matching $s_\ell$, and no other walk in $G$ matches $s_\ell$ unless it starts and ends at $v_\ell$. We then exploit this invertibility condition to strategically alter any $G$ so its transform $G'$ enables retrieval of all $t$ terminal vertices of walks in the unaltered $G$ matching $q$ in $O(|q| + t \log |V|)$ time. We conclude by proposing two defining properties of a class of transforms that includes the Burrows-Wheeler transform and the transform presented here.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
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学术文献互助群
群 号:481959085
Book学术官方微信