Feedback Iteration is inefficient, watch out for even powers 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News Project Step #2, deadline Wednesday 13 November (Mike O'Donnell)
Re: Question Iteration for precision (Nathan Krapf)
Date: 2002, Nov 13
From: Mike O'Donnell <odonnell@cs.uchicago.edu>

It's not too hard to write a general procedure for all operations that are monotonic in all arguments (addition, subtraction, multiplication, division, and odd powers) that just reduces the widths of the approximations to the arguments in some standard way until they are sufficiently small. You have to take all four combinations of endpoints for the binary operations. Even powers require a different approach, since they are well defined at 0 but switch from decreasing to increasing.

The most interesting thing about the different implementations of xreals is how the structure of the representation affects the efficiency of operations. The main determinant of efficiency for many operations in the precfunc representation is the number of tries to get the right precision. Washing that issue away kills a substantial amount of the interest. It might be a nice way to make sure you have a basic grasp of the problem, but you should try to keep the number of tries low once you get the idea.

It's real easy to compute the required precision of arguments for addition and subtraction. The iterative approach is much less efficient. For powers, for multiplication, and for division once you've bounded the divisor away from 0, I have a pretty good hunch that you can do it in two steps. You definitely must iterate the precision of a divisor until you can determine whether it is positive or negative (computing infinitely if it is exactly 0).




Mike O'D.


Messages

1. Disagree Iteration is simpler than I indicated, but still inefficient by Mike O'Donnell, 2002, Nov 14

to: "Iteration is inefficient, watch out for even powers"