Pith. sign in

Cartesian Tree Matching and Indexing

1 Pith paper cite this work. Polarity classification is still indexing.

1 Pith paper citing it
abstract

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.

fields

cs.DS 1

years

2019 1

verdicts

CONDITIONAL 1

representative citing papers

Fast Cartesian Tree Matching

cs.DS · 2019-08-14 · conditional · novelty 7.0

New prefix-parent, prefix-child, and global-parent representations enable faster Cartesian tree matching, and a binary filtration framework turns any exact string matching algorithm into a Cartesian tree matcher.

citing papers explorer

Showing 1 of 1 citing paper.

  • Fast Cartesian Tree Matching cs.DS · 2019-08-14 · conditional · none · ref 21 · internal anchor

    New prefix-parent, prefix-child, and global-parent representations enable faster Cartesian tree matching, and a binary filtration framework turns any exact string matching algorithm into a Cartesian tree matcher.