Fast Matching of Twig Patterns
Author(s) -
Li Jiang,
Junhu Wang
Publication year - 2008
Publication title -
lecture notes in computer science
Language(s) - English
Resource type - Book series
SCImago Journal Rank - 0.249
H-Index - 400
eISSN - 1611-3349
pISSN - 0302-9743
DOI - 10.1007/978-3-540-85654-2_45
Subject(s) - twig , computer science , pattern matching , matching (statistics) , stack (abstract data type) , selection (genetic algorithm) , xml , algorithm , simple (philosophy) , function (biology) , artificial intelligence , mathematics , programming language , philosophy , statistics , epistemology , evolutionary biology , horticulture , biology , operating system
Twig pattern matching plays a crucial role in data processing. Existing twig pattern matching algorithms can be classified into two-phase algorithms and one-phase algorithms. While the two-phase algorithms (e.g., ) suffer from expensive merging cost, the one-phase algorithms (e.g., , , ) either lack efficient filtering of useless elements, or use over-complicated data structures. In this paper, we present two novel one-phase holistic twig matching algorithms, TwigMix and , which combine the efficient selection of useful elements (introduced in ) with the simple lists for storing final solutions (introduced in ). simply introduces the element selection function of into to avoid manipulation of useless elements in the stack and lists. further improves this by introducing some pointers in the lists to completely avoid the use of stacks. Our experiments show significantly and consistently outperforms and (up to several times faster), and is up to two times faster than .Griffith Sciences, School of Information and Communication TechnologyFull Tex
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom