首页    期刊浏览 2024年09月18日 星期三
登录注册

文章基本信息

  • 标题:Pattern-Matching for Strings with Short Descriptions
  • 本地全文:下载
  • 作者:Marek Karpinski ; Wojciech Rytter ; Ayumi Shinohara
  • 期刊名称:Electronic Colloquium on Computational Complexity
  • 印刷版ISSN:1433-8092
  • 出版年度:1995
  • 卷号:1995
  • 出版社:Universität Trier, Lehrstuhl für Theoretische Computer-Forschung
  • 摘要:We consider strings which are succinctly described. The description is in terms of straight-line programs in which the constants are symbols and the only operation is the concatenation. Such descriptions correspond to the systems of recurrences or to context-free grammars generating single words. The descriptive size of a string is the length n of a straight-line program (or size of a grammar) which defines this string. Usually the strings of descriptive size n are of exponential length. {\em Fibonacci \/} and {\em Thue-Morse words \/} are examples of such strings. We show that for a pattern P and text T of descriptive sizes mn , an occurrence of P in T can be found (if there is any) in time polynomial with respect to n. This is nontrivial, since the actual lengths of P and T could be exponential, and none of the known string-matching algorithms is directly applicable. Our first tool is the periodicity lemma, which allows to represent some sets of exponentially many positions in terms of feasibly many arithmetic progressions. The second tool is arithmetics: a simple application of Euclid algorithm. Hence a textual problem for exponentially long strings is reduced here to simple arithmetics on integers with (only) linearly many bits. We present also an NP-complete version of the pattern-matching for shortly described strings.
  • 关键词:algorithms, Pattern Matching, Straight-Line Programs, Succinct Description
国家哲学社会科学文献中心版权所有