期刊文献+
共找到1篇文章
< 1 >
每页显示 20 50 100
Linear algorithm for lexicographic enumeration of CFG parse trees 被引量:2
1
作者 DONG YunMei 《Science in China(Series F)》 2009年第7期1177-1202,共26页
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 ... 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). 展开更多
关键词 hierarchical construction of set of parse trees lexicographic enumeration of parse trees counting of parse trees
原文传递
上一页 1 下一页 到第
使用帮助 返回顶部