Gray Codes With Constant Delay and Constant Auxiliary Space
Antoine Amarilli, Claire David, Nadime Francis, Victor Marsault, Mika\"el Monet, Yann Strozecki

TL;DR
This paper presents the first algorithms for enumerating all binary words with constant delay and auxiliary space, using novel models like tape and deque machines, and explores limitations in queue and stack models.
Contribution
Introduces new algorithms for Gray code enumeration with constant delay and space in tape and deque models, and proves limitations in restricted models.
Findings
Algorithms achieve constant delay and auxiliary space in tape and deque models.
Tape and deque machines can enumerate all binary words with constant delay.
Queue and stack machines cannot achieve constant auxiliary space for enumeration.
Abstract
We give the first two algorithms to enumerate all binary words of (like Gray codes) while ensuring that the delay and the auxiliary space is independent from , i.e., constant time for each word, and constant memory in addition to the bits storing the current word. Our algorithms are given in two new computational models: tape machines and deque machines. We also study more restricted models, queue machines and stack machines, and show that they cannot enumerate all binary words with constant auxiliary space, even with unrestricted delay. A tape machine is a Turing machine that stores the current binary word on a single working tape of length (which never increases), using no other tape. The machine has a single head and must edit its tape to reach all possible words of , and output them (in unit time, by entering special output states),…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Advanced Database Systems and Queries · Complexity and Algorithms in Graphs
