{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,7]],"date-time":"2026-10-07T23:24:30Z","timestamp":1791415470279,"version":"4.3.3"},"reference-count":27,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"2","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[1995,4]]},"abstract":"<jats:p>The following tree-matching problem is considered: Given labeled trees P and T, can P be obtained from T by deleting nodes? Deleting a node u entails removing all edges incident to u and, if u has a parent v, replacing the edge from v to u by edges from v to the children of u. The problem is motivated by the study of query languages for structured text databases. Simple solutions to this problem require exponential time. For ordered trees an algorithm is presented that requires $O(|P||T|)$ time and space. The corresponding problem for unordered trees is also considered and a proof of its NP-completeness is given. An algorithm is presented for the unordered problem. This algorithm works in $O(|P||T|)$ time if the out-degrees of the nodes in P are bounded by a constant, and in polynomial time if they are $O(\\log |T|)$.<\/jats:p>","DOI":"10.1137\/s0097539791218202","type":"journal-article","created":{"date-parts":[[2005,2,24]],"date-time":"2005-02-24T06:42:53Z","timestamp":1109227373000},"page":"340-356","source":"Crossref","is-referenced-by-count":144,"title":["Ordered and Unordered Tree Inclusion"],"prefix":"10.1137","volume":"24","author":[{"given":"Pekka","family":"Kilpel\u00e4inen","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Heikki","family":"Mannila","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2006,7,31]]},"reference":[{"key":"R1","volume-title":"Combinatorics","author":"Bollob\u00e1s B\u00e9la","year":"1986"},{"key":"R2","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(91)90359-A"},{"key":"R3","doi-asserted-by":"crossref","unstructured":"S. A. Cook,  The complexity of theorem-proving procedures,  Proc. of the 3rd Annual ACM Symposium on Theory of Computing, ACM Press, New York,  1971,  151\u2013158 0253.68020","DOI":"10.1145\/800157.805047"},{"key":"R4","doi-asserted-by":"publisher","DOI":"10.1109\/FSCS.1990.89533"},{"key":"R5","volume-title":"Computers and intractability","author":"Garey Michael R.","year":"1979"},{"key":"R6","unstructured":"G. H. Gonnet, F. Wm. Tompa,  Mind your grammar - a new approach to text databases,  Proc. of the Conference on Very Large Data Bases (VLDB'87), Morgan Haufman Publishers, Brighton,  1987,  339\u2013346"},{"key":"R7","doi-asserted-by":"publisher","DOI":"10.1145\/360825.360861"},{"key":"R8","doi-asserted-by":"publisher","DOI":"10.1145\/322290.322295"},{"key":"R9","doi-asserted-by":"publisher","DOI":"10.1016\/0196-6774(87)90043-5"},{"key":"R10","unstructured":"P. Kilpel\u00e4inen, Ph.D. Thesis,  Tree Matching Problems with Applications to Structured Text Databases, University of Helsinki, Dept. of Comp. Science,  1992, November"},{"key":"R11","unstructured":"P. Kilpel\u00e4inen, G. Lind\u00e9n, H. Mannila, E. Nikunen,  R.  Furuta,  A structured document database system,  EP90\u2013Proceedings of the International Conference on Electronic Publishing, Document Manipulation & Typography, the Cambridge Series on Electronic Publishing, Cambridge University Press, Cambridge, UK,  1990"},{"key":"R12","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-53982-4_12"},{"key":"R13","doi-asserted-by":"crossref","unstructured":"P. Kilpel\u00e4inen, H. Mannila,  R.  Korfhage, E.  Rasmussen, P.  Willett,  Retrieval from hierarchical texts by partial patterns,  SIGIR '93\u2013Proceedings of the Sixteenth Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, ACM Press, New York,  1993,  214\u2013222","DOI":"10.1145\/160688.160722"},{"key":"R14","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-58094-8_19"},{"key":"R15","volume-title":"The art of computer programming. Vol. 1: Fundamental algorithms","author":"Knuth Donald E.","year":"1969"},{"key":"R16","doi-asserted-by":"crossref","unstructured":"S. R. Kosaraju,  Efficient tree pattern matching,  Proc. of the Symposium on Foundations of Computer Science (FOCS'89), IEEE Computer Society Press, Research Triangle Park, NC,  1989,  178\u2013183","DOI":"10.1109\/SFCS.1989.63475"},{"key":"R17","first-page":"469","volume-title":"Information Modelling and Knowledge Bases","author":"Mannila H.","year":"1990"},{"key":"R18","doi-asserted-by":"publisher","DOI":"10.1016\/0012-365X(92)90687-B"},{"key":"R19","doi-asserted-by":"publisher","DOI":"10.1145\/128749.128752"},{"key":"R20","doi-asserted-by":"publisher","DOI":"10.1137\/0206053"},{"key":"R21","doi-asserted-by":"publisher","DOI":"10.1016\/0196-6774(86)90023-4"},{"key":"R22","doi-asserted-by":"publisher","DOI":"10.1016\/0196-6774(90)90011-3"},{"key":"R23","doi-asserted-by":"publisher","DOI":"10.1007\/BF01171114"},{"key":"R24","doi-asserted-by":"crossref","unstructured":"J. Tague, A. Salminen, C. McClellan,  A.  Bookstein, Y.  Chiaramella, G.  Salton, V. V. Raghavan,  Complete formal model for information retrieval systems,  Proceedings of the Fourteenth Annual International ACM\/SIGIR Conference on Research and Development in Information Retrieval, ACM Press, New York,  1991,  14\u201320","DOI":"10.1145\/122860.122862"},{"key":"R25","doi-asserted-by":"publisher","DOI":"10.1145\/322139.322143"},{"key":"R26","doi-asserted-by":"publisher","DOI":"10.1137\/0218062"},{"key":"R27","doi-asserted-by":"publisher","DOI":"10.1137\/0218082"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/S0097539791218202","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:43:45Z","timestamp":1787337825000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/S0097539791218202"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[1995,4]]},"references-count":27,"journal-issue":{"issue":"2","published-print":{"date-parts":[[1995,4]]}},"alternative-id":["10.1137\/S0097539791218202"],"URL":"https:\/\/doi.org\/10.1137\/s0097539791218202","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[1995,4]]}}}