replace "for i in 1..suffix_array_len-1 do"
with "suffix_array.each_with_index do |s,i|"

it may faster depending what you want

-- 
Posted via http://www.ruby-forum.com/.