Way to store a large dictionary with low memory footprint + fast lookups (on Android)

前端 未结 7 981
醉话见心
醉话见心 2021-01-30 23:17

I\'m developing an android word game app that needs a large (~250,000 word dictionary) available. I need:

  • reasonably fast look ups e.g. constant time preferable, n
7条回答
  •  余生分开走
    2021-01-30 23:54

    A very efficient way to store a directory is a Directed Acyclic Word Graph (DAWG).

    Here are some links:

    • Directed Acyclic Word Graph or DAWG description with sourcecode
    • Construction of the CDAWG for a Trie
    • Implementation of directed acyclic word graph

提交回复
热议问题