Computing Max and Min Together

Finding the minimum is similar to finding the max.

If we want the midpoint (or the range), we need both the min and max together.

We can do this the obvious way, or a clever one that uses fewer comparisons.

\epsfig {file=figs07/minmax.ps,height=3.5in}


next up previous
Next: Algorithm Up: EXTREMALS Previous: Computing the Max