On the Decision Tree Complexity of String Matching

12/28/2017
by   Xiaoyu He, et al.
0

String matching is one of the most fundamental problems in computer science. A natural problem is to find the number of characters that need to be queried (i.e. the decision tree complexity) in a string in order to determine whether this string contains a certain pattern. Rivest showed that for every pattern p, in the worst case any deterministic algorithm needs to query at least n-|p|+1 characters, where n is the length of the string and |p| is the length of the pattern. He further conjectured that these bounds are tight. By using adversary methods, Tuza disproved this conjecture and showed that more than half of binary patterns are evasive, i.e. any algorithm needs to query all the characters. In this paper, we give a query algorithm which settles the decision tree complexity for almost all patterns. Using the algebraic approach of Rivest and Vuillemin we give a new sufficient condition for the evasiveness of patterns, which reveals an interesting connection to Skolem's Problem.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/09/2022

Cartesian Tree Subsequence Matching

Park et al. [TCS 2020] observed that the similarity between two (numeric...
research
03/26/2018

The Classification of Cropping Patterns Based on Regional Climate Classification Using Decision Tree Approach

Nowadays, agricultural field is experiencing problems related to climate...
research
07/08/2020

Supervised machine learning techniques for data matching based on similarity metrics

Businesses, governmental bodies and NGO's have an ever-increasing amount...
research
12/25/2017

Guesswork Subject to a Total Entropy Budget

We consider an abstraction of computational security in password protect...
research
01/16/2020

Generalised Pattern Matching Revisited

In the problem of Generalised Pattern Matching (GPM) [STOC'94, Muthukris...
research
10/25/2019

Massively Parallel Algorithms for String Matching with Wildcards

We study distributed algorithms for string matching problem in presence ...
research
06/28/2022

Subsequences With Gap Constraints: Complexity Bounds for Matching and Analysis Problems

We consider subsequences with gap constraints, i.e., length-k subsequenc...

Please sign up or login with your details

Forgot password? Click here to reset