| Inputs , , , , . |
| For each |
| (a) Let, , , be the vectors obtained from, , , , respectively, by deleting |
| the components corresponding to indexes such that . |
| (b) Calculate and from according to (3.6). |
| End |
| Eliminate the terms in the sequence giving rise to repeated terms in the |
| sequence . |
| For each |
| (a) Let be the submatrix of obtained by deleting the rows and columns for |
| which . |
| (b) Call KTEF(, , , , , ), which provides an interval [,]and |
| the coefficients (, , ) of the equation of an arc of parabola. |
| on error (KTEF has stoped in a degenerate case) discard the point. |
| End |
| (i) Define the functions () given by (4.3). |
| (ii) Let , where is the minimum of all . |
| For to |
| For to |
| (a) Let Roots be the set of real roots of (4.4). |
| (b) Append to Points any satisfying (4.5). |
| (c) Let Roots be the set of real roots of (4.6). |
| (d) Append to Points any satisfying . |
| Next . |
| Next . |
| (i) Order the vector Points and eliminate repeated entries. |
| (ii) Let for each . |
| (iii) Calculate the vector such that is the index where is attained. |
| (iv) Let , let . |
| For to the length of |
| If append to Good the index and append to Change |
| the value |
| Next . |
| (i) Append to Change the last point of Points. |
| (ii) Set , , ) (where is a short for ). |
| Outputs Change, . |