Skip to content

jpholanda/radixtree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package Version Go Version Code Coverage

radixtree

Radix tree implementation in Go.

Exports a Set and a Map structures using a radix tree as the underlying structure.

Supported operations are:

  • Add/Remove: inserts/deletes words into/from the tree. Linear on the size of the word.
  • Contains: checks whether the tree has a given word. Linear on the size of the word.
  • ForEach: executes a callback for each word in the tree. Linear on the size of the tree.
  • ForEachWithPrefix: executes a callback for each work in the tree with the given prefix. Linear on the size of the prefix and the number of words in the tree with that prefix.

About

Radix tree implementation in Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages