9.6. Imprecise Arithmetic Approach

9.6. Imprecise Arithmetic Approach

Up to now, we tried to solve or avoid the existing problems of robustness and degeneracy for a class of geometric algorithms that are designed and analyzed in the unrealistic model of the Real RAM. Now, we turn to a completely different approach. We consider algorithms that are designed and analyzed under the presence of imprecise predicates. This means that classic results of computational geometry, such as the computation of convex hulls or Delaunay triangulations, must be reconsidered. It seems that we have to reinvent computational geometry results completely. This is the main disadvantage of the given idea.

First, we need a general framework for the use of imprecise or approximative predicates. Then we will present a classical problem solved with approximative predicates; see Section 9.6.2.

Approximative algorithms with approximative predicates in computational geometry can be found, for example, in [Fortune 92a], [Fortune 89], [Guibas et al. 93], and [Fortune and Milenkovic 91].

9.6.1. Epsilon Arithmetic and Approximative Predicates

Epsilon arithmetic ( image from book - arithmetic) is defined in a very general sense: image from book -arithmetic is erroneous, but the errors have to be within a guaranteed error range depending on image from book . The formal definition does not specify the implementation of arithmetic operations. It is easy to see that floating-point arithmetic fulfills the definition of image from book - arithmetic.

Definition 9.38. ( - arithmetic.) image from book -arithmetic consists of at least the arithmetic operations image from book , image from book , image from book and image from book , within a definition range R . The following properties hold:

  • ˆ x, y ˆˆ R there is a < image from book such that ( x image from book y ) = ( x + y )(1 + ) for < image from book ;

  • Comparisons <, , = , , and > are evaluated exactly.

image from book -arithmetic guarantees a relative error smaller than image from book . For example, floatingpoint arithmetic guarantees a relative error smaller than the corresponding machine epsilon; see Section 9.3.1.

image from book - arithmetic evokes approximative predicates; the sign of the predicate cannot be guaranteed. The weak predicates are defined similar to formal robustness and formal degeneracy; see Definition 9.3 and Definition 9.31.

Definition 9.39. (Approximative predicate.) Let p be a predicate in image from book nd . That is, p is a mapping p : image from book nd B where B represents the Boolean space {TRUE, FALSE}. image from book is defined to be an approximative predicate iff

  • p ( x ) implies image from book ( x ), and

  • image from book ( x ) implies that there is an instance x near to x with p ( x ).

A geometric predicate usually comes along with a disjoint counterpart predicate. For example, the orientation test O2D( p 1 , p 2 , p 3 ) for three points p 1 , p 2 , and p 3 in 2D is positive (or TRUE) if and only if the test O2D( p 1 , p 3 , p 2 ) is negative (or FALSE). The two predicates coincidence only for three points on a line. The line l ( p 1 , p 2 ) passing through p 1 and p 2 separates the plane into two half-planes. Let image from book < image from book . If p 3 lies above l ( p 1 , p 2 ), O2D( p 1 , p 2 , p 3 ) is TRUE. If p 3 lies below l ( p 1 , p 2 ), O2D( p 1 , p 3 , p 2 ) is TRUE.

On the other hand, for two approximative predicates that interact in the sense indicated above, we will not be able to detect the line between them exactly. They will overlap for a bigger set of points. We illustrate this behavior in Figure 9.21. Assume that image from book ( x ) is TRUE for all x above the curve C p and image from book ( x ) is TRUE for all x below the curve C q , and the line between the predicates p and q runs between the two curves and cannot be detected exactly. An implementation of one of the two predicates should take care that for all points x within the uncertain area either image from book ( x ) = TRUE or image from book ( x ) = TRUE holds. Altogether, an approximative predicate has to be implemented for both predicates as follows .

image from book
Figure 9.21: Two interactive approximative predicates overlap within a region.

Definition 9.40. ( image from book - arithmetic test.) Let image from book and image from book be two approximative predicates. An image from book -arithmetic test for image from book and image from book is a Boolean program CodeP( x ) such that

  • CodeP( x ) = TRUE image from book ( x ),

  • CodeP( x ) = FALSE image from book ( x ).

Definition 9.40 means that the implementation of an approximative predicate takes care of its counterpart and always results in TRUE or FALSE. Note that some implementations make use of the third status UNCERTAIN, where the two approximative predicates really overlap and both predicates result in TRUE or FALSE, respectively.

In the next sections, we will present an example of an image from book - arithmetic test for approximative orientation test. An approximative incircle test predicate can be found in [Fortune 92a].

9.6.2. Computing the Convex Hull

We want to design an image from book -arithmetic test for the approximative orientation test predicate and introduce some notions from [Fortune 89].

For three points a , b , and c in the plane, let ˆ  ( a, b, c ) denote the range between image from book and image from book spanned counterclockwise from image from book to image from book ; see Figure 9.22. The measure



Geometric Data Structures for Computer Graphics2006
Geometric Data Structures for Computer Graphics2006
ISBN: N/A
EAN: N/A
Year: 2005
Pages: 69

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net