English

Optimal Quasi-Gray Codes: The Alphabet Matters

Information Theory 2018-07-18 v2 Computational Complexity Data Structures and Algorithms math.IT

Abstract

A quasi-Gray code of dimension nn and length \ell over an alphabet Σ\Sigma is a sequence of distinct words w1,w2,,ww_1,w_2,\dots,w_\ell from Σn\Sigma^n such that any two consecutive words differ in at most cc coordinates, for some fixed constant c>0c>0. In this paper we are interested in the read and write complexity of quasi-Gray codes in the bit-probe model, where we measure the number of symbols read and written in order to transform any word wiw_i into its successor wi+1w_{i+1}. We present construction of quasi-Gray codes of dimension nn and length 3n3^n over the ternary alphabet {0,1,2}\{0,1,2\} with worst-case read complexity O(logn)O(\log n) and write complexity 22. This generalizes to arbitrary odd-size alphabets. For the binary alphabet, we present quasi-Gray codes of dimension nn and length at least 2n20n2^n - 20n with worst-case read complexity 6+logn6+\log n and write complexity 22. This complements a recent result by Raskin [Raskin '17] who shows that any quasi-Gray code over binary alphabet of length 2n2^n has read complexity Ω(n)\Omega(n). Our results significantly improve on previously known constructions and for the odd-size alphabets we break the Ω(n)\Omega(n) worst-case barrier for space-optimal (non-redundant) quasi-Gray codes with constant number of writes. We obtain our results via a novel application of algebraic tools together with the principles of catalytic computation [Buhrman et al. '14, Ben-Or and Cleve '92, Barrington '89, Coppersmith and Grossman '75].

Keywords

Cite

@article{arxiv.1712.01834,
  title  = {Optimal Quasi-Gray Codes: The Alphabet Matters},
  author = {Diptarka Chakraborty and Debarati Das and Michal Koucký and Nitin Saurabh},
  journal= {arXiv preprint arXiv:1712.01834},
  year   = {2018}
}
R2 v1 2026-06-22T23:07:50.543Z