Succinct Representation of Balanced Parentheses and Static Trees
SIAM Journal on Computing
Efficient generation of plane trees
Information Processing Letters
Succinct ordinal trees with level-ancestor queries
ACM Transactions on Algorithms (TALG)
Space-efficient static trees and graphs
SFCS '89 Proceedings of the 30th Annual Symposium on Foundations of Computer Science
Handbook of Discrete and Combinatorial Mathematics, Second Edition
Handbook of Discrete and Combinatorial Mathematics, Second Edition
Hi-index | 0.00 |
A naive encoding of ordered binary trees with n vertices needs 2n bits for each tree, and it is asymptotically optimal. In this paper we give a new simple encoding of unordered binary trees. The encoding needs at most 4 + 1.4n bits for each tree. Our encoding and decoding algorithms are simple and run in O(n) time.