38
Views
10
CrossRef citations to date
0
Altmetric
Original Articles

Generation of t-ary trees with Ballot-sequences*

Pages 1243-1249 | Received 17 Jan 2002, Accepted 10 Dec 2002, Published online: 12 May 2010
 

Abstract

We define Ballot-sequences for t-ary trees based on the ideas of Ballot-sequences of binary trees presented by Rotem. Later an efficient algorithm for the generation of t-ary trees with Ballot-sequences in B-order is presented. The algorithm generates each sequence in constant average time O(1), and the sequences are generated in lexicographical order. The ranking and unranking algorithms with O(tn) time complexity are also described.

Acknowledgments

The authors would like to thank the anonymous referee for making helpful suggestions.

Notes

*This research was supported by University of Tehran

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.