Skip to content

An Objective-C implementation of red-black trees.

License

Notifications You must be signed in to change notification settings

ninjudd/RedBlack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RedBlack Readme

This is an implementation of red-black trees using Objective-C and plain-old C. The primary class of interest is PGRedBlackTree, which is a pure Objective-C class that does not support ARC. A lot of the internals are implemented using the PGRedBlackTreeNode abstract data type. I used C primarily for tail recursion, inline functions, and a little memory efficiency. I likely could have used Objective-C and achieved similar performance, but its dynamism is wasted on something like this, so we may as well drop into C.

Most algorithms used were taken from CLRS.

All code is licensed under the MIT license. Do with it as you will.

About

An Objective-C implementation of red-black trees.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published