首页    期刊浏览 2024年11月24日 星期日
登录注册

文章基本信息

  • 标题:Cartesian Tree Matching and Indexing
  • 本地全文:下载
  • 作者:Sung Gwan Park ; Amihood Amir ; Gad M. Landau
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2019
  • 卷号:128
  • 页码:1-14
  • DOI:10.4230/LIPIcs.CPM.2019.16
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:We introduce a new metric of match, called Cartesian tree matching, which means that two strings match if they have the same Cartesian trees. Based on Cartesian tree matching, we define single pattern matching for a text of length n and a pattern of length m, and multiple pattern matching for a text of length n and k patterns of total length m. We present an O(n+m) time algorithm for single pattern matching, and an O((n+m) log k) deterministic time or O(n+m) randomized time algorithm for multiple pattern matching. We also define an index data structure called Cartesian suffix tree, and present an O(n) randomized time algorithm to build the Cartesian suffix tree. Our efficient algorithms for Cartesian tree matching use a representation of the Cartesian tree, called the parent-distance representation.
  • 关键词:Cartesian tree matching; Pattern matching; Indexing; Parent-distance representation
国家哲学社会科学文献中心版权所有