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

前端 未结 7 967
醉话见心
醉话见心 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:45

    The devices that I worked basically worked from a binary compressed file, with a topology that resembled the structure of a binary tree. At the leafs, you would have the Huffmann compressed text. Finding a node would involve having to skip to various locations of the file, and then only load the portion of the data really needed.

提交回复
热议问题