Faster bit-parallel algorithms for unordered pseudo-tree matching and tree homeomorphism
Faster bit-parallel algorithms for unordered pseudo-tree matching and tree homeomorphism
复制标题
DOI:
10.1007/978-3-642-19222-7_8
复制
发表时间:
2010-07
期刊:
影响因子:
--
通讯作者:
Yusaku Kaneta;Hiroki Arimura;R. Raman
中科院分区:
文献类型:
--
作者:
Yusaku Kaneta;Hiroki Arimura;R. Raman
In this paper, we consider the unordered pseudo-tree matching problem, which is a problem of, given two unordered labeled treesPandT, finding all occurrences ofPinTvia such many-one embeddings that preserve node labels and parent-child relationship. This problem is closely related to tree pattern matching problem for XPath queries with child axis only. Ifm>w, we present an efficient algorithm that solves the problem intime usingO(hm/w+mlog(w)/w) space andO(mlog(w)) preprocessing on a unit-cost arithmetic RAM model with addition, wheremis the number of nodes inP,nis the number of nodes inT,his the height ofT, andwis the word length. We also discuss a modification of our algorithm for the unordered tree homeomorphism problem, which corresponds to a tree pattern matching problem for XPath queries with descendant axis only.