Skip to content

alex-gulyas/rust_sequence_trie

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

This is a generic Trie implementation that uses a hash map to store child nodes. The Trie is keyed by lists of type K, which can be anything implementing PartialEq, Eq, Hash and Clone. If your keys are explicit lists and you want to be able to store a different value for each fragment of a key, this might be the data structure for you!

I'm still undecided about what to call this data-structure, as it's kind of half-way between an unbounded tree and a trie... Suggestions welcome.

For more information, see the documentation.

Usage

Add sequence_trie to your Cargo.toml.

[dependencies]
sequence_trie = "*"

See Also

Since writing this sequence trie I've created a radix trie which uses node compression. It has much better performance and has reached feature-parity.

https://github.com/michaelsproul/rust_radix_trie

License

MIT License. Copyright (c) Michael Sproul 2015.

About

Trie-like data-structure for storing sequences of values.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 96.1%
  • Shell 2.6%
  • Makefile 1.3%