Skip to search boxSkip to navigationSkip to main content

On modification of Boyer-Moore-horspool's algorithm for tree pattern matching in linearised trees

  • Jan Travnicek(Corresponding author)
    ,
  • Jan Janousek
    ,
  • Borivoj Melichar
    ,
Output:
Contribution to journal
Article
Academic
Peer-review

Information

Output type

Output:
Contribution to journal
Article
Academic
Peer-review

Original language

English

Pages from-to (Number of pages)

Pages 60-90 (31 pages)

Journal (Volume, Issue Number)

Theoretical Computer Science (Volume 830-831)

Publication milestones

  • Published - 24/08/2020

Publication status

Published - 24/08/2020

ISSN

0304-3975

Funding Details

The authors acknowledge the support of the OP VVV MEYS funded project CZ.02.1.01/0.0/0.0/16_019/0000765 “Research Center for Informatics”. This work is based on the research supported in part by the National Research Foundation of South Africa (grant number 29725 ).

Abstract

Tree pattern matching on ordered trees is an important problem in Computer Science. Ordered trees can be represented as strings with additional properties via various linearisations. We present a backward tree pattern matching algorithm for ordered trees for various linear representations of trees and tree patterns. The algorithm adaptations find all occurrences of a single given tree pattern which match an input tree regardless of the chosen linearisation. The algorithms preserve the properties and advantages of standard backward string pattern matching using Boyer-Moore-Horspool's bad character shift heuristics. The number of symbol comparisons in the backward tree pattern matching can be sublinear in the size of the input tree. As in the case of the string version of Boyer-Moore-Horspool's matching algorithm, the size of the bad character shift table used by the algorithm is linear in the size of the alphabet. We compare the algorithm adaptations with the algorithm using originally chosen linear representation and with the best performing previously existing algorithms based on (non-linearised) tree pattern matching using finite tree automata or stringpath matchers. We show that the presented backward tree pattern matching algorithms outperform the non-linearising ones for single pattern matching and they perform among themselves comparably.<br/><br/>

Metrics

Metrics

SciVal
citations
7
SciVal
FWCI
0.46
SciVal
Author count
4
SciVal
Paper percentile
51
Scopus
citations
7

PlumX, opens in new tab

Citation count
7
Captures
12