ABSTRACT

The previous two chapters introduced important ideas about algorithms and how they can be implemented in a programming language like Ruby. The algorithms presented in these chapters-the Sieve of Eratosthenes, linear search, and insertion sort-all used a very straightforward approach to solving their respective problems. At the heart of the algorithm is a simple operation, such as dividing one number by another or comparing two objects, and the problem was solved by repeating these operations until the the final result was produced.