Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Mar 28, 2012
  1. @nahi

    Update benchmark script

    nahi authored
  2. @nahi

    Adopt Left leaning RBTree

    nahi authored
    I was unaware that LL RBTree is faster in addition to it's simpler.  See
    more detail at http://www.cs.princeton.edu/~rs/talks/LLRB/LLRB.pdf
    Trees are rebalanced in 'left leaning' manner after insert so you don't
    see '-' as results of dump_sexp (See updated test expectations.)
    
    Thanks Gaku Nakamura-san for letting me know this by implementing Scala
    version of RBTreeMap!
Commits on Mar 27, 2012
  1. @nahi

    Update benchmark script

    nahi authored
    Show elapsed time of the last execution.
  2. @nahi
  3. @nahi
  4. @nahi
  5. @nahi

    Make :color=, :right= and :left= be public

    nahi authored
    Who can understand 'protected methods' of Ruby in 5 minutes? :)
  6. @nahi

    Make EmptyTree as a subclass of RBTree

    nahi authored
    Reduce method definition duplication.  It improves the performance in
    addition to simplify the code for explanation.
  7. @nahi

    Do loop for retrieval

    nahi authored
    No need to do recursive call.  Perf becomes slightly better.
  8. @nahi

    Make rebalance code simpler

    nahi authored
    For perf and readability.  Introduced RBTree#need_rebalance? and removed
    unnecesarry conditions to be checked for rebalance after insert.
Commits on Mar 26, 2012
  1. @nahi

    Add benchmark script

    nahi authored
Commits on Mar 25, 2012
  1. @nahi
Commits on Mar 23, 2012
  1. @nahi

    Test update for taking coverage

    nahi authored
  2. @nahi

    Remove unused methods (delete, etc.)

    nahi authored
    Not needed for this benchmark.  Use avl_tree instead for actual
    Red-black tree implementation.
  3. @nahi

    Revert the change to height definition

    nahi authored
    Also, remove height() health check from regulation.
Commits on Mar 19, 2012
  1. @nahi

    Merge RBTreeHash into RBTreeMap

    nahi authored
    extract required impl only
  2. @nahi

    Make put()'s return value undefined

    nahi authored
    As the result of discussion in ML.  No need to care for benchmarking.
    Also fixed the bug in height definition.  Height of empty list is 1, not
    0.
Commits on Mar 16, 2012
  1. @nahi

    Initial version RBTreeHash in avl_tree gem

    nahi authored
    TODO
     - optimize
     - make more easier to read
  2. @nahi

    Add regulation document

    nahi authored
Something went wrong with that request. Please try again.