How to find a word in large word list (vocabulary) with descent memory consumption and look-up time?

后端 未结 2 401
小蘑菇
小蘑菇 2021-02-06 02:03

Problem

[Here follows a description of what the app should do under which constrains]

I want a data-structure that searches if a string e

2条回答
  •  情话喂你
    2021-02-06 02:28

    This sounds like an ideal use for a bloom filter. If you're willing to allow the risk of something being falsely considered a word, you can condense your wordlist into an amount of memory as small or as large as you're willing to make it.

提交回复
热议问题