Optimal parallel algorithms for string matching

Q4 Mathematics 信息与控制 Pub Date : 1985-10-01 DOI:10.1016/S0019-9958(85)80031-0
Zvi Galil
{"title":"Optimal parallel algorithms for string matching","authors":"Zvi Galil","doi":"10.1016/S0019-9958(85)80031-0","DOIUrl":null,"url":null,"abstract":"<div><p>Let WRAM [PRAM]be a parallel computer with <em>p</em> processors (RAMs) which share a common memory and are allowed simultaneous reads and writes [only simultaneous reads]. The only type of simultaneous writes allowed is a simultaneous AND: a subset of the processors may write 0 simultaneously into the same memory cell. Let <em>t</em> be the time bound of the computer. We design below families of parallel algorithms that solve the string matching problem with inputs of size <em>n</em> (<em>n</em> is the sum of lengths of the pattern and the text) and have the following performance in terms of <em>p, t</em> and <em>n</em>: (1) For WRAM: <em>pt</em> = <em>O</em>(<em>n</em>) for <em>p</em> ⩽ <em>n</em>/log <em>n</em> (i.e., <em>t</em> ⩾ log <em>n</em>).<span><sup>†</sup></span> (2) for PRAM: <em>pt</em> = <em>O</em>(<em>n</em>) for <em>p</em> ⩽ <em>n</em>/log<sup>2</sup> <em>n</em> (i.e., <em>t</em> ⩾ log<sup>2</sup> <em>n</em>). (3) For WRAM: <em>t</em> = constant for <em>p</em> = <em>n</em><sup>1 + ε</sup> and any ε &gt; 0. (4) For WRAM: <em>t</em> = <em>O</em>(log <em>n</em>/log log <em>n</em>) for <em>p</em> = <em>n</em>. Similar families are also obtained for the problem of finding all initial palindromes of a given string.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"67 1","pages":"Pages 144-157"},"PeriodicalIF":0.0000,"publicationDate":"1985-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80031-0","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"信息与控制","FirstCategoryId":"1093","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0019995885800310","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"Mathematics","Score":null,"Total":0}
引用次数: 0

Abstract

Let WRAM [PRAM]be a parallel computer with p processors (RAMs) which share a common memory and are allowed simultaneous reads and writes [only simultaneous reads]. The only type of simultaneous writes allowed is a simultaneous AND: a subset of the processors may write 0 simultaneously into the same memory cell. Let t be the time bound of the computer. We design below families of parallel algorithms that solve the string matching problem with inputs of size n (n is the sum of lengths of the pattern and the text) and have the following performance in terms of p, t and n: (1) For WRAM: pt = O(n) for pn/log n (i.e., t ⩾ log n). (2) for PRAM: pt = O(n) for pn/log2 n (i.e., t ⩾ log2 n). (3) For WRAM: t = constant for p = n1 + ε and any ε > 0. (4) For WRAM: t = O(log n/log log n) for p = n. Similar families are also obtained for the problem of finding all initial palindromes of a given string.

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
字符串匹配的最佳并行算法
假设WRAM [PRAM]是一台具有p个处理器(ram)的并行计算机,它们共享一个公共内存,并且允许同时读取和写入[仅同时读取]。唯一允许的并发写类型是并发AND:处理器的一个子集可以同时向同一内存单元写入0。设为计算机的时间限制。我们设计以下家庭解决字符串匹配问题的并行算法输入的大小为n (n是长度的总和的模式和文本)和有以下性能p、t和n: (1) WRAM: pt = O (n) p⩽n / O (log n)(例如,t⩾log n) __(2)婴儿车:pt = O (n) p⩽n / log2 n(即t⩾log2 n)。(3)WRAM: t =常数p = n1 +εε比;0. (4)对于WRAM: t = O(log n/log log n)对于p = n。对于查找给定字符串的所有初始回文的问题也得到了类似的族。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
信息与控制
信息与控制 Mathematics-Control and Optimization
CiteScore
1.50
自引率
0.00%
发文量
4623
期刊介绍:
期刊最新文献
Systolic trellis automata: Stability, decidability and complexity On relativized exponential and probabilistic complexity classes A note on succinct representations of graphs Function definitions in term rewriting and applicative programming Simulation of large networks on smaller networks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1