We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
PeriodicalsComputer Science & Information Technology

MIRROR (LEFT-RECURSIVE) GRAY CODE

Checking your access to this record.

Abstract & Overview

Here we consider a version of the Binary Reflected Gray Code (BRGC, or Gray code for short), called the mirror Gray code – in parallel and in comparison to the Gray code. We discuss some sources where the two codes are not distinguished and the reasons why. We present our arguments for treating the two codes as distinct, starting with a definition of the mirror Gray code and showing its main properties. Among the most important of these is the relationship between the two codes – the codewords of the mirror Gray code are “left-right mirror images” of those in the Gray code and vice versa. Other arguments we show are the differences in the algorithms for generating the codewords. We also present another approach that involves representing the codewords by integers (their serial numbers), generating and examining the two codes by using their sequences of serial numbers. For this purpose, we use the bijections that relate the pairs of combinatorial objects: binary vectors in a certain order and the corresponding integer sequences and subsets. In this way, we get different algorithms, sequences, and functions for successor and predecessor, for ranking and unranking at the mirror Gray code. We believe that this article provides at least one more perspective, as well as expands and enriches the knowledge of the Gray code.

Cite this record

Valentin Bakoev (2023). MIRROR (LEFT-RECURSIVE) GRAY CODE. Mathematics and Informatics, 66(6), 559–578. https://doi.org/10.53656/math2023-6-1-mir

Copy in another style

Bakoev, V. (2023). MIRROR (LEFT-RECURSIVE) GRAY CODE. Mathematics and Informatics, 66(6), 559–578. https://doi.org/10.53656/math2023-6-1-mir
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.