Reducing the size of a Trie of all english words
问题 I am implementing an autocomplete feature using a Trie. Using the words list in this link, I am inserting every word into my Trie. I want to reduce the memory used by the Trie without using something too fancy like a directed acyclic word graph. The Trie is dictionary based to allow for it to be stored in a JSON file. This is my current script: import json #Make a trie of english words # The words file can be found at https://github.com/dwyl/english-words with open('words_dictionary.json', 'r