A compact encoding of unordered binary trees

  • Authors:
  • Kozue Iwata;Shiro Ishiwata;Shin-ichi Nakano

  • Affiliations:
  • Gunma University, Kiryu, Japan;Gunma University, Kiryu, Japan;Gunma University, Kiryu, Japan

  • Venue:
  • TAMC'11 Proceedings of the 8th annual conference on Theory and applications of models of computation
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

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.