The Haruhi problem

265 viewsMathematicsOther

The Haruhi problem

In: Mathematics

3 Answers

Anonymous 0 Comments

what is the shortest string that contains all permutations of n objects? so suppose n is 3, the possible permutations are
abc, acb, bac, bca,cab,cba so a string with all permutations would be abcacbbacbcacabbca, but thats not the shortest, abcabacba also contains all, but is much shorter (the shortest I belive).

the problem is to find a general solution that gives the min for any number of letters

You are viewing 1 out of 3 answers, click here to view all answers.