Tree template matching in ranked ordered trees by pushdown automata
We consider the problem of tree template matching in ranked ordered trees, and propose a solution based on the bottom-up technique. Specifically, we transform the tree pattern matching problem to a string matching problem, by transforming the tree template and the subject tree to strings representin...
Saved in:
Published in | Journal of discrete algorithms (Amsterdam, Netherlands) Vol. 17; pp. 15 - 23 |
---|---|
Main Authors | , , , , |
Format | Journal Article |
Language | English |
Published |
Elsevier B.V
01.12.2012
|
Subjects | |
Online Access | Get full text |
ISSN | 1570-8667 1570-8675 |
DOI | 10.1016/j.jda.2012.10.003 |
Cover
Abstract | We consider the problem of tree template matching in ranked ordered trees, and propose a solution based on the bottom-up technique. Specifically, we transform the tree pattern matching problem to a string matching problem, by transforming the tree template and the subject tree to strings representing their postfix notation, and then use pushdown automata as the computational model. The method is analogous to the construction of string pattern matchers. The given tree template is preprocessed once, by constructing a nondeterministic pushdown automaton, which is then transformed to the equivalent deterministic one. Although we prove that the space required for preprocessing is exponential to the size of the tree template in the worst case, the space required for a specific class of tree templates is linear. The time required for the searching phase is linear to the size of the subject tree in both cases. |
---|---|
AbstractList | We consider the problem of tree template matching in ranked ordered trees, and propose a solution based on the bottom-up technique. Specifically, we transform the tree pattern matching problem to a string matching problem, by transforming the tree template and the subject tree to strings representing their postfix notation, and then use pushdown automata as the computational model. The method is analogous to the construction of string pattern matchers. The given tree template is preprocessed once, by constructing a nondeterministic pushdown automaton, which is then transformed to the equivalent deterministic one. Although we prove that the space required for preprocessing is exponential to the size of the tree template in the worst case, the space required for a specific class of tree templates is linear. The time required for the searching phase is linear to the size of the subject tree in both cases. |
Author | Janoušek, Jan Pissis, Solon P. Melichar, Bořivoj Iliopoulos, Costas S. Flouri, Tomáš |
Author_xml | – sequence: 1 givenname: Tomáš surname: Flouri fullname: Flouri, Tomáš organization: Czech Technical University in Prague, Faculty of Information Technology, Dept. of Theoretical Computer Science, Czech Republic – sequence: 2 givenname: Costas S. surname: Iliopoulos fullname: Iliopoulos, Costas S. organization: Kingʼs College London, Dept. of Informatics, UK – sequence: 3 givenname: Jan surname: Janoušek fullname: Janoušek, Jan organization: Czech Technical University in Prague, Faculty of Information Technology, Dept. of Theoretical Computer Science, Czech Republic – sequence: 4 givenname: Bořivoj surname: Melichar fullname: Melichar, Bořivoj organization: Czech Technical University in Prague, Faculty of Information Technology, Dept. of Theoretical Computer Science, Czech Republic – sequence: 5 givenname: Solon P. surname: Pissis fullname: Pissis, Solon P. email: solon.pissis@kcl.ac.uk organization: Kingʼs College London, Dept. of Informatics, UK |
BookMark | eNp9kMtOwzAQRS1UJNrCB7DzDyT4kcSJWKGKl1SJTVlbjj2hDq1d2S6of4-rIhYsurpzR3NGM3eGJs47QOiWkpIS2tyN5WhUyQhl2ZeE8As0pbUgRduIevJXN-IKzWIcCWE1rdgULVYBACfY7jYqAd6qpNfWfWDrcFDuEwz2wUDImvJgxP0B7_Zxbfy3w2qffAbUNboc1CbCza_O0fvT42rxUizfnl8XD8tCs06kgnEqiB6ENp2BVgBw3lFCoKrzcRXtm3botO5ZRaq6bXXTDJT3ANA1SvPs-ByJ014dfIwBBqltUsl6l4KyG0mJPGYhR5mzkMcsjq2cRSbpP3IX7FaFw1nm_sRAfunLQpBRW3AajA2gkzTenqF_AGGVeTo |
CitedBy_id | crossref_primary_10_1016_j_jda_2013_02_001 |
Cites_doi | 10.1007/s00236-009-0104-9 10.1016/S0304-3975(98)00205-9 10.1145/322290.322295 10.1145/512760.512785 10.2298/CSIS1002331F 10.1145/131080.131089 10.1016/j.tcs.2004.12.015 |
ContentType | Journal Article |
Copyright | 2012 Elsevier B.V. |
Copyright_xml | – notice: 2012 Elsevier B.V. |
DBID | 6I. AAFTH AAYXX CITATION |
DOI | 10.1016/j.jda.2012.10.003 |
DatabaseName | ScienceDirect Open Access Titles Elsevier:ScienceDirect:Open Access CrossRef |
DatabaseTitle | CrossRef |
DatabaseTitleList | |
DeliveryMethod | fulltext_linktorsrc |
Discipline | Computer Science |
EISSN | 1570-8675 |
EndPage | 23 |
ExternalDocumentID | 10_1016_j_jda_2012_10_003 S1570866712001384 |
GroupedDBID | --K --M .~1 0R~ 1B1 1~. 1~5 29K 4.4 457 4G. 5GY 5VS 6I. 7-5 71M 8P~ AACTN AAEDT AAEDW AAFTH AAIKJ AAKOC AALRI AAOAW AAQFI AAXUO AAYFN ABAOU ABBOA ABJNI ABMAC ABVKL ABXDB ABYKQ ACAZW ACDAQ ACGFS ACNNM ACRLP ACZNC ADBBV ADEZE ADMUD AEBSH AEKER AEXQZ AFKWA AFTJW AGHFR AGUBO AGYEJ AIALX AIEXJ AIGVJ AIKHN AITUG AJBFU AJOXV ALMA_UNASSIGNED_HOLDINGS AMFUW AMRAJ AOUOD ARUGR AXJTR BKOJK BLXMC CS3 D-I DU5 EBS EFJIC EFLBG EJD EO8 EO9 EP2 EP3 FDB FEDTE FIRID FNPLU FYGXN G-Q GBLVA GBOLZ HVGLF HZ~ IHE IXB J1W KOM M41 MHUIS MO0 N9A NCXOZ O-L O9- OAUVE OK1 OZT P-8 P-9 PC. Q38 RIG ROL RPZ SDF SDG SES SEW SPC SSV SSW SSZ T5K ~G- AATTM AAXKI AAYWO AAYXX ABWVN ACRPL ACVFH ADCNI ADNMO ADVLN AEIPS AEUPX AFPUW AFXIZ AGCQF AGRNS AIGII AIIUN AKBMS AKRWK AKYEP ANKPU CITATION SSH |
ID | FETCH-LOGICAL-c297t-23170cf7cd9de87ee339100e4515741b68f9ccb2404588c66f13beee96ac366f3 |
IEDL.DBID | AIKHN |
ISSN | 1570-8667 |
IngestDate | Tue Jul 01 02:38:37 EDT 2025 Thu Apr 24 23:03:49 EDT 2025 Fri Feb 23 02:29:58 EST 2024 |
IsDoiOpenAccess | true |
IsOpenAccess | true |
IsPeerReviewed | false |
IsScholarly | true |
Keywords | Automata theory Algorithms on strings Tree pattern matching |
Language | English |
License | http://www.elsevier.com/open-access/userlicense/1.0 https://www.elsevier.com/tdm/userlicense/1.0 https://www.elsevier.com/open-access/userlicense/1.0 |
LinkModel | DirectLink |
MergedId | FETCHMERGED-LOGICAL-c297t-23170cf7cd9de87ee339100e4515741b68f9ccb2404588c66f13beee96ac366f3 |
OpenAccessLink | https://www.sciencedirect.com/science/article/pii/S1570866712001384 |
PageCount | 9 |
ParticipantIDs | crossref_citationtrail_10_1016_j_jda_2012_10_003 crossref_primary_10_1016_j_jda_2012_10_003 elsevier_sciencedirect_doi_10_1016_j_jda_2012_10_003 |
ProviderPackageCode | CITATION AAYXX |
PublicationCentury | 2000 |
PublicationDate | December 2012 2012-12-00 |
PublicationDateYYYYMMDD | 2012-12-01 |
PublicationDate_xml | – month: 12 year: 2012 text: December 2012 |
PublicationDecade | 2010 |
PublicationTitle | Journal of discrete algorithms (Amsterdam, Netherlands) |
PublicationYear | 2012 |
Publisher | Elsevier B.V |
Publisher_xml | – name: Elsevier B.V |
References | T. Kuboyama, Matching and learning in trees, Ph.D. thesis, 2007. Hoffmann, OʼDonnell (br0080) 1982; 29 Janoušek, Melichar (br0090) 2009; 46 Chase (br0020) 1987 Melichar (br0120) 2010; vol. 6031 Mauri, Pavesi (br0110) 2005; 335 Aho, Ganapathi (br0010) 1985 Crochemore, Rytter (br0040) 1994 R.S. Glanville, S.L. Graham, A new method for compiler code generation, in: POPL, pp. 231–240. Flouri, Janoušek, Melichar (br0050) 2010; 7 L.G.W.A. Cleophas, Tree algorithms: two taxonomies and a toolkit, Ph.D. thesis, Eindhoven University of Technology, 2008. Nowotka, Srba (br0130) 2007; vol. 4708 Shankar, Gantait, Yuvaraj, Madhavan (br0140) 2000; 242 Fraser, Henry, Proebsting (br0060) 1992; 27 Melichar (10.1016/j.jda.2012.10.003_br0120) 2010; vol. 6031 Aho (10.1016/j.jda.2012.10.003_br0010) 1985 Crochemore (10.1016/j.jda.2012.10.003_br0040) 1994 Nowotka (10.1016/j.jda.2012.10.003_br0130) 2007; vol. 4708 Chase (10.1016/j.jda.2012.10.003_br0020) 1987 10.1016/j.jda.2012.10.003_br0100 Flouri (10.1016/j.jda.2012.10.003_br0050) 2010; 7 Shankar (10.1016/j.jda.2012.10.003_br0140) 2000; 242 10.1016/j.jda.2012.10.003_br0030 10.1016/j.jda.2012.10.003_br0070 Hoffmann (10.1016/j.jda.2012.10.003_br0080) 1982; 29 Janoušek (10.1016/j.jda.2012.10.003_br0090) 2009; 46 Mauri (10.1016/j.jda.2012.10.003_br0110) 2005; 335 Fraser (10.1016/j.jda.2012.10.003_br0060) 1992; 27 |
References_xml | – volume: 29 start-page: 68 year: 1982 end-page: 95 ident: br0080 article-title: Pattern matching in trees publication-title: Journal of the ACM – reference: T. Kuboyama, Matching and learning in trees, Ph.D. thesis, 2007. – start-page: 334 year: 1985 end-page: 340 ident: br0010 article-title: Efficient tree pattern matching (extended abstract): an aid to code generation publication-title: POPL – year: 1994 ident: br0040 article-title: Jewels of Stringology – volume: 335 start-page: 29 year: 2005 end-page: 51 ident: br0110 article-title: Algorithms for pattern matching and discovery in RNA secondary structure publication-title: Theoretical Computer Science – volume: 7 start-page: 331 year: 2010 end-page: 358 ident: br0050 article-title: Subtree matching by pushdown automata publication-title: Computer Science and Information Systems – volume: 242 start-page: 125 year: 2000 end-page: 142 ident: br0140 article-title: A new algorithm for linear regular tree pattern matching publication-title: Theoretical Computer Science – start-page: 168 year: 1987 end-page: 177 ident: br0020 article-title: An improvement to bottom-up tree pattern matching publication-title: POPLʼ87 – volume: 27 start-page: 68 year: 1992 end-page: 76 ident: br0060 article-title: Burg: fast optimal instruction selection and tree parsing publication-title: SIGPLAN Notices – volume: vol. 6031 start-page: 32 year: 2010 end-page: 49 ident: br0120 article-title: Arbology: trees and pushdown automata publication-title: LATA – reference: R.S. Glanville, S.L. Graham, A new method for compiler code generation, in: POPL, pp. 231–240. – volume: vol. 4708 start-page: 125 year: 2007 end-page: 134 ident: br0130 article-title: Height-deterministic pushdown automata publication-title: MFCS 2007 – reference: L.G.W.A. Cleophas, Tree algorithms: two taxonomies and a toolkit, Ph.D. thesis, Eindhoven University of Technology, 2008. – volume: 46 start-page: 533 year: 2009 end-page: 547 ident: br0090 article-title: On regular tree languages and deterministic pushdown automata publication-title: Acta Informatica – year: 1994 ident: 10.1016/j.jda.2012.10.003_br0040 – volume: 46 start-page: 533 year: 2009 ident: 10.1016/j.jda.2012.10.003_br0090 article-title: On regular tree languages and deterministic pushdown automata publication-title: Acta Informatica doi: 10.1007/s00236-009-0104-9 – start-page: 168 year: 1987 ident: 10.1016/j.jda.2012.10.003_br0020 article-title: An improvement to bottom-up tree pattern matching – volume: 242 start-page: 125 year: 2000 ident: 10.1016/j.jda.2012.10.003_br0140 article-title: A new algorithm for linear regular tree pattern matching publication-title: Theoretical Computer Science doi: 10.1016/S0304-3975(98)00205-9 – volume: 29 start-page: 68 year: 1982 ident: 10.1016/j.jda.2012.10.003_br0080 article-title: Pattern matching in trees publication-title: Journal of the ACM doi: 10.1145/322290.322295 – volume: vol. 6031 start-page: 32 year: 2010 ident: 10.1016/j.jda.2012.10.003_br0120 article-title: Arbology: trees and pushdown automata – ident: 10.1016/j.jda.2012.10.003_br0070 doi: 10.1145/512760.512785 – volume: vol. 4708 start-page: 125 year: 2007 ident: 10.1016/j.jda.2012.10.003_br0130 article-title: Height-deterministic pushdown automata – volume: 7 start-page: 331 year: 2010 ident: 10.1016/j.jda.2012.10.003_br0050 article-title: Subtree matching by pushdown automata publication-title: Computer Science and Information Systems doi: 10.2298/CSIS1002331F – volume: 27 start-page: 68 year: 1992 ident: 10.1016/j.jda.2012.10.003_br0060 article-title: Burg: fast optimal instruction selection and tree parsing publication-title: SIGPLAN Notices doi: 10.1145/131080.131089 – ident: 10.1016/j.jda.2012.10.003_br0100 – ident: 10.1016/j.jda.2012.10.003_br0030 – volume: 335 start-page: 29 year: 2005 ident: 10.1016/j.jda.2012.10.003_br0110 article-title: Algorithms for pattern matching and discovery in RNA secondary structure publication-title: Theoretical Computer Science doi: 10.1016/j.tcs.2004.12.015 – start-page: 334 year: 1985 ident: 10.1016/j.jda.2012.10.003_br0010 article-title: Efficient tree pattern matching (extended abstract): an aid to code generation |
SSID | ssj0025142 |
Score | 1.9264855 |
Snippet | We consider the problem of tree template matching in ranked ordered trees, and propose a solution based on the bottom-up technique. Specifically, we transform... |
SourceID | crossref elsevier |
SourceType | Enrichment Source Index Database Publisher |
StartPage | 15 |
SubjectTerms | Algorithms on strings Automata theory Tree pattern matching |
Title | Tree template matching in ranked ordered trees by pushdown automata |
URI | https://dx.doi.org/10.1016/j.jda.2012.10.003 |
Volume | 17 |
hasFullText | 1 |
inHoldings | 1 |
isFullTextHit | |
isPrint | |
link | http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwnV07b8IwED7xWLr0XZU-kIdOlQJJ7Nh4pKgIWpWlILFFiW1UEAoIwtClv73nPFArtR06RWf5pOjs3H3Ofb4DuONC0NhIPJ1I1zhMaOogamWOjihnCiOWn_2HfBnxwYQ9TYNpBXrlXRhLqyx8f-7TM29djLQLa7bX83n71QsE4nEuPD9Lt7Eq1H0qeVCDenf4PBjtz12ICbKkJ853rEKZ3MxoXgttqw95fivjeNGfw9OXkNM_hsMCK5Ju_jonUDHJKRyVfRhI8VmeQW-8MYbYIlNLRI4EMWhGkCTzhNiW7EaTrMAmPm0Kekvid7Lebd80HsBJtEtXqBCdw6T_OO4NnKI5gqN8KVIHcZlw1UwoLbXpCGMoxcjvGoYABVFCzDszqVSMAdveRVWczzxcFGMkjxRFiV5ALVkl5hIIiyUCIV_EAXWZp1hEFeKgyES2lI8OZAPc0iahKiqH2wYWy7CkiC1CNGNozWiH0IwNuN-rrPOyGX9NZqWhw29rH6Jb_13t6n9q13BgpZyScgO1dLMztwgs0rgJ1daH1yy2D0rD6cMn52PK4w |
linkProvider | Elsevier |
linkToHtml | http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwnV07T8MwED6VMsDCG1GeHpiQQpPYsesRKlALbRdaqVuU2K5oVbVVmw78e85OUoEEDExRnDspOid3n33n7wBuuRA0NRJXJ9I3HhOaeohamacTypnCiBW6fchuj7cG7GUYDSvQLM_C2LLKwvfnPt1562KkXlizvhiP629BJBCPcxGELt3GtmAb0QC3BPrt4eNm1YWIwKU8Udqz4mVq0xV5TbTlHgrCe1fhRX8OTl8CzvMB7BVIkTzkL3MIFTM7gv2yCwMpfspjaPaXxhBLMTVF3EgQgbrySDKeEduQ3Wji6DXxahPQK5J-kMV69a5x-U2SdTZHheQEBs9P_WbLK1ojeCqUIvMQlQlfjYTSUpuGMIZSjPu-YQhPECOkvDGSSqUYru1JVMX5KMApMUbyRFG8o6dQnc1n5gwISyXCoFCkEfVZoFhCFaKgxCSWyEdHsgZ-aZNYFbzhtn3FNC4LxCYxmjG2ZrRDaMYa3G1UFjlpxl_CrDR0_G3mY3Tqv6ud_0_tBnZa_W4n7rR7rxewa5_kxSmXUM2Wa3OFECNLr90n9Anlgsq3 |
openUrl | ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Tree+template+matching+in+ranked+ordered+trees+by+pushdown+automata&rft.jtitle=Journal+of+discrete+algorithms+%28Amsterdam%2C+Netherlands%29&rft.au=Flouri%2C+Tom%C3%A1%C5%A1&rft.au=Iliopoulos%2C+Costas+S.&rft.au=Janou%C5%A1ek%2C+Jan&rft.au=Melichar%2C+Bo%C5%99ivoj&rft.date=2012-12-01&rft.issn=1570-8667&rft.volume=17&rft.spage=15&rft.epage=23&rft_id=info:doi/10.1016%2Fj.jda.2012.10.003&rft.externalDBID=n%2Fa&rft.externalDocID=10_1016_j_jda_2012_10_003 |
thumbnail_l | http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/lc.gif&issn=1570-8667&client=summon |
thumbnail_m | http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/mc.gif&issn=1570-8667&client=summon |
thumbnail_s | http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/sc.gif&issn=1570-8667&client=summon |