首页 > 最新文献

信息与控制最新文献

英文 中文
Computing with rewrite systems 使用重写系统的计算
Q4 Mathematics Pub Date : 1985-05-01 DOI: 10.1016/S0019-9958(85)80003-6
Nachum Dershowitz

Term-rewriting systems, that is, sets of directed equations, provide a paradigm of computation with particularly simple syntax and semantics. Rewrite systems may be used for straightforward computation by simplifying terms. We show how, in addition, restricted forms of the Knuth—Bendix “completion” procedure may be used to interpret logic programs written as a set of equivalence-preserving rewrite rules. We discuss verification issues and also illustrate the use of the full completion procedure to synthesize rewrite programs from specifications.

术语重写系统,即一组有向方程,提供了一种语法和语义特别简单的计算范式。重写系统可以通过简化项来进行直接计算。此外,我们还展示了如何使用Knuth-Bendix“补全”过程的限制形式来解释作为一组保持等价重写规则编写的逻辑程序。我们讨论了验证问题,并说明了使用完整的完成过程来从规范合成重写程序。
{"title":"Computing with rewrite systems","authors":"Nachum Dershowitz","doi":"10.1016/S0019-9958(85)80003-6","DOIUrl":"10.1016/S0019-9958(85)80003-6","url":null,"abstract":"<div><p>Term-rewriting systems, that is, sets of directed equations, provide a paradigm of computation with particularly simple syntax and semantics. Rewrite systems may be used for straightforward computation by simplifying terms. We show how, in addition, restricted forms of the Knuth—Bendix “completion” procedure may be used to interpret logic programs written as a set of equivalence-preserving rewrite rules. We discuss verification issues and also illustrate the use of the full completion procedure to synthesize rewrite programs from specifications.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"65 2","pages":"Pages 122-157"},"PeriodicalIF":0.0,"publicationDate":"1985-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80003-6","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"77174831","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}
引用次数: 121
The equivalence problem and correctness formulas for a simple class of programs 一类简单程序的等价问题及其正确性公式
Q4 Mathematics Pub Date : 1985-04-01 DOI: 10.1016/S0019-9958(85)80018-8
Oscar H. Ibarra , Louis E. Rosier

This paper is concerned with the semantics (or computational power) of very simple loop programs over different sets of primitive instructions. Recently, a complete and consistent Hoare axiomatics for the class of {x ← 0, xy, xx + 1, xx ∸ 1, do xend} programs which contain no nested loops, was given, where the allowable assertions were those formulas in the logic of Presburger arithmetic. The class of functions computable by such programs is exactly the class of Presburger functions. Thus, the resulting class of correctness formulas has a decidable validity problem. In this paper, we present simple loop programming languages which are, computationally, strictly more powerful, i.e., which can compute more than the class of Presburger functions. Furthermore, using a logical assertion language that is also more powerful than the logic of Presburger arithmetic, we present a class of correctness formulas over such programs that also has a decidable validity problem.

本文关注的是不同原始指令集上非常简单的循环程序的语义(或计算能力)。摘要给出了不含嵌套循环的{x←0,x←y, x←x + 1, x←x±1,do x…end}类程序的一个完备的、一致的Hoare公理,其中允许的断言是Presburger算术逻辑中的那些公式。这类程序可计算的函数类就是普雷斯伯格函数类。因此,所得到的一类正确性公式具有一个可确定的有效性问题。在本文中,我们提出了简单的循环编程语言,它们在计算上严格来说更强大,也就是说,它可以计算比Presburger函数类更多的函数。此外,使用一种比Presburger算法的逻辑更强大的逻辑断言语言,我们给出了一类同样具有可确定有效性问题的程序的正确性公式。
{"title":"The equivalence problem and correctness formulas for a simple class of programs","authors":"Oscar H. Ibarra ,&nbsp;Louis E. Rosier","doi":"10.1016/S0019-9958(85)80018-8","DOIUrl":"10.1016/S0019-9958(85)80018-8","url":null,"abstract":"<div><p>This paper is concerned with the semantics (or computational power) of very simple loop programs over different sets of primitive instructions. Recently, a complete and consistent Hoare axiomatics for the class of {<em>x</em> ← 0, <em>x</em> ← <em>y</em>, <em>x</em> ← <em>x</em> + 1, <em>x</em> ← <em>x</em> ∸ 1, <em>do x</em> … <em>end</em>} programs which contain no nested loops, was given, where the allowable assertions were those formulas in the logic of Presburger arithmetic. The class of functions computable by such programs is exactly the class of Presburger functions. Thus, the resulting class of correctness formulas has a decidable validity problem. In this paper, we present simple loop programming languages which are, computationally, strictly more powerful, i.e., which can compute more than the class of Presburger functions. Furthermore, using a logical assertion language that is also more powerful than the logic of Presburger arithmetic, we present a class of correctness formulas over such programs that also has a decidable validity problem.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"65 1","pages":"Pages 18-41"},"PeriodicalIF":0.0,"publicationDate":"1985-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80018-8","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"78193758","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}
引用次数: 3
On simple programs with primitive conditional statements 用原始条件语句的简单程序
Q4 Mathematics Pub Date : 1985-04-01 DOI: 10.1016/S0019-9958(85)80019-X
Oscar H. Ibarra , Louis E. Rosier

This paper is concerned with the expressive power (or computational power) of loop programs over different sets of primitive instructions. In particular, we show that an {x ← 0, xy, xx + 1, do xend, if x = 0 then yz}-program which contains no nested loops can be transformed into an equivalent {x ← 0, xy, xx + 1, do xend}-program (also without nested loops) in exponential time and space. This translation was earlier claimed, in the literature, to be obtainable in polynomial time, but then this was subsequently shown to imply that PSPACE = PTIME. Consequently, the question of translatability was left unanswered. Also, we show that the class of functions computable by {x ← 0, xy, xx + 1, x − 1, do xend, if x = 0 then xc}-programs is exactly the class of Presburger functions.

本文关注的是循环程序在不同原始指令集上的表达能力(或计算能力)。特别地,我们证明了不包含嵌套循环的{x←0,x←y, x←x + 1, do x…end,如果x = 0,则y←z}程序可以在指数时间和空间中转换为等价的{x←0,x←y, x←x + 1, do x…end}程序(也不包含嵌套循环)。在文献中,这种转换早先声称在多项式时间内可获得,但随后证明这意味着PSPACE = PTIME。因此,可译性问题没有得到答复。同时,我们证明了可由{x←0,x←y, x←x + 1, x−1,do x…end计算的函数类,如果x = 0则x←c}-程序正是Presburger函数类。
{"title":"On simple programs with primitive conditional statements","authors":"Oscar H. Ibarra ,&nbsp;Louis E. Rosier","doi":"10.1016/S0019-9958(85)80019-X","DOIUrl":"10.1016/S0019-9958(85)80019-X","url":null,"abstract":"<div><p>This paper is concerned with the expressive power (or computational power) of loop programs over different sets of primitive instructions. In particular, we show that an {<em>x</em> ← 0, <em>x</em> ← <em>y</em>, <em>x</em> ← <em>x</em> + 1, <em>do x</em> … <em>end</em>, <em>if x</em> = 0 <em>then y</em> ← <em>z</em>}-program which contains no nested loops can be transformed into an equivalent {<em>x</em> ← 0, <em>x</em> ← <em>y</em>, <em>x</em> ← <em>x</em> + 1, <em>do x</em> … <em>end</em>}-program (also without nested loops) in exponential time and space. This translation was earlier claimed, in the literature, to be obtainable in polynomial time, but then this was subsequently shown to imply that PSPACE = PTIME. Consequently, the question of translatability was left unanswered. Also, we show that the class of functions computable by {<em>x</em> ← 0, <em>x</em> ← <em>y</em>, <em>x</em> ← <em>x</em> + 1, <em>x</em> − 1, <em>do x</em> … <em>end</em>, <em>if x</em> = 0 <em>then x</em> ← <em>c</em>}-programs is exactly the class of Presburger functions.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"65 1","pages":"Pages 42-62"},"PeriodicalIF":0.0,"publicationDate":"1985-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80019-X","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"77446396","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}
引用次数: 1
Normalization and axiomatization for numerical dependencies 数值相关性的归一化和公理化
Q4 Mathematics Pub Date : 1985-04-01 DOI: 10.1016/S0019-9958(85)80017-6
John Grant, Jack Minker

We show how to use both horizontal and vertical decomposition to normalize a database schema which contains numerical dependencies. We present a finite set of inference rules for numerical dependencies which is a generalization of the Armstrong axioms. We prove that this set is sound and complete for some special cases.

我们将展示如何使用水平和垂直分解来规范化包含数值依赖性的数据库模式。我们提出了一组有限的数值依赖性推理规则,它是阿姆斯壮公理的推广。对于一些特殊情况,我们证明了这个集合是健全完备的。
{"title":"Normalization and axiomatization for numerical dependencies","authors":"John Grant,&nbsp;Jack Minker","doi":"10.1016/S0019-9958(85)80017-6","DOIUrl":"10.1016/S0019-9958(85)80017-6","url":null,"abstract":"<div><p>We show how to use both horizontal and vertical decomposition to normalize a database schema which contains numerical dependencies. We present a finite set of inference rules for numerical dependencies which is a generalization of the Armstrong axioms. We prove that this set is sound and complete for some special cases.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"65 1","pages":"Pages 1-17"},"PeriodicalIF":0.0,"publicationDate":"1985-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80017-6","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"75391275","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}
引用次数: 22
Sublattices of the polynomial time degrees 多项式时间度的子格
Q4 Mathematics Pub Date : 1985-04-01 DOI: 10.1016/S0019-9958(85)80020-6
Klaus Ambos-Spies

We show that any countable distributive lattice can be embedded in any interval of polynomial time degrees. Furthermore the embeddings can be chosen to preserve the least or the greatest element. This holds for both polynomial time bounded many-one and Turing reducibilities, as well as for all of the common intermediate reducibilities.

我们证明了任何可数分配格都可以嵌入到多项式时间度的任意区间中。此外,可以选择保留最小或最大元素的嵌入。这对多项式时间有界多一可约性和图灵可约性,以及所有常见的中间可约性都成立。
{"title":"Sublattices of the polynomial time degrees","authors":"Klaus Ambos-Spies","doi":"10.1016/S0019-9958(85)80020-6","DOIUrl":"10.1016/S0019-9958(85)80020-6","url":null,"abstract":"<div><p>We show that any countable distributive lattice can be embedded in any interval of polynomial time degrees. Furthermore the embeddings can be chosen to preserve the least or the greatest element. This holds for both polynomial time bounded many-one and Turing reducibilities, as well as for all of the common intermediate reducibilities.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"65 1","pages":"Pages 63-84"},"PeriodicalIF":0.0,"publicationDate":"1985-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80020-6","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91134936","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}
引用次数: 29
How to search in history 如何在历史中搜索
Q4 Mathematics Pub Date : 1985-01-01 DOI: 10.1016/S0019-9958(85)80045-0
Bernard Chazelle

This paper considers the problem of granting a dynamic data structure the capability of remembering the situation it held at previous times. We present a new scheme for recording a history of h updates over an ordered set S of n objects, which allows fast neighbor computation at any time in the history. The novelty of the method is to allow the set S to be only partially ordered with respect to queries and the time measure to be multi-dimensional. The generality of the method makes it useful for a number of problems in 3-dimensional geometry. For example, we are able to give fast algorithms for locating a point in a 3-dimensional complex, using linear space, or for finding which of n given points is closest to a query plane. Using a simpler, yet conceptually similar technique, we show that with O(n2) preprocessing, it is possible to determine in O(log2 n) time which of n given points in E3 is closest to an arbitrary query point.

本文考虑了赋予动态数据结构记忆其以前所处情况的能力的问题。我们提出了一种记录n个对象的有序集S上h个更新历史的新方案,该方案允许在历史中的任何时间进行快速邻居计算。该方法的新颖之处在于,它允许集合S相对于查询仅是部分有序的,并且时间度量是多维的。该方法的通用性使它对三维几何中的许多问题都很有用。例如,我们能够给出快速的算法来定位三维复合体中的一个点,使用线性空间,或者找出n个给定点中最接近查询平面的那个点。使用一种更简单,但概念上相似的技术,我们证明了使用O(n2)预处理,可以在O(log2n)时间内确定E3中n个给定点中哪一个最接近任意查询点。
{"title":"How to search in history","authors":"Bernard Chazelle","doi":"10.1016/S0019-9958(85)80045-0","DOIUrl":"10.1016/S0019-9958(85)80045-0","url":null,"abstract":"<div><p>This paper considers the problem of granting a dynamic data structure the capability of remembering the situation it held at previous times. We present a new scheme for recording a history of <em>h</em> updates over an ordered set <em>S</em> of <em>n</em> objects, which allows fast neighbor computation at any time in the history. The novelty of the method is to allow the set <em>S</em> to be only partially ordered with respect to queries and the time measure to be multi-dimensional. The generality of the method makes it useful for a number of problems in 3-dimensional geometry. For example, we are able to give fast algorithms for locating a point in a 3-dimensional complex, using linear space, or for finding which of <em>n</em> given points is closest to a query plane. Using a simpler, yet conceptually similar technique, we show that with <em>O</em>(<em>n</em><sup>2</sup>) preprocessing, it is possible to determine in <em>O</em>(log<sup>2</sup> <em>n</em>) time which of <em>n</em> given points in <em>E</em><sup>3</sup> is closest to an arbitrary query point.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"64 1","pages":"Pages 77-99"},"PeriodicalIF":0.0,"publicationDate":"1985-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80045-0","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"90494156","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}
引用次数: 68
Author index for volume 64 第64卷作者索引
Q4 Mathematics Pub Date : 1985-01-01 DOI: 10.1016/S0019-9958(85)80049-8
{"title":"Author index for volume 64","authors":"","doi":"10.1016/S0019-9958(85)80049-8","DOIUrl":"https://doi.org/10.1016/S0019-9958(85)80049-8","url":null,"abstract":"","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"64 1","pages":"Page 173"},"PeriodicalIF":0.0,"publicationDate":"1985-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80049-8","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"138416643","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}
引用次数: 0
Two complete axiom systems for a theory of communicating sequential processes 通信顺序过程理论的两个完备公理系统
Q4 Mathematics Pub Date : 1985-01-01 DOI: 10.1016/S0019-9958(85)80048-6
Rocco De Nicola

In C. A. R. Hoare, S. D. Brookes, and A. D. Roscoe (1984, J. Assoc. Comput. Mach. 31(3), 560) an abstract version of Hoare's CSP is defined and a denotational semantics based on the possible failures of processes is given for it. This semantics induces a natural preorder on processes. We define formally this preorder and prove that it can be characterized as the smallest relation satisfying a particular set of axioms. The characterization sheds lights on problems arising from the way divergence and underspecification are handled. After small changes to the semantic domains we propose a new semantics which is closer to the operational intuitions and suggests a possible solution to the above problems. Finally we give an axiomatic characterization for the equivalence induced by the new semantics which leads to fully abstract models in the sense of Scott.

参见C. A. R. Hoare, S. D. Brookes和A. D. Roscoe(1984)。第一版。本文定义了Hoare CSP的一个抽象版本,并给出了一个基于过程可能失效的指称语义。这个语义在进程上引入了一个自然的预序。我们正式定义了这个预序,并证明了它可以被表征为满足一组特定公理的最小关系。这种描述揭示了处理分歧和规格不足的方式所产生的问题。在对语义域进行微小的修改后,我们提出了一种更接近操作直觉的新语义,并为上述问题提供了可能的解决方案。最后,我们给出了由新语义引起的等价性的公理化表征,从而得到Scott意义上的完全抽象模型。
{"title":"Two complete axiom systems for a theory of communicating sequential processes","authors":"Rocco De Nicola","doi":"10.1016/S0019-9958(85)80048-6","DOIUrl":"10.1016/S0019-9958(85)80048-6","url":null,"abstract":"<div><p>In C. A. R. Hoare, S. D. Brookes, and A. D. Roscoe (1984, <em>J. Assoc. Comput. Mach.</em> <strong>31</strong>(3), 560) an abstract version of Hoare's CSP is defined and a denotational semantics based on the possible failures of processes is given for it. This semantics induces a natural preorder on processes. We define formally this preorder and prove that it can be characterized as the smallest relation satisfying a particular set of axioms. The characterization sheds lights on problems arising from the way divergence and underspecification are handled. After small changes to the semantic domains we propose a new semantics which is closer to the operational intuitions and suggests a possible solution to the above problems. Finally we give an axiomatic characterization for the equivalence induced by the new semantics which leads to fully abstract models in the sense of Scott.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"64 1","pages":"Pages 136-172"},"PeriodicalIF":0.0,"publicationDate":"1985-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80048-6","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"86345975","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}
引用次数: 15
Pseudorandom number generation and space complexity 伪随机数生成与空间复杂度
Q4 Mathematics Pub Date : 1985-01-01 DOI: 10.1016/S0019-9958(85)80043-7
Merrick Furst, Richard Lipton, Larry Stockmeyer
{"title":"Pseudorandom number generation and space complexity","authors":"Merrick Furst,&nbsp;Richard Lipton,&nbsp;Larry Stockmeyer","doi":"10.1016/S0019-9958(85)80043-7","DOIUrl":"10.1016/S0019-9958(85)80043-7","url":null,"abstract":"","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"64 1","pages":"Pages 43-51"},"PeriodicalIF":0.0,"publicationDate":"1985-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80043-7","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91233849","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}
引用次数: 7
Algorithms for approximate string matching 近似字符串匹配算法
Q4 Mathematics Pub Date : 1985-01-01 DOI: 10.1016/S0019-9958(85)80046-2
Esko Ukkonen

The edit distance between strings a1am and b1bn is the minimum cost s of a sequence of editing steps (insertions, deletions, changes) that convert one string into the other. A well-known tabulating method computes s as well as the corresponding editing sequence in time and in space O(mn) (in space O(min(m, n)) if the editing sequence is not required). Starting from this method, we develop an improved algorithm that works in time and in space O(s · min(m, n)). Another improvement with time O(s · min(m, n)) and space O(s · min(s, m, n)) is given for the special case where all editing steps have the same cost independently of the characters involved. If the editing sequence that gives cost s is not required, our algorithms can be implemented in space O(min(s, m, n)). Since s = O(max(m, n)), the new methods are always asymptotically as good as the original tabulating method. As a by-product, algorithms are obtained that, given a threshold value t, test in time O(t · min(m, n)) and in space O(min(t, m, n)) whether st. Finally, different generalized edit distances are analyzed and conditions are given under which our algorithms can be used in conjunction with extended edit operation sets, including, for example, transposition of adjacent characters.

字符串a1…am和b1…bn之间的编辑距离是将一个字符串转换为另一个字符串的一系列编辑步骤(插入,删除,更改)的最小成本s。一种著名的制表方法在时间和空间O(mn)中计算s以及相应的编辑顺序(如果不需要编辑顺序,则在空间O(min(m, n))中计算)。在此基础上,我们开发了一种改进的算法,该算法在时间和空间上都是O(s·min(m, n))。另一个改进是在时间为O(s·min(m, n))和空间为O(s·min(s, m, n))的特殊情况下给出的,即所有编辑步骤的代价与所涉及的字符无关。如果不需要代价为s的编辑序列,我们的算法可以在空间O(min(s, m, n))中实现。由于s = O(max(m, n)),新方法总是与原始制表方法渐近地一样好。在给定阈值t的情况下,得到了在时间O(t·min(m, n))和空间O(min(t, m, n))上测试s≤t的算法。最后,分析了不同的广义编辑距离,并给出了我们的算法可以与扩展编辑操作集结合使用的条件,包括相邻字符的换位。
{"title":"Algorithms for approximate string matching","authors":"Esko Ukkonen","doi":"10.1016/S0019-9958(85)80046-2","DOIUrl":"10.1016/S0019-9958(85)80046-2","url":null,"abstract":"<div><p>The edit distance between strings <em>a</em><sub>1</sub> … <em>a<sub>m</sub></em> and <em>b</em><sub>1</sub> … <em>b<sub>n</sub></em> is the minimum cost <em>s</em> of a sequence of editing steps (insertions, deletions, changes) that convert one string into the other. A well-known tabulating method computes <em>s</em> as well as the corresponding editing sequence in time and in space <em>O</em>(<em>mn</em>) (in space <em>O</em>(min(<em>m, n</em>)) if the editing sequence is not required). Starting from this method, we develop an improved algorithm that works in time and in space <em>O</em>(<em>s</em> · min(<em>m, n</em>)). Another improvement with time <em>O</em>(<em>s</em> · min(<em>m, n</em>)) and space <em>O</em>(<em>s</em> · min(<em>s, m, n</em>)) is given for the special case where all editing steps have the same cost independently of the characters involved. If the editing sequence that gives cost <em>s</em> is not required, our algorithms can be implemented in space <em>O</em>(min(<em>s, m, n</em>)). Since <em>s</em> = <em>O</em>(max(<em>m, n</em>)), the new methods are always asymptotically as good as the original tabulating method. As a by-product, algorithms are obtained that, given a threshold value <em>t</em>, test in time <em>O</em>(<em>t</em> · min(<em>m, n</em>)) and in space <em>O</em>(min(<em>t, m, n</em>)) whether <em>s</em> ⩽ <em>t</em>. Finally, different generalized edit distances are analyzed and conditions are given under which our algorithms can be used in conjunction with extended edit operation sets, including, for example, transposition of adjacent characters.</p></div>","PeriodicalId":38164,"journal":{"name":"信息与控制","volume":"64 1","pages":"Pages 100-118"},"PeriodicalIF":0.0,"publicationDate":"1985-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0019-9958(85)80046-2","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"80900995","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}
引用次数: 676
期刊
信息与控制
全部 Acc. Chem. Res. ACS Applied Bio Materials ACS Appl. Electron. Mater. ACS Appl. Energy Mater. ACS Appl. Mater. Interfaces ACS Appl. Nano Mater. ACS Appl. Polym. Mater. ACS BIOMATER-SCI ENG ACS Catal. ACS Cent. Sci. ACS Chem. Biol. ACS Chemical Health & Safety ACS Chem. Neurosci. ACS Comb. Sci. ACS Earth Space Chem. ACS Energy Lett. ACS Infect. Dis. ACS Macro Lett. ACS Mater. Lett. ACS Med. Chem. Lett. ACS Nano ACS Omega ACS Photonics ACS Sens. ACS Sustainable Chem. Eng. ACS Synth. Biol. Anal. Chem. BIOCHEMISTRY-US Bioconjugate Chem. BIOMACROMOLECULES Chem. Res. Toxicol. Chem. Rev. Chem. Mater. CRYST GROWTH DES ENERG FUEL Environ. Sci. Technol. Environ. Sci. Technol. Lett. Eur. J. Inorg. Chem. IND ENG CHEM RES Inorg. Chem. J. Agric. Food. Chem. J. Chem. Eng. Data J. Chem. Educ. J. Chem. Inf. Model. J. Chem. Theory Comput. J. Med. Chem. J. Nat. Prod. J PROTEOME RES J. Am. Chem. Soc. LANGMUIR MACROMOLECULES Mol. Pharmaceutics Nano Lett. Org. Lett. ORG PROCESS RES DEV ORGANOMETALLICS J. Org. Chem. J. Phys. Chem. J. Phys. Chem. A J. Phys. Chem. B J. Phys. Chem. C J. Phys. Chem. Lett. Analyst Anal. Methods Biomater. Sci. Catal. Sci. Technol. Chem. Commun. Chem. Soc. Rev. CHEM EDUC RES PRACT CRYSTENGCOMM Dalton Trans. Energy Environ. Sci. ENVIRON SCI-NANO ENVIRON SCI-PROC IMP ENVIRON SCI-WAT RES Faraday Discuss. Food Funct. Green Chem. Inorg. Chem. Front. Integr. Biol. J. Anal. At. Spectrom. J. Mater. Chem. A J. Mater. Chem. B J. Mater. Chem. C Lab Chip Mater. Chem. Front. Mater. Horiz. MEDCHEMCOMM Metallomics Mol. Biosyst. Mol. Syst. Des. Eng. Nanoscale Nanoscale Horiz. Nat. Prod. Rep. New J. Chem. Org. Biomol. Chem. Org. Chem. Front. PHOTOCH PHOTOBIO SCI PCCP Polym. Chem.
×
引用
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