ON A COMBINATORIAL GENERATION PROBLEM OF KNUTH

Merino, Arturo; Micka, Ondrej; Mutze, Torsten

Abstract

The well-known middle levels conjecture asserts that for every integer n \geq 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 [Knu11] Knuth raised a stronger form of this conjecture (Problem 56 in section 7.2.1.3), 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 \geq 1 that are coprime to 2n + 1. We also present an algorithm to compute this ordering, generating each new bitstring in 0(n) time, using 0(n) memory in total.

Más información

Título según WOS: ID WOS:000797465600002 Not found in local WOS DB
Título de la Revista: SIAM JOURNAL ON COMPUTING
Volumen: 51
Número: 3
Editorial: SIAM PUBLICATIONS
Fecha de publicación: 2022
Página de inicio: 379
Página final: 423
DOI:

10.1137/20M1377394

Notas: ISI