CytopiaTeam / Cytopia

:deciduous_tree::house_with_garden::office::evergreen_tree: A city building simulation game
https://www.cytopia.net
GNU General Public License v3.0
1.99k stars 106 forks source link

Implement a Patricia Trie data structure #318

Open ghost opened 5 years ago

ghost commented 5 years ago

A Patricia Trie is a data structure that is optimal for string autocompletion. Cytopia could greatly benefit from such a data structure. Notably:

Interface

For the Trie, we would like the following API:

Mograbi commented 4 years ago

I found an implementation here. https://www.geeksforgeeks.org/trie-insert-and-search/ what do you think about it ?? @Ercadio

ghost commented 4 years ago

This is low priority. Should be after v0.3

ghost commented 4 years ago

@Mograbi This implementation looks good. But it needs improvement and to follow the requirements listed above