您的位置: 专家智库 > >

国家自然科学基金(s60273023)

作品数:1 被引量:2H指数:1
发文基金:国家自然科学基金更多>>
相关领域:建筑科学自动化与计算机技术更多>>

文献类型

  • 1篇中文期刊文章

领域

  • 1篇自动化与计算...
  • 1篇建筑科学

主题

  • 1篇SET
  • 1篇CFG
  • 1篇HIERAR...
  • 1篇COUNTI...
  • 1篇LEXICO...
  • 1篇ENUMER...

传媒

  • 1篇Scienc...

年份

  • 1篇2009
1 条 记 录,以下是 1-1
排序方式:
Linear algorithm for lexicographic enumeration of CFG parse trees被引量:2
2009年
We study CFG parse tree enumeration in this paper. By dividing the set of all parse trees into infinite hierarchies according to height of parse tree, the hierarchical lexicographic order on the set of parse trees is established. Then grammar-based algorithms for counting and enumerating CFG parse trees in this order are presented. To generate a parse tree of height n, the time complexity is O(n). If τ is a lowest parse tree for its yield, then O(n) =O(||τ|| + 1), where ||τ|| is the length of the sentence (yield) generated by τ. The sentence can be obtained as a by-product of the parse tree. To compute sentence from its parse tree (needn't be lowest one), the time complexity is O(node)+O(||τ|| + 1), where node is the number of non-leaf nodes of parse tree τ. To generate both a complete lowest parse tree and its yield at the same time, the time complexity is O(||τ|| + 1).
DONG YunMei
共1页<1>
聚类工具0