Check the following web page:

http://www.wikipedia.org/wiki/Binary_search

Alan Walkington

"martin tran" <gokuzboy / hotmail.com> wrote in message
news:F50XzQt1aP5N1lf8e460001a43d / hotmail.com...
> Hi, I am having problem converting the following algorithm (shown below)
> into ruby code.
>
> :find j such that B[j] <= A[length/2] B[j+1] using binary search
>
> Can anyone help me please,
>
> Thanks,
> Tim
>
>
>
>
> _________________________________________________________________
> Broadband? Dial-up? Get reliable MSN Internet Access.
> http://resourcecenter.msn.com/access/plans/default.asp
>
>