Efficient word scramble algorithm

前端 未结 4 1683
情歌与酒
情歌与酒 2020-12-30 06:13

I\'m looking for an efficient algorithm for scrambling a set of letters into a permutation containing the maximum number of words.

For example, say I am given the li

4条回答
  •  一生所求
    2020-12-30 06:49

    It might be useful to check how others solved this: http://sourceforge.net/search/?type_of_search=soft&words=anagram

    On this page you can generate anagrams online. I've played around with it for a while and it's great fun. It doesn't explain in detail how it does its job, but the parameters give some insight. http://wordsmith.org/anagram/advanced.html

提交回复
热议问题