Efficient Generation of K-Ary Trees in Natural Order. Er, M. C. The Computer Journal, 35(3):306--308, June, 1992.
Efficient Generation of K-Ary Trees in Natural Order [link]Paper  doi  abstract   bibtex   
A k-ary tree with n nodes can be encoded as a k-inorder-preorder sequence of length (k-l)n by labelling the tree from 1 to (k-1)n in generalised inorder and then reading off the labelled integers in generalised preorder. The natural ordering of a set of k-ary trees with n nodes is shown to be preserved in the lexico graphic ordering of a set of k-inorder-preorder sequences of length (k-l)n. An efficient algorithm for generating a set of A-inorder-preorder sequences in lexicographic order is presented. This set of A-inorder-preorder sequences can subsequently be converted to the corresponding set of k-ary trees in natural order.
@article{ Er1992,
  abstract = {A k-ary tree with n nodes can be encoded as a k-inorder-preorder sequence of length (k-l)n by labelling the tree from 1 to (k-1)n in generalised inorder and then reading off the labelled integers in generalised preorder. The natural ordering of a set of k-ary trees with n nodes is shown to be preserved in the lexico graphic ordering of a set of k-inorder-preorder sequences of length (k-l)n. An efficient algorithm for generating a set of A-inorder-preorder sequences in lexicographic order is presented. This set of A-inorder-preorder sequences can subsequently be converted to the corresponding set of k-ary trees in natural order.},
  author = {Er, M. C.},
  doi = {10.1093/comjnl/35.3.306},
  file = {:Users/KunihiroWASA/Dropbox/paper/1992/Er, Efficient Generation of K-Ary Trees in Natural Order, 1992.pdf:pdf},
  issn = {0010-4620},
  journal = {The Computer Journal},
  month = {June},
  number = {3},
  pages = {306--308},
  title = {{Efficient Generation of K-Ary Trees in Natural Order}},
  url = {http://comjnl.oxfordjournals.org/cgi/doi/10.1093/comjnl/35.3.306},
  volume = {35},
  year = {1992}
}

Downloads: 0