for initial i := array_liml(A); max_val := A[i]; min_val := A[i]; max_ind := i; min_ind := i; while i < array_limh(A) repeat i := old i + 1; max_val, max_ind := if A[i] > old max_val then A[i], i else old max_val, old i end if; min_val, min_ind := if A[i] < old min_val then A[i], i else old min_val, old i end if; returns value of max_val value of max_pos value of min_val value of min_ind end for
The Sisal Language Project has been approved as a Designated Unclassified Subject Area (DUSA) K19222, as of 07 August, 1991.
LLNL Disclaimer
UCRL-MI-122601