首页> 外文会议>Algorithms and Data Structures Symposium >Bit-Parallel Tree Pattern Matching Algorithms for Unordered Labeled Trees
【24h】

Bit-Parallel Tree Pattern Matching Algorithms for Unordered Labeled Trees

机译:无序标记树的位并行树模式匹配算法

获取原文

摘要

The following tree pattern matching problem is considered: Given two unordered labeled trees P and T, find all occurrences of P in T. Here P and T are called a pattern tree and a target tree, respectively. We first introduce a new problem called the pseudo-tree pattern matching problem. Then we show two efficient bit-parallel algorithms for the pseudo-tree pattern matching problem. One runs in O(L{sub}p·n·l·[h/W]) time and O(n·l·[h/W]) space, and another one runs in O((L{sub}p·n+h·2{sup}l)·[(h·l)/W]) time and O((n+h·2{sup}l)·[(h·l)/W]) space, where n is the number of nodes in T, h and l are the height of P and the number of leaves of P, respectively, and W is the length of a computer-word. The parameter L{sub}p, called a recursive level of P, is defined to be the number of occurrences of the same label on a path from the root to a leaf. Hence we have L{sub}p≤h. Finally, we give an algorithm to extract all occurrences from pseud-occurrences in O(n·L{sub}p·l{sup}(3/2)) time and O(n·L{sub}p·l) space.
机译:考虑以下树模式匹配问题:给定两个无序标记的树木p和t,发现了t的所有出现p。这里p和t分别称为模式树和目标树。我们首先介绍一个称为伪树模式匹配问题的新问题。然后我们为伪树模式匹配问题显示两个有效的位并行算法。一个在O(l {sub} p·n·l·[h / w])中运行时间和o(n·l·[h / w])空间,另一个在o(l {sub} p ·n + h·2 {sup} l)·[(h·l)/ w])时间和o((n + h·2 {sup} l)·[(h·l)/ w])空间,其中n是t,h和l中的节点的数量是p的高度和p的叶子的数量,并且w是计算机字的长度。称为递归级别的参数l {sub} p被定义为从根到叶子的路径上的相同标签的出现次数。因此,我们有l {sub}p≤h。最后,我们给出了一种算法,可以从o(n·l {sub} p·l {sup}(3/2))时间和o(n·l {sub} p·l)空间中的所有发生算法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号