Abstract

The piecewise algebraic curve, as the set of zeros of a bivariate spline function, is a generalization of the classical algebraic curve. In this paper, an algorithm is presented to compute the real solutions of two piecewise algebraic curves. It is primarily based on the Krawczyk-Moore iterative algorithm and good initial iterative interval searching algorithm. The proposed algorithm is relatively easy to implement.

1. Introduction

Let be a connected region in . Using a finite number of irreducible algebraic curves in , we divide the region into several simply connected regions which are called partition cells. Denote by the partition of the region , which is the union of all partition cells .

Denote by the collection of piecewise polynomials of degree with respect to partition as follows: where denotes the set of bivariate polynomials with total degree .

For integer , we say is a bivariate spline space with smoothness and degree of real coefficients.

For a , the zero set is called a real piecewise algebraic curve, denoted by . Obviously, the piecewise algebraic curve is a generalization of the classic algebraic curve. However, it is very difficult to study piecewise algebraic curve not only because of the complexity of the partition but also because of the possibility of .

The piecewise algebraic curve is originally introduced by Wang in the study of multivariate spline interpolation. He pointed out that the given interpolation knots are properly posed if and only if they do not lie in a nonzero piecewise algebraic curve [1]. In recent years, Wang and his research group have done significant work on piecewise algebraic curves (see [18]). For example, Bēzout’s theorem [2, 4], Noether-type theorem [5, 7], Cayley-Bacharach theorem [6], and Riemann-Roch-type theorem [7] of piecewise algebraic curves were established. Besides, piecewise algebraic curve also relates to the remarkable Four-Color conjecture [4]. In fact, the Four-Color conjecture holds if and only if there exist three linear piecewise algebraic curves, and the union of these linear piecewise algebraic curves equals the union of all central lines of all triangles in arbitrary triangulation.

The piecewise algebraic curve is a new and important topic in computer-aided geometry design and computational geometry and has many applications in various fields. It is necessary to study the related problems on piecewise algebraic curves. However, the above-mentioned Bēzout theorem gives a theoretic upper bound for the number of the intersection points of piecewise algebraic curves. Thus, it is important to compute or isolate the real zeros of the given piecewise algebraic curve (piecewise algebraic variety). In 2008, Wang and Wu [9] presented an algorithm for isolating the real zeros for univariate splines based on Descartes’ rule of signs. Later, Wang and Zhang [10] discussed the computation problem of the piecewise algebraic variety based on the interval iterative algorithm by introducing the concept of -deviation solutions. Very recently, Zhang and Wang [11] discussed the real roots isolation of the piecewise algebraic variety on polyhedron partition. Lang and Wang [12] presented an intersection points algorithm for piecewise algebraic curves based on Groebner bases. However, there is a common defect of these algorithms that we do not know whether there exists intersection points for two given piecewise algebraic curves on cells. It will cause a huge waste of computation.

In this paper, we give the algorithm for isolating the real solutions of two piecewise algebraic curves which is primarily based on Krawczyk-Moore interval iterative algorithm and good initial iterative interval searching algorithm. The proposed method can reduce the computational cost greatly compared to the existing methods [11, 12]. More importantly, the proposed algorithm is easy to implement.

The rest of this paper is organized as follows. In Section 2, several concepts and results on interval iterative algorithm are recalled. In Section 3, the good initial iterative interval searching algorithm is given, which is the key of this paper. In Section 4, the main algorithm for isolating the real solutions of two piecewise algebraic curves is outlined. An illustrate example is provided in Section 5 and conclusion is drawn in Section 6.

2. Interval Iterative Algorithm

An interval iterative algorithm for nonlinear systems has been introduced by Moore in [13], developed and modified in papers [1416]. Several basic concepts and results about interval arithmetic and interval iterative algorithm are reviewed.

Definition 2.1. For an interval , the width, the midpoint, the absolute value and the sign of are defined, respectively, as and is −1 if ; 1 if and 0 otherwise.

Definition 2.2. Denoted by is the set of all intervals. For , and , one defines

Definition 2.3. For an interval matrix where each is an interval, then the midpoint, the width, and the norm of are defined, respectively, as

Definition 2.4. Let be an arithmetic expression of a polynomial in . One replaces all operands of an intervals and replace all operations of as interval operations and the result is denote by . Then, is called an interval evaluation.

Now, we recall the Moore form of Krawczyk algorithm and its basic results.

Let be a system of nonlinear equations in variables. Moore’s interval Newton algorithm is defined by where is an interval matrix containing the inversion of interval matrix and is the monotonic interval evaluation of .

Krawczyk proposed improved version of interval Newton’s method which does not require the inversion of interval matrix. The Krawczyk algorithm has the form where is chosen from the region , and is an arbitrary nonsingular matrix.

In particular, if and are chosen to be and , respectively, then the Moore form of Krawczyk algorithm becomes The Moore form of Krawczyk algorithm has the following three basic properties.(1)If is a zero of , then .(2)If , then does not have zeros on .(3)If , then has zeros on .

Thus, Krawczyk-Moore interval iterative algorithm is

For the existence of solutions to nonlinear equations, Moore proved the following results.

Theorem 2.5 (see [14]). If the two conditions are satisfied simultaneously, then there exists a unique solution of in and the sequence converges at least linearly to .

In fact, Moore further proved that the second condition was not essential with respect to this algorithm. Hence, this theorem still holds after deleting it [15]. Hence, we introduce the following definition in order to facilitate the later use.

Definition 2.6. If , then is called a good initial iterative interval of .

It is difficult to find the good initial iterative interval and we often can obtain after a large number of iterations.

3. Good Initial Iterative Interval Searching Algorithm

An important problem in the Krawczyk algorithm is how to select the initial interval satisfying the unique restriction . It is generally both and cannot be satisfied after large amount of iterations if is chosen arbitrary. That is to say, is occurred even when does not have zeros on and the algorithm is frustrating in this case. If we can determine that has real zeros in the prescribed domain and find all the good initial intervals, then the computational cost of interval iterative algorithm will be reduced greatly.

In order to determine whether there exist real solutions of algebraic curves and in the given region , we firstly introduce the method of rotation degree of vector field.

The rotation degree of the closed curve on the vector field , denoted by , is equal to where the given region is circled by a closed curve .

We present the main result on the rotation degree of vector field.

Theorem 3.1. If there are no intersection points of algebraic curves and in the domain circled by closed curve , then the rotation degree of the closed curve on the vector field is equal to zero. Conversely, if the rotation degree of the closed curve on the vector field is not equal to zero, then and have intersection points in the domain .

Proof. Equation (3.1) can be written as where, It can be easily checked that
Thus, if any point on satisfies , then it is from the Green formula that we have
(1)This condition is equivalent to that and do not have intersection points . The proof of the conversion is obvious.

Remark 3.2. It is pointed out that the rotation degree of the closed curve on the vector field can be computed conveniently when . In this case, the simplified form of rotation degree is where the rotation degree of the closed curve is measured in the counterclockwise direction for positive direction. We denote by the rotation degree on the vector field whenever this does not cause any confusion.

Now, the good initial iterative interval searching algorithm for two algebraic curves which is outlined as follows.

Algorithm 3.3. Good initial iterative interval searching algorithm.
Input Two algebraic curves and on an arbitrary region .
Output The set of all good initial iterative intervals of .

Step 1. Set and let be the minimal rectangle region containing .

Step 2. If , then stop. Otherwise, compute . If , then has no real solutions and stop; if and , then is a good initial iterative interval and ; otherwise, is divided into four smaller rectangles at the midpoints, denoted by and go to Step 3.

Step 3. Set and go to Step 2.

The number of real solutions of is finite, which guarantees the algorithm will terminate after finite steps. Without loss of generality, we illustrate it with a simple example.

Example 3.4. Let and suppose
Set and compute . Meanwhile, we have . Since , then no conclusion can be drawn and is divided into four smaller rectangles at the midpoints, denoted by (see Figure 1).
Then we have and . Meanwhile, we compute . Hence, is a good initial iterative interval because . Furthermore, the real solution of on is only after three iteration steps with .
However, if we use the Krawczyk-Moore algorithm directly with initial iterative interval , then we have after five iteration steps. Thus, we can only conclude that has one real solution on and we do not know whether there exists real solutions on other than .

4. Main Algorithm

Given two piecewise algebraic curves which are defined by two bivariate splines and is assumed to be zero-dimensional, that is, it consists of only a finite number of points. Here, all the cells are assumed to be in “general position,” which means none of the zeros lie on their boundary. The problem we are addressing is to isolate the real zeros of .

It is well known that the interior of each can be described as where, are irreducible algebraic curves.

By and we denote bivariate polynomials representing and in the cell , respectively. The problem for isolating the real solutions of on is equivalent to isolating the real solutions of the following semialgebraic systems With the above preparation, we can easily present the main algorithm for isolating the real intersection points of two piecewise algebraic curves and on .

Algorithm 4.1. Isolating the real solutions of piecewise algebraic curves.
Input Two bivariate splines and a small tolerance .
Output The set of all isolating intervals of .

Step 1. Set and let be an empty set.

Step 2. Perform good initial interval searching Algorithm 3.3 for on and obtain all the good iterative interval . For each , compute , where is an interval evaluation of and consider the following three cases.
Case 1. If for some , delete .
Case 2. If for some , then we compute repeatedly until or .
Case 3. If for all and , then set and stop. Otherwise, if we let and compute repeatedly until , then set and stop.

Step 3. Set , If then go to Step 2. Else, stop and output the set of all isolating intervals .

5. Numerical Example

In this section, an example is provided to illustrate the proposed algorithm is flexible and easy to implement.

Example 5.1. Let be a convex polyhedron partition of a pentagon in , where (see Figure 2). Let and be defined as follows:(i)on cell (ii)on cell (iii)on cell (iv)on cell

The number of partition, the number of calculation for rotation degree and the number of calculation for on each cell in order to find the good initial iterative intervals are listed in Table 1.

Therefore, the isolating interval of on is after three iteration steps with good initial iterative interval in cell .

Remark 5.2. The total number of rotation degree and iteration steps required to be calculated in Example 5.1 are 15 and 6, respectively. However, if we use the algorithm in [10] to compute globally, then more than three thousand iteration steps are needed in order to obtain the result with the same precision.

Remark 5.3. Compared to the algorithms in [11, 12], our proposed method does not require to transform the system into some triangular systems and compute the real zeros of polynomial or interval polynomial.

6. Conclusion and Future Work

This paper presents an algorithm for isolating the real solutions of two piecewise algebraic curves. It is primarily based on Krawczyk-Moore interval iterative algorithm and the good initial interval searching algorithm. The proposed algorithm is easy to implement and reduces the computational cost greatly.

It is from Bezout’s number for piecewise algebraic curves that we know the number of intersection points of piecewise algebraic curves which not only depend on the degree of splines, but also heavily depend on the geometrical structure of the partition. However, the proposed algorithm does not use the intrinsic characteristic and relationship of bivariate splines and performs it on each cell independently. Therefore, it is vital to establish the relationship between the number of intersection points between the adjacent cells before performing our proposed algorithm. It remains to be our future work.

Acknowledgments

This paper was supported by the National Natural Science Foundation of China (nos. 11101366 and 11026086) and the Natural Science Foundation of Zhejiang Province (nos. Q12A010064 and Y6090211).