#trie #prefix-tree #digital-tree #retrieval-tree

plain_trie

Classic trie implementation capable of mapping any T to string composed of English alphabet letters

8 stable releases

new 1.1.0 Nov 17, 2024
1.0.6 Oct 21, 2024
1.0.4 Aug 15, 2024
1.0.2 Jul 22, 2024
1.0.1 Jul 21, 2024

#1373 in Data structures

Download history 182/week @ 2024-08-12 17/week @ 2024-09-16 13/week @ 2024-09-23 4/week @ 2024-09-30 302/week @ 2024-10-21 36/week @ 2024-11-11

338 downloads per month

MIT license

26KB
586 lines

Plain Trie

  • Plain trie is classic retrieval tree implementation with fixed size alphabet per node.
  • Support for English alphabet only.
  • Capital letters are lowercased.
  • All methods with classic trie ACC (asymptotic computational complexity).
let key = Key::new("touchstone").unwrap();

let mut trie = Trie::new();
trie.insert(3usize, &key);

assert!(trie.member(&key).is_some());

lib.rs:

Classic retrieval tree implementation with fixed size alphabet per node.

No runtime deps