Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Should not the de Bruijn sequence work somehow for this problem?

https://en.m.wikipedia.org/wiki/De_Bruijn_sequence



That would give you some string that contains all the permutations, but definitely not the shortest such string.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: