We consider the problem of preprocessing two strings $S$ and $T$, of lengths $m$ and $n$, respectively, in order to be able to efficiently answer the following queries: Given positions $i,j$ in $S$ and positions $a,b$ in $T$, return the optimal alignment of $S[i \mathinner{.\,.} j]$ and $T[a \mathinner{.\,.} b]$. Let $N=mn$. We present an oracle with preprocessing time $N^{1+o(1)}$ and space $N^{1+o(1)}$ that answers queries in $\log^{2+o(1)}N$ time. In other words, we show that we can query the alignment of every two substrings in almost the same time it takes to compute just the alignment of $S$ and $T$. Our oracle uses ideas from our distance oracle for planar graphs [STOC 2019] and exploits the special structure of the alignment graph. Conditioned on popular hardness conjectures, this result is optimal up to subpolynomial factors. Our results apply to both edit distance and longest common subsequence (LCS). The best previously known oracle with construction time and size $\mathcal{O}(N)$ has slow $\Omega(\sqrt{N})$ query time [Sakai, TCS 2019], and the one with size $N^{1+o(1)}$ and query time $\log^{2+o(1)}N$ (using a planar graph distance oracle) has slow $\Omega(N^{3/2})$ construction time [Long & Pettie, SODA 2021]. We improve both approaches by roughly a $\sqrt N$ factor.


翻译:我们考虑先先处理两个字符串(美元)和美元(美元)的问题,分别为美元和美元(美元),以便有效回答以下问题:如果职位为美元,美元(美元)和美元(美元),美元(美元),美元(美元),美元(美元),美元(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),),(美元),),),(美元),),(美元),(美元),(美元),(美元),),(美元),(美元),(美元),(美元),(美元),(美元),(美元),(美元),),(美元),(美元),(美元),(美元),(美元),),),(美元),),(美元),(美元),),),(美元),),(美元),),(美元),(美元),(美元),(美元),(美元),),(美元),(美元),(美元),(美元),(美元),(美元),),),(美元),(美元),(美元),(美元),(美元),(美元),(美元),),(美元),(美元),),(

0
下载
关闭预览

相关内容

甲骨文公司,全称甲骨文股份有限公司(甲骨文软件系统有限公司),是全球最大的企业级软件公司,总部位于美国加利福尼亚州的红木滩。1989年正式进入中国市场。2013年,甲骨文已超越 IBM ,成为继 Microsoft 后全球第二大软件公司。
【干货书】机器学习速查手册,135页pdf
专知会员服务
127+阅读 · 2020年11月20日
Python分布式计算,171页pdf,Distributed Computing with Python
专知会员服务
108+阅读 · 2020年5月3日
Ray RLlib: Scalable 降龙十八掌
CreateAMind
9+阅读 · 2018年12月28日
disentangled-representation-papers
CreateAMind
26+阅读 · 2018年9月12日
CVE-2018-7600 - Drupal 7.x 远程代码执行exp
黑客工具箱
14+阅读 · 2018年4月17日
Auto-Encoding GAN
CreateAMind
7+阅读 · 2017年8月4日
强化学习 cartpole_a3c
CreateAMind
9+阅读 · 2017年7月21日
VIP会员
相关资讯
Ray RLlib: Scalable 降龙十八掌
CreateAMind
9+阅读 · 2018年12月28日
disentangled-representation-papers
CreateAMind
26+阅读 · 2018年9月12日
CVE-2018-7600 - Drupal 7.x 远程代码执行exp
黑客工具箱
14+阅读 · 2018年4月17日
Auto-Encoding GAN
CreateAMind
7+阅读 · 2017年8月4日
强化学习 cartpole_a3c
CreateAMind
9+阅读 · 2017年7月21日
Top
微信扫码咨询专知VIP会员