Word Jumble Algorithm

后端 未结 5 1308
执笔经年
执笔经年 2021-01-18 02:04

Given a word jumble (i.e. ofbaor), what would be an approach to unscramble the letters to create a real word (i.e. foobar)? I could see this having a couple of approaches, a

5条回答
  •  北恋
    北恋 (楼主)
    2021-01-18 02:07

    CodeProject has a couple of articles here and here. The second uses recursion. Wikipedia also outlines a couple of algorithms here. The Wikipedia article also mentions a program called Jumbo that uses a more heuristic approach that solves the problem like a human would. There seem to be a few approaches to the problem.

提交回复
热议问题