Module Algorithms

  1. lib/algorithms.rb

The ‘Algorithms and Containers’ library is an effort to provide a set of commonly used algorithms and containers to Ruby programmers.

This is a Google Summer of Code 2008 project

Written by Kanwei Li, mentored by Austin Ziegler

To avoid typing Containers::xxx to initialize containers, include the Containers module.

require 'algorithms'
include Containers

tree =

instead of:

require 'algorithms'

tree =

Done so far:

Classes and Modules

Module Algorithms::Search
Module Algorithms::Sort