HomePhorge

(#9617) Add a red-black tree map
f180f9be105aUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#9617) Add a red-black tree map

This class is from Kanwei Li's algorithms gem, found at:

https://github.com/kanwei/algorithms

The only modifications are:

  • renamed the class and nested it under the Puppet module
  • removed a usage of Stack (from the algorithms gem) and replaced it with an Array
  • added a check for has_key? before deleting
  • added a #to_hash method, to aid in testing

Paired-With: Josh Cooper <josh@puppetlabs.com>

Details

Provenance
Nick Lewis <nick@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUc62e949cf701: (#9617) Keep track of blockers for resources when traversing
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPUf180f9be105a: (#9617) Add a red-black tree map (authored by Nick Lewis <nick@puppetlabs.com>).Nov 11 2011, 11:26 PM