this post was submitted on 22 Apr 2024
5 points (72.7% liked)
Mathematics
509 readers
1 users here now
A community for discussing mathematics and developments in mathematics.
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
@oblomov @mathematics @[email protected] @[email protected] No solution, but the problem is related to de Bruijn sequences (https://en.wikipedia.org/wiki/De_Bruijn_sequence), for which there exists a lot of literature.
@mrdk @mathematics @[email protected] @[email protected]
oh, interesting. It's definitely related, although we allow different substrings to start at the same place, and this has a huge impact on the lengths (also it's not cyclic in our case, but that probably makes things worse).
@mrdk @mathematics @[email protected] @[email protected] also this might explain why @mau saw some relation to Gray codes in the binary case.
@oblomov well, a Gray code codes all n-bit sequences from 000...0 to 111...1. It's a bit overkill (we don't need the sequence with all 0) but probably the overhead is just 1.
Cc: @mrdk @mathematics @[email protected] @[email protected]