On a combinatorial generation problem of Knuth

07/14/2020
by   Arturo Merino, et al.
0

The well-known middle levels conjecture asserts that for every integer n≥ 1, all binary strings of length 2(n+1) with exactly n+1 many 0s and 1s can be ordered cyclically so that any two consecutive strings differ in swapping the first bit with a complementary bit at some later position. In his book `The Art of Computer Programming Vol. 4A' Knuth raised a stronger form of this conjecture (Problem 56 in Section 2.1.3, Chapter 7), which requires that the sequence of positions with which the first bit is swapped in each step of such an ordering has 2n+1 blocks of the same length, and each block is obtained by adding s=1 (modulo 2n+1) to the previous block. In this work, we prove Knuth's conjecture in a more general form, allowing for arbitrary shifts s≥ 1 that are coprime to 2n+1. We also present an algorithm to compute this ordering, generating each new bitstring in 𝒪(n) time, using 𝒪(n) memory in total.

READ FULL TEXT

page 4

page 5

research
10/23/2017

A short proof of the middle levels theorem

Consider the graph that has as vertices all bitstrings of length 2n+1 wi...
research
09/23/2018

Collapsing Superstring Conjecture

In the Shortest Common Superstring (SCS) problem, one is given a collect...
research
04/01/2021

A note on Barker sequences of even length

A Barker sequence is a binary sequence for which all nontrivial aperiodi...
research
10/03/2017

Normality of the Ehrenfeucht-Mycielski Sequence

We study the binary Ehrenfeucht Mycielski sequence seeking a balance bet...
research
04/18/2022

Practical KMP/BM Style Pattern-Matching on Indeterminate Strings

In this paper we describe two simple, fast, space-efficient algorithms f...
research
12/17/2020

On entropies of block-gluing subshifts

A subshift X is called c-block gluing if for any integer n≥ c and any tw...
research
03/25/2020

From Information Theory Puzzles in Deletion Channels to Deniability in Quantum Cryptography

From the output produced by a memoryless deletion channel with a uniform...

Please sign up or login with your details

Forgot password? Click here to reset