GRAMMAR-ORIENTED ENUMERATION OF BINARY-TREES

Citation
Lm. Xiang et al., GRAMMAR-ORIENTED ENUMERATION OF BINARY-TREES, Computer journal, 40(5), 1997, pp. 278-291
Citations number
14
Journal title
ISSN journal
00104620
Volume
40
Issue
5
Year of publication
1997
Pages
278 - 291
Database
ISI
SICI code
0010-4620(1997)40:5<278:GEOB>2.0.ZU;2-4
Abstract
In contrast to traditional integer sequences for the representation of binary trees, a kind of character sequence (words) is presented for b inary trees based on a grammar GBT and for full binary trees based on a grammar GFBT. The properties of wards derived from GBT (GFBT) are di scussed in depth, including necessary and sufficient conditions for a word, prefix and suffix of (L) over bar(GBT) ((L) over bar(GFBT)) and algorithms are given and analysed for the enumeration of words of (L) over bar(GBT) ((L) over bar(GFBT)) lexicographically and in other ways , By modifying an algorithm for the enumeration of words in (L) over b ar(GBT), an algorithm is obtained to enumerate binary trees with a com puter representation in an average time of O(1) per tree. The problem with nom-isomorphic series of binary trees is also discussed within th e category of a grammar.