Skip to content

mitchellvitez/forest

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

Forest

Trees, and data structures based on trees

Usage

Run stack test

What's Included

These kinds of trees (and their derivative data structures) are in this repo:

  • Binary search tree
  • Heap-ordered tree
    • Leftist min heap
  • Binomial tree
    • Binomial heap
  • Red-black tree
    • Map
    • Set
  • Splay tree
    • Splay heap
  • Heap-ordered multitree
    • Pairing heap
  • Rose tree (with Traversable instance)
  • 2-3 B-trees
  • Ternary tree
  • Exponential trees (with dimensionality constraints enforced by types)

Anything else?

This work is inspired by Okasaki's Purely Functional Data Structures. I've cleaned up some of the implementations here based on that reference, but I tried to come up with my own implementations first before consulting it. Any implementation not found in that book is my own.

About

Trees, and data structures based on trees

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published