English

Representation of ordered trees with a given degree distribution

Data Structures and Algorithms 2018-07-03 v1

Abstract

The degree distribution of an ordered tree TT with nn nodes is n=(n0,,nn1)\vec{n} = (n_0,\ldots,n_{n-1}), where nin_i is the number of nodes in TT with ii children. Let N(n)\mathcal{N}(\vec{n}) be the number of trees with degree distribution n\vec{n}. We give a data structure that stores an ordered tree TT with nn nodes and degree distribution n\vec{n} using logN(n)+O(n/logtn)\log \mathcal{N}(\vec{n})+O(n/\log^t n) bits for every constant tt. The data structure answers tree queries in constant time. This improves the current data structures with lowest space for ordered trees: The structure of Jansson et al.\ [JCSS 2012] that uses logN(n)+O(nloglogn/logn)\log\mathcal{N}(\vec{n})+O(n\log\log n/\log n) bits, and the structure of Navarro and Sadakane [TALG 2014] that uses 2n+O(n/logtn)2n+O(n/\log^t n) bits for every constant tt.

Keywords

Cite

@article{arxiv.1807.00371,
  title  = {Representation of ordered trees with a given degree distribution},
  author = {Dekel Tsur},
  journal= {arXiv preprint arXiv:1807.00371},
  year   = {2018}
}
R2 v1 2026-06-23T02:47:26.102Z