haleyhousellc / arboriculture

A simple tree library written in TypeScript.
https://haleyhousellc.github.io/arboriculture
ISC License
2 stars 0 forks source link

Refactor self-balancing tree abstractions #4

Closed haleyga closed 6 years ago

haleyga commented 7 years ago

Currently, RedBlack trees and AVL trees (in progress) are derived directly from a the Binary Search Tree object. However, they share some functionality (for instance, basic rotations), and could likely benefit from being abstracted behind something like a 'BalancedTree' object.