Skip to content

mitchellvitez/forest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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