Data structure behind T9 type of dictionary

前端 未结 6 1746
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 11:34

How does a T9 dictionary work? What is the data structure behind it. If we type \'4663\' we get \'good\' when we press down button we get \'gone\' then \'home\' etc...

6条回答
  •  余生分开走
    2020-12-07 12:00

    I guess, as those before that T9 uses a trie, where the links are represented by a bitmap (1 bit per letter). This is called a succinct data structure, as Steve Hanov explains very nicely:

    http://stevehanov.ca/blog/index.php?id=120

提交回复
热议问题