Feedback Try to estimate cost of ratintvl operations and also determination of precision 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News Project step #4, deadline Monday 25 November (Mike O'Donnell)
Re: Question Dependency on rational_power->xreal, precision vs. multiplication (Ivan Beschastnikh)
Date: 2002, Nov 24
From: Mike O'Donnell <odonnell@cs.uchicago.edu>

whether we should be measuring the multiplication mechanism or the precision mechanism. Since it's possible to separate the two
You should identify as many interesting determinants of the total computing time as you can, and provide as much insight as you can into their impact on the time efficiency. Both of the issues that you identify are important ones to study for the precfunc implementation. I would express them as:
  • time to determine the right precision, and
  • time to calculate an interval to the appropriate precision.
The two may interact, since the determination of the right precision is likely to involve one or more approximations to the desired xreal at lower precision. In some cases, it is not clear how to separate them. For example, if you use binary search, they are intimately bound together. The most interesting analysis may depend on the particular operations that you are timing.

Here's an analysis that will be interesting in many cases:

  1. Find the number of different rational intervals computed, and the complexities of those intervals.
  2. Find the time cost of the operations on the rational intervals.
  3. If possible, estimate the time cost of other computational steps that are not a part of the ratintvl
In all cases good estimates can be more useful than precise numbers, if they capture the essential structure of the parameters that determine time efficiency.

Number 1 requires either some careful analysis by hand, or some extra output (sometimes called "instrumentation") in key procedures. But you should time the versions of the procedures without the instrumentation, and only use the instrumentation to discover structural qualities of the computation. Number 2 is probably best done by timing some ratintvl operations by themselves. The time required for most ratintvl operations is probably a rather simple function of the number of computer words required for the numerators and the denominators. Number 3 may or may not be feasible, depending on how big these extra steps are, and how accurately you can estimate number 2.




Mike O'D.


to: "Try to estimate cost of ratintvl operations and also determination of precision"