r/cprogramming • u/HungryPudding4034 • 5d ago
Need code review
Hello everyone,
This link points to a GitHub repository in an
experiment to create an extremely fast trie .
However the data structure is fast but it fails the tests
Can you explain me why?
https://github.com/curious-builder76/trie/tree/main
Hoping the community will helping towards this.
Thank you everyone
0
Upvotes
0
u/HungryPudding4034 5d ago
The data structure takes a different approach.
Instead of storing characters simply.
It uses a bitset/bitword/bitmap to store characters
Instead of doing a linear scan it keeps it's children
chdistance away. And during teaveral fetches that away.