Skip to content
Commits on May 8, 2012
  1. @eric
Commits on Mar 27, 2012
  1. Version bump to 1.1.2

    committed Mar 27, 2012
  2. RedBlackTree: eager rebalance after insert

    Change internal rebalance timing.  Do convert (b (r r)) -> (r (b b)) to
    make balance of tree be perfect after insert.  Before this commit, the
    above convert run at the next insert.
    
    It includes related 4 updates for the test.  2 tests for delete indicate
    that the balance of the tree is better than before.  Other 2 tests for
    insert indicate that the balance of the tree is better than before at
    the first insert, and the balance is the same as before at the second
    insert.
    committed Mar 27, 2012
  3. Make EmptyNode a subclass of Node

    To reduce the same method definitions for Node and EmptyNode.
    committed Mar 27, 2012
  4. Merge pull request #3 from eric/fix-values-for-empty-node

    Allow #values to be called on empty trees
    committed Mar 26, 2012
  5. @eric
Commits on Mar 23, 2012
  1. Remove RadixTree benchmark

    Remove extra dependency
    committed Mar 23, 2012
Commits on Mar 19, 2012
  1. Version bump to 1.1.1

    committed Mar 19, 2012
  2. Merge pull request #2 from eric/remove-to_s-on-keys

    Do not force keys to be strings
    committed Mar 19, 2012
  3. @eric

    Do not force keys to be strings

    Keys must be Comparable (defines the <=> method).
    eric committed Mar 19, 2012
Commits on Feb 5, 2012
  1. Cosmetic comment update.

    committed Feb 6, 2012
  2. Version bump to 1.1.0

    committed Feb 5, 2012
  3. Update benchmark scripts

    committed Feb 5, 2012
  4. Perf improvement for insert

    Do red pull-up check and rotation at a time.
    committed Feb 5, 2012
  5. Reduce method dispatch

    committed Feb 5, 2012
  6. Fix reversed name (rotation)

    committed Feb 5, 2012
  7. Red/black tree implementation

    committed Feb 5, 2012
Commits on Feb 4, 2012
  1. Internal method name change: 'insert' -> 'store'

    Follows name convention of tree data structure.
    committed Feb 4, 2012
  2. Replace LR and RL as combination of L and R

    With help from 'protected' of Ruby.
    committed Feb 4, 2012
  3. Cosmetic: typo fixed

    committed Feb 4, 2012
Commits on Jan 16, 2012
  1. Enable Travis CI

    committed Jan 16, 2012
  2. Make it work on 1.8

    Use OpenSSL::Random instead of Random#bytes
    committed Jan 16, 2012
Commits on Jan 13, 2012
  1. Version bump to 1.0.0

    committed Jan 13, 2012
  2. Add profiling script

    run this with ruby-prof
    committed Jan 13, 2012
  3. Add elements size benchmark

    committed Jan 13, 2012
  4. Fix Encoding test

    It's the only different behavior between AVLTree and RadixTree.
    RadixTree compares keys by char-to-char comparison but AVLTree just uses
    String#<=>
    committed Jan 13, 2012
  5. Add graphs for tree rotation

    committed Jan 13, 2012
  6. Cosmetic

    committed Jan 13, 2012
  7. Add benchmark comparing with Hash and RadixTree

    RadixTree is from https://github.com/nahi/radix_tree
    You can install it with 'gem install radix_tree'
    committed Jan 13, 2012
  8. Fix a bug for node delete

    It utilized delete_min for node delete always but the right branch of
    the deleted node can be EMPTY.  Use delete_min/delete_max properly.
    committed Jan 13, 2012
  9. Use 2 values comparison instead of Array.new#max

    Perf!
    committed Jan 13, 2012
Something went wrong with that request. Please try again.