fully polynomial approximation scheme