首页 | 本学科首页   官方微博 | 高级检索  
     


On obtaining the Boyer-Moore string-matching algorithm by partial evaluation
Authors:Olivier Danvy  Henning Korsholm Rohde
Affiliation:BRICS11Basic Research in Computer Science (http://www.brics.dk), funded by the Danish National Research Foundation., Department of Computer Science, University of Aarhus, IT-parken, Aabogade 34, 8200 Aarhus N, Denmark
Abstract:We present the first derivation of the search phase of the Boyer-Moore string-matching algorithm by partial evaluation of an inefficient string matcher. The derivation hinges on identifying the bad-character-shift heuristic as a binding-time improvement, bounded static variation. An inefficient string matcher incorporating this binding-time improvement specializes into the search phase of the Horspool algorithm, which is a simplified variant of the Boyer-Moore algorithm. Combining the bad-character-shift binding-time improvement with our previous results yields a new binding-time-improved string matcher that specializes into the search phase of the Boyer-Moore algorithm.
Keywords:Partial evaluation   Binding-time improvement   Bounded static variation   Horspool string-matching algorithm   Boyer-Moore string-matching algorithm   Algorithms   Analysis of algorithms   Data structures   Design of algorithms   Functional programming   Program correctness   Program derivation   Program specification   Programming languages   Software design and implementation   Theory of computation
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号