please help identify this mathematical or encryption function?
I recently did an aptitude test and there was a question on it to identify the Java function.  I didn't know the answer and I've been searching around for help to learn more about this sort of thing in case in comes up again in the future.

The unnamed function was long and complex and highly recursive.  It accepted arguments like:

    public void method(int a[], int xx, int yy) { ...

It did things like ..

    a[(xx+yy)/2] = xx;

... and ...

    if (a[(xx+yy)/2] > j {
      method(a, xx, yy);
    }

... and much more complex than that.

I know that's not much to go on, but can someone point me in the right direction?  What kind of mathematical or encryption functions would look like this?  Where should I go or what should I search for?

Any help is greatly appreciated!

Rob



please help identify this mathematical or encryption function?
===

I recently did an aptitude test and there was a question on it to identify the Java function.  I didn't know the answer and I've been searching around for help to learn more about this sort of thing in case in comes up again in the future.

The unnamed function was long and complex and highly recursive.  It accepted arguments like:

    public void method(int a[], int xx, int yy) { ...

It did things like ..

    a[(xx+yy)/2] = xx;

... and ...

    if (a[(xx+yy)/2] > j {
      method(a, xx, yy);
    }

... and much more complex than that.

I know that's not much to go on, but can someone point me in the right direction?  What kind of mathematical or encryption functions would look like this?  Where should I go or what should I search for?

Any help is greatly appreciated!

Rob


