Persisting a trie to a file - C
- by Appu
I have a trie which I am using to do some string processing. I have a simple compiler which generates trie from some data. Once generated, my trie won't change at run time.
I am looking for an approach where I can persist the trie in a file and load it effectively. I have looked at sqllite to understand how they are persisting b-treebut their file format looks bit advanced and I may not need all of those.
It'd be helpful if someone can provide some ideas to persist and read the trie. I am programming using C.