About

Log in?

DTU users get better search results including licensed content and discounts on order fees.

Anyone can log in and get personalized features such as favorites, tags and feeds.

Log in as DTU user Log in as non-DTU user No thanks

DTU Findit

Journal article

The Tree Inclusion Problem: In Linear Space and Faster : In linear space and faster

From

Algorithms and Logic, Department of Informatics and Mathematical Modeling, Technical University of Denmark1

Department of Informatics and Mathematical Modeling, Technical University of Denmark2

Given two rooted, ordered, and labeled trees P and T the tree inclusion problem is to determine if P can be obtained from T by deleting nodes in T. This problem has recently been recognized as an important query primitive in XML databases. Kilpel äinen and Mannila [1995] presented the first polynomial-time algorithm using quadratic time and space.

Since then several improved results have been obtained for special cases when P and T have a small number of leaves or small depth. However, in the worst case these algorithms still use quadratic time and space. Let nS, lS, and dS denote the number of nodes, the number of leaves, and the depth of a tree S ε {P, T}.

In this article we show that the tree inclusion problem can be solved in space O(nT ) and time: Eqation Presented ∑ This improves or matches the best known time complexities while using only linear space instead of quadratic. This is particularly important in practical applications, such as XML databases, where the space is likely to be a bottleneck. © 2011 ACM.

Language: English
Publisher: ACM, 2 Penn Plaza, Suite 701, New York, NY, USA
Year: 2011
Pages: 1-47
ISSN: 15496333 and 15496325
Types: Journal article
DOI: 10.1145/1978782.1978793
ORCIDs: Bille, Philip and Gørtz, Inge Li

DTU users get better search results including licensed content and discounts on order fees.

Log in as DTU user

Access

Analysis