Pub Date : 1985-10-01DOI: 10.1016/S0019-9958(85)80028-0
Uzi Vishkin
Given a text of length n and a pattern of length m, we present a parallel linear algorithm for finding all occurrences of the pattern in the text. The algorithm runs in O(n/p) time using any number of p ⩽ n/log m processors on a concurrent-read concurrent-write parallel random-access-machine.
{"title":"Optimal parallel pattern matching in strings","authors":"Uzi Vishkin","doi":"10.1016/S0019-9958(85)80028-0","DOIUrl":"10.1016/S0019-9958(85)80028-0","url":null,"abstract":"<div><p>Given a text of length <em>n</em> and a pattern of length <em>m</em>, we present a parallel linear algorithm for finding all occurrences of the pattern in the text. The algorithm runs in <em>O</em>(<em>n/p</em>) time using any number of <em>p</em> ⩽ <em>n</em>/log <em>m</em> processors on a concurrent-read concurrent-write parallel random-access-machine.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"67 1","pages":"Pages 91-113"},"PeriodicalIF":0.0,"publicationDate":"1985-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80028-0","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"90621839","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Pub Date : 1985-10-01DOI: 10.1016/S0019-9958(85)80023-1
J.M. Robson
Alternating Turing machines with restrictions preventing them from returning to a previous configuration model games with rules enforcing such a restriction, for instance, the Chinese version of Go. Such restrictions do not affect the time complexity of problems for alternating Turing machines but space S on a machine with the restriction is equivalent either to time or to space exponential in S on a normal alternating machine, depending on the precise nature of the restriction.
{"title":"Alternation with restrictions on looping","authors":"J.M. Robson","doi":"10.1016/S0019-9958(85)80023-1","DOIUrl":"10.1016/S0019-9958(85)80023-1","url":null,"abstract":"<div><p>Alternating Turing machines with restrictions preventing them from returning to a previous configuration model games with rules enforcing such a restriction, for instance, the Chinese version of Go. Such restrictions do not affect the time complexity of problems for alternating Turing machines but space <em>S</em> on a machine with the restriction is equivalent either to time or to space exponential in <em>S</em> on a normal alternating machine, depending on the precise nature of the restriction.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"67 1","pages":"Pages 2-11"},"PeriodicalIF":0.0,"publicationDate":"1985-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80023-1","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"79317993","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Pub Date : 1985-10-01DOI: 10.1016/S0019-9958(85)80032-2
Marek Karpinski , Rutger Verbeek
We prove there is no polynomial deterministic space simulation for two-way random-tape probabilistic space (Pr2SPACE) (as defined in Borodin, A., Cook, S., and Pippenger, N. (1983) Inform. Control58 113–136) for all functions f: ℕ → ℕ and all α ∈ ℕ, Pr2SPACE(f(n))DSPACE(f(n)α). This is the answer to the problem formulated in op cit., whether the deterministic squared-space simulation (for recognizers and transducers) generalizes to the two-way random-tape machine model. We prove, in fact, a stronger result saying that even space-bounded Las Vegas two-way random-tape algorithms (yielding always the correct answer and terminating with probability 1) are exponentially more efficient than the deterministic ones.
我们证明双向随机磁带概率空间(Pr2SPACE)(如Borodin, A., Cook, S.和Pippenger, N. (1983) Inform中定义的)不存在多项式确定性空间模拟。对于所有函数f: _1→_1和所有α∈_1,Pr2SPACE(f(n))DSPACE(f(n)α)。这就是在op - cit中提出的问题的答案,即确定性的平方空间模拟(用于识别器和换能器)是否可以推广到双向随机磁带机模型。事实上,我们证明了一个更强的结果,即即使是有空间限制的拉斯维加斯双向随机磁带算法(总是产生正确答案并以概率1结束)也比确定性算法的效率要高得多。
{"title":"There is no polynomial deterministic space simulation of probabilistic space with a two-way random-tape generator","authors":"Marek Karpinski , Rutger Verbeek","doi":"10.1016/S0019-9958(85)80032-2","DOIUrl":"10.1016/S0019-9958(85)80032-2","url":null,"abstract":"<div><p>We prove there is no polynomial deterministic space simulation for two-way random-tape probabilistic space (Pr<sub>2</sub>SPACE) (as defined in Borodin, A., Cook, S., and Pippenger, N. (1983) <em>Inform. Control</em> <strong>58</strong> 113–136) for all functions <em>f</em>: ℕ → ℕ and all <em>α</em> ∈ ℕ, Pr<sub>2</sub>SPACE(<em>f</em>(<em>n</em>))DSPACE(<em>f</em>(<em>n</em>)<sup><em>α</em></sup>). This is the answer to the problem formulated in op cit., whether the deterministic squared-space simulation (for recognizers and transducers) generalizes to the two-way random-tape machine model. We prove, in fact, a stronger result saying that even space-bounded Las Vegas two-way random-tape algorithms (yielding always the correct answer and terminating with probability 1) are exponentially more efficient than the deterministic ones.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"67 1","pages":"Pages 158-162"},"PeriodicalIF":0.0,"publicationDate":"1985-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80032-2","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"78624804","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Pub Date : 1985-10-01DOI: 10.1016/S0019-9958(85)80029-2
Oscar H. Ibarra, Sam M. Kim, Louis E. Rosier
We give characterizations of multihead two-way finite automata in terms of multihead reversal-bounded pushdown automata and restricted checking stack automata. In particular, we show that a language is accepted by a 2k-head two-way finite automaton if and only if it is accepted by a k-head two-way pushdown automaton which makes one reversal on its stack. We also show that a 2-head two-way deterministic finite automaton is equivalent to a simple type of two-way deterministic checking stack automaton. This is in contrast to a previously known result which shows that simple two-way nondeterministic checking stack automata are equivalent to nondeterministic linear bounded automata.
{"title":"Some characterizations of multihead finite automata","authors":"Oscar H. Ibarra, Sam M. Kim, Louis E. Rosier","doi":"10.1016/S0019-9958(85)80029-2","DOIUrl":"10.1016/S0019-9958(85)80029-2","url":null,"abstract":"<div><p>We give characterizations of multihead two-way finite automata in terms of multihead reversal-bounded pushdown automata and restricted checking stack automata. In particular, we show that a language is accepted by a 2<em>k</em>-head two-way finite automaton if and only if it is accepted by a <em>k</em>-head two-way pushdown automaton which makes one reversal on its stack. We also show that a 2-head two-way deterministic finite automaton is equivalent to a simple type of two-way deterministic checking stack automaton. This is in contrast to a previously known result which shows that simple two-way nondeterministic checking stack automata are equivalent to nondeterministic linear bounded automata.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"67 1","pages":"Pages 114-125"},"PeriodicalIF":0.0,"publicationDate":"1985-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80029-2","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"89663853","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Pub Date : 1985-10-01DOI: 10.1016/S0019-9958(85)80031-0
Zvi Galil
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 p ⩽ n/log n (i.e., t ⩾ log n).† (2) for PRAM: pt = O(n) for p ⩽ n/log2n (i.e., t ⩾ log2n). (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.
假设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。对于查找给定字符串的所有初始回文的问题也得到了类似的族。
{"title":"Optimal parallel algorithms for string matching","authors":"Zvi Galil","doi":"10.1016/S0019-9958(85)80031-0","DOIUrl":"https://doi.org/10.1016/S0019-9958(85)80031-0","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 ε > 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.0,"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":null,"resultStr":null,"platform":"Semanticscholar","paperid":"136515134","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Pub Date : 1985-10-01DOI: 10.1016/S0019-9958(85)80024-3
Wojciech Rytter
We prove: (1) every language accepted by a two-way nondeterministic pushdown automaton can be recognized on a random access machine in O(n3/log n) time; (2) every language accepted by a loop-free two-way nondeterministic pushdown automaton can be recognized in O(n3/log2n) time; (3) every context-free language can be recognized on-line in O(n3/log2n) time. We improve the results of Aho, Hopcroft, and Ullman (Inform. Contr.13, 1968, 186–206), Rytter (Inform. Process. Lett.16, 1983, 127–129), and Graham, Harrison, and Ruzzo (ACM Trans. Programm. Lang. Systems2, No. 3, 1980, 415–462).
{"title":"Fast recognition of pushdown automaton and context-free languages","authors":"Wojciech Rytter","doi":"10.1016/S0019-9958(85)80024-3","DOIUrl":"10.1016/S0019-9958(85)80024-3","url":null,"abstract":"<div><p>We prove: (1) every language accepted by a two-way nondeterministic pushdown automaton can be recognized on a random access machine in <em>O</em>(<em>n</em><sup>3</sup>/log <em>n</em>) time; (2) every language accepted by a loop-free two-way nondeterministic pushdown automaton can be recognized in <em>O</em>(<em>n</em><sup>3</sup>/log<sup>2</sup> <em>n</em>) time; (3) every context-free language can be recognized on-line in <em>O</em>(<em>n</em><sup>3</sup>/log<sup>2</sup> <em>n</em>) time. We improve the results of Aho, Hopcroft, and Ullman (<em>Inform. Contr.</em> <strong>13</strong>, 1968, 186–206), Rytter (<em>Inform. Process. Lett.</em> <strong>16</strong>, 1983, 127–129), and Graham, Harrison, and Ruzzo (<em>ACM Trans. Programm. Lang. Systems</em> <strong>2</strong>, No. 3, 1980, 415–462).</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"67 1","pages":"Pages 12-22"},"PeriodicalIF":0.0,"publicationDate":"1985-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80024-3","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"87872488","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Pub Date : 1985-10-01DOI: 10.1016/S0019-9958(85)80025-5
Matthew Hennessy, Colin Stirling
The expressiveness of branching time tense (temporal) logics whose eventually operators are relativised to general paths into the future is investigated. These logics are interpreted in models obtained by generalising the usual notion of transition system to allow infinite transitions. It is shown that the presence of formulae expressing the future perfect enables one to prove that the expressiveness of the logic can be characterised by a notion of bisimulation on the generalised transition systems. The future perfect is obtained by adding a past tense operator to the language. Finally the power of various tense languages from the literature are investigated in this framework.
{"title":"The power of the future perfect in program logics","authors":"Matthew Hennessy, Colin Stirling","doi":"10.1016/S0019-9958(85)80025-5","DOIUrl":"10.1016/S0019-9958(85)80025-5","url":null,"abstract":"<div><p>The expressiveness of branching time tense (temporal) logics whose eventually operators are relativised to general paths into the future is investigated. These logics are interpreted in models obtained by generalising the usual notion of transition system to allow infinite transitions. It is shown that the presence of formulae expressing the future perfect enables one to prove that the expressiveness of the logic can be characterised by a notion of bisimulation on the generalised transition systems. The future perfect is obtained by adding a past tense operator to the language. Finally the power of various tense languages from the literature are investigated in this framework.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"67 1","pages":"Pages 23-52"},"PeriodicalIF":0.0,"publicationDate":"1985-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80025-5","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"77159165","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Pub Date : 1985-10-01DOI: 10.1016/S0019-9958(85)80034-6
Athanasios K. Tsakalidis
We present a data structure based on AVL-trees which allows an insertion or a deletion to be performed in time O(log d), where d is the distance of the position searched for from a finger which points to the end of the file. Moving a finger to a distance d costs O(log d). This result demonstrates the power of the oldest basic data structure, the AVL-tree. A special case of interest is an efficient implementation of searchable priority queues such that Deletemin requires only constant time.
{"title":"AVL-trees for localized search","authors":"Athanasios K. Tsakalidis","doi":"10.1016/S0019-9958(85)80034-6","DOIUrl":"https://doi.org/10.1016/S0019-9958(85)80034-6","url":null,"abstract":"<div><p>We present a data structure based on AVL-trees which allows an insertion or a deletion to be performed in time <em>O</em>(log <em>d</em>), where <em>d</em> is the distance of the position searched for from a finger which points to the end of the file. Moving a finger to a distance <em>d</em> costs <em>O</em>(log <em>d</em>). This result demonstrates the power of the <em>oldest basic</em> data structure, the AVL-tree. A special case of interest is an efficient implementation of searchable priority queues such that Deletemin requires only <em>constant</em> time.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"67 1","pages":"Pages 173-194"},"PeriodicalIF":0.0,"publicationDate":"1985-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80034-6","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"136515133","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Pub Date : 1985-10-01DOI: 10.1016/S0019-9958(85)80035-8
Friedhelm Meyer auf der Heide
We consider parallel random access machines (PRAM's) with p processors and distributed systems of random access machines (DRAM's) with p processors being partially joint by wires according to a communication graph. For these computational models we prove lower bounds for testing the solvability of linear Diophantine equations and related problems including the knapsack problem. These bounds are achieved by generalizing and simplifying a lower bound for parallel computation trees due to Yao, introducing a new type of computation trees which models computations of DRAM's, and by generalizing a technique used by Paul and Simon and Klein and Meyer auf der Heide to carry over lower bounds from computation trees to RAM's. Thereby we prove that for many problems, p processors cannot speed up a computation by a factor O(p) but only by a factor O(log(p + 1)) and in the case of DRAM's whose communication network has degree c by a factor O(log(c + 1)) only.
考虑具有p个处理器的并行随机存取机(PRAM)和具有p个处理器的分布式随机存取机(DRAM)系统根据通信图通过导线部分连接。对于这些计算模型,我们证明了测试线性丢芬图方程和相关问题(包括背包问题)可解性的下界。这些边界是通过推广和简化并行计算树的下界来实现的,因为Yao引入了一种新型的计算树来模拟DRAM的计算,并通过推广Paul, Simon, Klein和Meyer auf der Heide使用的技术来将下界从计算树转移到RAM。因此,我们证明了对于许多问题,p处理器不能以一个因子O(p)加速计算,而只能以一个因子O(log(p + 1))加速计算,并且在通信网络具有c度的DRAM的情况下,只能以一个因子O(log(c + 1))加速计算。
{"title":"Lower time bounds for solving linear diophantine equations on several parallel computational models","authors":"Friedhelm Meyer auf der Heide","doi":"10.1016/S0019-9958(85)80035-8","DOIUrl":"10.1016/S0019-9958(85)80035-8","url":null,"abstract":"<div><p>We consider parallel random access machines (PRAM's) with <em>p</em> processors and distributed systems of random access machines (DRAM's) with <em>p</em> processors being partially joint by wires according to a communication graph. For these computational models we prove lower bounds for testing the solvability of linear Diophantine equations and related problems including the knapsack problem. These bounds are achieved by generalizing and simplifying a lower bound for parallel computation trees due to Yao, introducing a new type of computation trees which models computations of DRAM's, and by generalizing a technique used by Paul and Simon and Klein and Meyer auf der Heide to carry over lower bounds from computation trees to RAM's. Thereby we prove that for many problems, <em>p</em> processors cannot speed up a computation by a factor <em>O</em>(<em>p</em>) but only by a factor <em>O</em>(log(<em>p</em> + 1)) and in the case of DRAM's whose communication network has degree <em>c</em> by a factor <em>O</em>(log(<em>c</em> + 1)) only.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"67 1","pages":"Pages 195-211"},"PeriodicalIF":0.0,"publicationDate":"1985-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80035-8","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"78965233","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}