Good algorithm and data structure for looking up words with missing letters?

前端 未结 20 1945
不思量自难忘°
不思量自难忘° 2020-12-07 07:12

so I need to write an efficient algorithm for looking up words with missing letters in a dictionary and I want the set of possible words.

For example, if I have th??

20条回答
  •  忘掉有多难
    2020-12-07 07:36

    If 80-90% accuracy is acceptable, you could manage with Peter Norvig's spell checker. The implementation is small and elegant.

提交回复
热议问题