Skip to content

0b01/aatree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aatree

It turns out red-black tree is not as fast as AA tree for immutable data. Due to its balancing/skewing more nodes need to be copied

Unlike C or python where you can dynamically link/unlink nodes from parent, recursively copying each node is expensive. Hence the performance boost of AA tree over Red Black tree.

Installation

This package can be installed by adding aatree to your list of dependencies in mix.exs:

def deps do
  [{:aatree, "~> 0.1.0"}]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/aatree.

About

AA Tree in elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages