Preprint
Article

Intersection Properties of Finite Disk Collections

Altmetrics

Downloads

60

Views

17

Comments

0

A peer-reviewed article of this preprint also exists.

Submitted:

11 January 2024

Posted:

15 January 2024

You are already at the latest version

Alerts
Abstract
In this work we study the intersection properties of a finite disk system in the euclidean space. We accomplish this by utilizing subsets of spheres with varying dimensions and analyze specific points within them, referred to as poles. Additionally, we introduce two applications: estimating the common scale factor for the radii that makes the re-scaled disks intersects in a single point, this is the \v{C}ech scale, and constructing the minimal Axis-Aligned Bounding Box (AABB) that encloses the intersection of all disks in the system.
Keywords: 
Subject: Computer Science and Mathematics  -   Computational Mathematics

MSC:  68U05; 65D17; 05E45

1. Introduction

One of the new techniques developed for the analysis of large clusters of information, known as Big Data, is Topological Data Analysis (TDA). In TDA, simplicial complexes associated with the data are constructed. These structures include the Vietoris-Rips complex, the Čech complex, and the piecewise linear lower star complex, among others. Of special interest to us is the generalized Čech complex structure. Although the standard Čech complex is formed by intersecting a collection of disks with a fixed radius, the generalized version allows varying radii. This flexibility enables us to highlight specific data points by assigning or weighting them with larger and/or more rapidly expanding balls to them, while de-emphasizing others by using smaller and/or slower growing balls. This approach proves valuable for handling noisy data sets, offering an alternative to discarding data that may not meet a specific significance threshold [1].
Understanding the patterns of intersections and the timing of intersections among a set of disks in R d , each with potentially different radii, is a fundamental problem. This leads to the exploration of the generalized Čech complex structure, which captures the intersection information of these disks, regardless of their radii. Rescaling the radii by the same factor, we obtain a filtered generalized Čech complex, where the associated simplicial complexes evolve as the scale parameter varies. In particular, in [2], algorithms are provided to calculate the generalized Čech complex in R 2 , and [3] presents an algorithm to determine the Čech scale for a collection of disks in the plane.
To establish the necessary foundation for our study, Section 2 introduces crucial concepts and notation that will be used throughout the article and we focus on analyzing the intersection of a disk system in R d . We start by investigating the intersection of two disks in Section 2.1 and then expand our analysis to a system of m disks in Section 2.2. By applying Helly’s Theorem, we prove that it is sufficient to examine the intersection of all subsystems consisting of d + 1 disks in order to determine if the system has a nonempty intersection.
In Section 3, we define Vietoris-Rips systems and Čech systems, together with presenting results regarding the Rips scale and the Čech scale, as well as their connections. In Section 3.1, we present an algorithm that can determine whether the intersection of the system is empty or non-empty. This is achieved by exclusively computing the poles of subsystems of disks (or spheres). Finally, in Section 3.2, we introduce the algorithm that computes an approximation to the Čech scale using the numerical bisection method.
Additionally, in Section 4 we incorporate the concept of an minimal axis-aligned bounding box (AABB) into our methodology. An AABB is a rectangular parallelepiped whose faces are perpendicular to the basis vectors. These bounding boxes frequently arise in spatial subdivision problems, such as ray tracing [4] and collision detection [5]. In this paper, we study AABBs to enclose the intersection of a finite collection of disks. This approach proves valuable for discerning whether the collection intersects at a singular point or not. In this section, we also provide an algorithm for constructing the AABB of a disk system.

2. Intersection properties of sphere systems

Throughout this work, we will refer to a d-disk system M, or simply a disk system, as a finite collection of closed disks in R d with positive and not necessarily equal radii, i.e.,
M = { D i ( c i ; r i ) R d c i R d , r i > 0 , 1 i m < } .
Moreover, in order to study the intersection properties of a disk system M with the approach addressed in Section 3 and Section 4 of this work, we will conduct a study in this section of the intersection properties of the spheres corresponding to the boundaries of each disk in M, which we call a sphere system and denote by M ,
M = { D i R d D i M } ,
where denotes the topological boundary operator.
Following the notation in [6], we introduce the following generalization of the sphere.
Definition 1.
An i-sphere in  R d is the intersection of a sphere with an affine subspace of dimension i.
Of course, the notions of a sphere (as a ( d 1 ) -dimensional surface) and a d-sphere in R d agree. However, an i-sphere in R d can also be viewed as the intersection of d-spheres. For instance, the intersection of two spheres typically occurs in a hyperplane, forming a ( d 1 ) -sphere in R d . When another d-sphere intersects this configuration, the result may be a ( d 1 ) -sphere, a ( d 2 ) -sphere, a 0-sphere (a single point), or it might even be empty, all within the same hyperplane. For a disk system M = { D i ( c i ; r i ) } composed of m disks, where { c 1 , , c m } is a set in general position in R d , the maximum dimension of the affine subspace associated with the i-sphere, obtained from the intersection of all the spheres in M , is at most d m + 1 , or equivalently, i = d m + 1 . This conclusion is drawn from [6, Theorem 2.1] and the fact that the affine hull of { c 1 , , c m } is of dimension m 1 . Consequently, the following result is proven.
Lemma 1.
Let  M = { D 1 ( c 1 ; r 1 ) , , D m ( c m ; r m ) }  be disk system such that  { c 1 , , c m }  is a set in general position in  R d . Then, the possibilities for the set  D i M D i  are:
  • the empty set;
  • a single point;
  • a ( d m + 1 ) -sphere.
Remarkable points in i-spheres that will play a key role in the rest of the article are the poles. Let π i : R d R be the canonical projection on the i-th factor for i = 1 , . . . , d , and let { e 1 , e 2 , . . . , e d } be the standard basis of R d .
Definition 2.
Let e q be the q-th vector of the canonical base of R d . An e q -north (south) pole of an i-sphere S in R d is a point on S whose projection on the q-th coordinate is maximum (minimum). In other words, x S is the e q -north pole if π q ( y ) π q ( x ) for all y S { x } , where π q represents the projection onto the q-th coordinate.
We denote the e q -north pole of S by s q + and the e q -south pole by s q .
An i-sphere can have a single e q -pole (north or south) or an infinite number of them, which occurs when a normal vector to the affine space containing the i-sphere is aligned with the vector e q . We are interested in finding the e q -poles of ( d m + 1 ) -spheres originating from disk systems M = { D 1 ( c 1 ; r 1 ) , , D m ( c m ; r m ) } , by taking the intersection j = 1 m D j . Such ( d m + 1 ) -spheres will be denoted by S M ( c ; r ) , to emphasize the disk system M, as well as its center and radius.
Lemma 2.
Let M = { D 1 , , D m } be a d-disk system such that j = 1 m D j , and let p be a point in j = 1 m D j such that π q ( p ) π q ( x ) (resp. π q ( p ) π q ( x ) ) for every x in j = 1 m D j . Then, there exists an i-sphere S = D j 1 D j i such that p is in S and p is the e q -south pole (resp. e q -north pole) of S.
Proof. 
Since j = 1 m D j , then ( j = 1 m D j ) , ( j = 1 m D j ) j = 1 m D j due to the closedness of the sets D j , for j = 1 , , m , and p ( j = 1 m D j ) .
On the other hand, since ( j = 1 m D j ) i = 1 m D j , there exist indices j 1 , , j i such that p D j r for any r = 1 , , i ; let Λ ( p ) = { j 1 , , j i } { 1 , , m } be a maximal subset of indices such that p D j if and only if j Λ ( p ) . We claim that p r = 1 i D j r is the e q -south pole of S : = r = 1 i D j r .
In effect, let V p R d be an open neighborhood of p sufficiently small such that:
  • Every x V p ( j = 1 m D j ) has as maximal set of indices a proper subset of Λ ( p ) ,
  • S V p ( j = 1 m D j ) .
The first condition can be guaranteed by the finiteness of the disk system M, and the second condition is a consequence of the maximality of the set Λ ( p ) . Therefore, π q ( p ) π q ( x ) for every x S V p , which is equivalent to the fact that π q ( p ) π q ( x ) for every x S , in the case of i-spheres.
   □

2.1. Sphere systems with two spheres

In the following two lemmas we provide the computations to determine the center, radius and poles for a ( d 1 ) -sphere given by the intersection of two disks in R d .
Lemma 3.
Let M = { D 1 ( c 1 ; r 1 ) , D 2 ( c 2 ; r 2 ) } be a disk system with two d-disks such that D 1 D 2 is a ( d 1 ) -sphere S = S M ( c ; r ) with center c and radius r. Then,
c = 1 2 1 + r 2 2 r 1 2 c 2 c 1 2 c 1 + 1 2 1 + r 1 2 r 2 2 c 2 c 1 2 c 2
and
r = 2 s ( s c 2 c 1 ) ( s r 1 ) ( s r 2 ) c 2 c 1
where s = 1 2 ( c 2 c 1 + r 1 + r 2 ) .
Proof. 
Let Π be the hyperplane containing the ( d 1 ) -sphere S, which is defined by the equation:
i = 1 d ( k i h i ) x i 1 2 i = 1 d ( k i 2 h i 2 ) = r 1 2 r 2 2 2 ,
where c 1 = ( h 1 , , h d ) and c 2 = ( k 1 , , k d ) . Then the normal vector of the hyperplane Π is given by N : = c 2 c 1 = ( k 1 h 1 , , k d h d ) , and the center c of S is determined by the intersection point of the hyperplane Π with the perpendicular line that passes through the center c 1 of D 1 . This line can be parameterized as γ : t c 1 + t N = ( x 1 ( t ) , , x d ( t ) ) , such that γ ( 0 ) = c 1 and γ ( 1 ) = c 2 . We can compute the intersection point c = γ ( t * ) of Π and γ ( [ 0 , 1 ] ) , for any t * [ 0 , 1 ] , by substituting it in (1),
i = 1 d ( k i h i ) ( h i + t * ( k i h i ) ) = 1 2 i = 1 d ( k i 2 h i 2 ) + ( r 1 2 r 2 2 ) .
And solving for t * , we obtain that t * = 1 2 + r 1 2 r 2 2 2 c 2 c 1 2 . Hence, the center of S is given by:
c = c 1 + t * N = 1 2 1 + r 2 2 r 1 2 c 2 c 1 2 c 1 + 1 2 1 + r 1 2 r 2 2 c 2 c 1 2 c 2
Next, we will compute the radius r of S. This radius can be determined as the height r of the triangle with base c 2 c 1 formed by the points c 1 , c 2 , and a point on S. Thus, by the Heron’s formula we have that
r = 2 s ( s c 2 c 1 ) ( s r 1 ) ( s r 2 ) c 2 c 1 ,
where s = 1 2 ( c 2 c 1 + r 1 + r 2 ) correspond to the semi-perimeter.    □
We can proceed now to compute the poles of the ( d 1 ) -sphere D 1 D 2 .
Lemma 4.
Let D 1 ( c 1 ; r 1 ) and D 2 ( c 2 ; r 2 ) be two d-disks such that D 1 D 2 is a ( d 1 ) -sphere S = S ( c ; r ) with center c and radius r. Then, the e q -poles of S are s q ± = c ± i d x i e i , where
x i = r | π i ( c 2 c 1 ) π q ( c 2 c 1 ) | c 2 c 1 c 2 c 1 2 π q ( c 2 c 1 ) 2 , i q r c 2 c 1 2 π q ( c 2 c 1 ) 2 c 2 c 1 , i = q .
Proof. 
For simplicity, we translate the hyperplane Π , which contains the ( d 1 ) -sphere S, as well as the sphere itself, to the origin; in such case, the corresponding equations are given by,
i = 1 d ( k i h i ) x i = 0 , i = 1 d x i 2 = r 2 ,
where h i : = π i ( c 1 ) and k i : = π i ( c 2 ) for i = 1 , , d . In the case that k q h q = π q ( c 2 c 1 ) = 0 , the normal vector N = c 2 c 1 of the hyperplane Π is orthogonal to the basis vector e q . Therefore, the e q -poles of S are c ± r e q , which agree with the formulae of the lemma.
On the other hand, suppose that k q h q 0 . To find the e q -poles of S, we will use the Lagrange multiplier method. Consider the following function:
x q = f ( x 1 , x 2 , . . . , x q ^ , . . . , x d ) = j q d ( k j h j ) x j k q h q ,
subject to the restriction:
g ( x 1 , x 2 , . . . , x q ^ , . . . , x d ) = j q d x j 2 + j q d ( k j h j ) x j k q h q 2 r 2 = 0
Let λ be the Lagrange multiplier, we define
h ( x 1 , . . . , x q ^ , . . . , x d , λ ) = f ( x 1 , . . . , x q ^ , . . . , x d ) + λ g ( x 1 , . . . , x q ^ , . . . , x d )
For any i q , consider the following system of equations:
h x i = k i h i k q h q + 2 λ x i + 2 λ j q d ( k j h j ) x j k q h q k i h i k q h q = 0 .
Then
k i h i k q h q + 2 λ x i + k i h i ( k q h q ) 2 j q d ( k j h j ) x j = 0 ( k i h i ) ( k q h q ) + 2 λ ( k q h q ) 2 x i + ( k i h i ) j q d ( k j h j ) x j = 0
Solving this system of equations for λ , we obtain that,
λ = ( k i h i ) ( k q h q ) 2 ( k q h q ) 2 x i + ( k i h i ) j q d ( k j h j ) x j
Comparing the last expression for two indices i i ˜ , we have that,
x i 2 = r 2 ( k i h i ) 2 ( k i ˜ h i ˜ ) 2 + j i ˜ , q ( k j h j ) 2 + 1 ( k q h q ) 2 j q ( k j h j ) 2 2 = r 2 ( k i h i ) 2 j q ( k j h j ) 2 + 1 ( k q h q ) 2 j q ( k j h j ) 2 2 = r 2 ( k i h i ) 2 ( k q h q ) 2 ( k q h q ) 2 + j q ( k j h j ) 2 j q ( k j h j ) 2 = r 2 π i ( c 2 c 1 ) 2 π q ( c 2 c 1 ) 2 c 2 c 1 2 c 2 c 1 2 π q ( c 2 c 1 ) 2
Finally, for i = q , we can use the last expression to substitute it in (2) and obtain the desired result.    □

2.2. Sphere systems with more than two spheres

Now, let us proceed with the explicit calculation of the coefficients for the center c of the ( d m + 1 ) -sphere S = j = 1 m D j . We can achieve this by considering the disk system translated to c m , denoted as { D j ( c j c m ; r j ) } j = 1 m , and by defining the ( d m + 1 ) -sphere S { c m } = j = 1 m D j ( c j c m ; r j ) . This sphere is positioned at the intersection of hyperplanes (for more details, refer to [6]).
( c k c m ) T x = 1 2 ( r m 2 + c k c m 2 r k 2 )
for all k = 1 , . . . , m 1 . Utilizing the information that the center of S { c m } can be expressed as a combination of the centers c k c m and substituting it into (3), we obtain a linear system of equations with dimensions ( m 1 ) × ( m 1 ) :
j = 1 m 1 λ j ( c k c m ) · ( c j c m ) = 1 2 ( r m 2 + c k c m 2 r k 2 )
for k = 1 , . . . , m 1 . Solving the system of equations for λ = ( λ 1 , . . . , λ m 1 ) , we find the center of S as follows:
c = λ 1 ( c 1 c m ) + . . . + λ m 1 ( c m 1 c m ) + c m
The radius of the sphere S can be computed using the equation:
r 2 = r k 2 c c k 2
for any k { 1 , . . . , m 1 } .
Now that we have determined the center and radius of S, as well as the affine space that contains it, we can proceed to compute its e q -poles for each q { 1 , 2 , . . . , d } . These poles reside in the affine space that contains S and within a set that we define below.
Let S be an i-sphere in R d , and let n 1 , . . . , n d i be orthogonal vectors to the affine space L that contains S. Consider the space M generated by these vectors together with the vector e q from the canonical basis of R d . Let us denote n j = n l ( j ) l = 1 d for each j = 1 , . . . , d i . Then, we can define L 0 , the set L translated to the origin, as follows:
L 0 = { n j } j = 1 d i = x R d x · n j = 0 , j = 1 , . . . , d i
The set M is defined as:
M = { n j } j = 1 d i { e q } = x = j = 1 d i λ j n j + λ d i + 1 e q R d λ j R , j = 1 , . . . , d i + 1 = j = 1 d i λ j n 1 ( j ) , . . . , j = 1 d i λ j n q ( j ) + λ d i + 1 , . . . , j = 1 d i λ j n d ( j ) λ j R
Refer to Figure 1 for a visual representation of the subspaces L and M + { c } .
As mentioned above, the e q -poles of S lie at the intersection of L and M + { c } , where c is the center of S. To simplify the calculations, we will utilize L 0 and M, and then translate them into c. The intersection of M and L 0 can be expressed as follows:
M L 0 = x M x · n k = 0 , k = 1 , . . . , d i = j = 1 d i λ j n j + λ d i + 1 e q R d j = 1 d i λ j n j + λ d i + 1 e q · n k = 0 , λ j R k = 1 , . . . , d i = j = 1 d i λ j n j + λ d i + 1 e q R d j = 1 d i λ j n j · n k + λ d i + 1 n q k = 0 , λ j R k = 1 , . . . , d i
Let us consider a disk system in R d , denoted { D j ( c j ; r j ) } j = 1 m , where m < d . The intersection of their boundaries forms a ( d m + 1 ) -sphere S. In this case, the subspace M has dimension m, or d i m ( M ) = m 1 if e q M . We choose the normal vectors for the affine space containing S as n j = c j c m , where j = 1 , . . . , m 1 . Then
M = j = 1 m 1 λ j c 1 ( j ) c 1 ( m ) , . . . , j = 1 m 1 λ j c q ( j ) c q ( m ) + λ m , . . . , j = 1 m 1 λ j c d ( j ) c d ( m ) λ j R
By rewriting, we have
M L 0 = j = 1 m 1 λ j n j + λ m e q R d j = 1 m 1 λ j n j · n k + λ m n q k = 0 , λ j R , k = 1 , . . . , m 1
If S ( c ; r ) = j = 1 m D j is the ( d m + 1 ) -sphere with center in c and radius r, then the e q -poles of S are the e q -poles of S { c m } but translated by c. The poles of S { c m } are located in M L 0 . If p is an e q -pole of S { c m } , then it can be expressed as
p = j = 1 m 1 λ j n j + e q λ m
for some λ j R , j = 1 , . . . , m and the following conditions holds:
j = 1 m 1 λ j n j · n k + λ m n q k = 0
for each k = 1 , . . . , m 1 and
p 2 = r 2
Thus, if p = j = 1 m 1 λ j n j + e q λ m is an e q -pole of S { c m } , the following equations are satisfied for λ 1 , λ 2 , . . . , λ m R :
j = 1 m 1 λ j n j · n k + λ m n q k = 0
i = 1 d j = 1 m 1 λ j n i j 2 + 2 λ m j = 1 m 1 λ j n q j + λ m 2 = r 2
for all k = 1 , . . . , m 1 , with r the radius of the ( d m + 1 ) -sphere S. From (4) we have the system
n 1 · n 1 n 1 · n 2 . . . . n 1 · n m 1 n 2 · n 1 n 2 · n 2 . . . . n 2 · n m 1 . . . n m 1 · n 1 n m 1 · n 2 . . . . n m 1 · n m 1 λ 1 λ 2 . . . λ m 1 + λ m n q 1 n q 2 . . . n q m 1 = 0 .
Let us denote A as the matrix ( n i · n j ) i , j and B as the vector ( n q j ) j = 1 m 1 . Then, we have A λ = λ m B , where λ = ( λ 1 , . . . , λ m 1 ) . Solving for λ , we obtain λ j = λ m ( A 1 B ) [ j ] for each j = 1 , . . . , m 1 (where ( A 1 B ) [ j ] denotes the entry j of the ( m 1 ) × 1 vector ( A 1 B ) ). By substituting the value of λ j into (5), we obtain the quadratic equation:
λ m 2 i = 1 d j = 1 m 1 ( A 1 B ) [ j ] n i j 2 + 2 j = 1 m 1 ( A 1 B ) [ j ] n q j + 1 r 2 = 0
Let us define
Γ i = j = 1 m 1 ( A 1 B ) [ j ] n i j
for all i = 1 , . . . , d . Solving this equation, we find:
λ m = ± r i = 1 d Γ i 2 + 2 Γ q + 1
λ j = ± r ( A 1 B ) [ j ] i = 1 d Γ i 2 + 2 Γ q + 1
for j = 1 , . . . , m 1 . Therefore, the e q -poles of S, for q = 1 , . . . , d , are:
p = j = 1 m 1 λ j n j + e q λ m + c = ± r i = 1 d Γ i 2 + 2 Γ q + 1 j = 1 m 1 ( A 1 B ) [ j ] n j + e q + c

3. Vietoris-Rips and Čech systems

Our goal in this section is to provide a comprehensive understanding of the disk system, the Vietoris-Rips system, and the Čech system. Additionally, we introduce some results that establish a certain connection between both disk systems. Investigating the features and qualities of data and spaces can provide us with useful knowledge about their geometric and topological characteristics.
Before we look into the definitions of Vietoris-Rips and Čech systems, let us give a brief overview. These systems are essential in the field of topological data analysis for recognizing and comprehending the geometric structure of point cloud data. Vietoris-Rips complex and Čech complex share the goal of capturing the topology of the underlying metric space, both provide different ways of recognizing connections and associations among data points. The Vietoris-Rips complex tends to be more efficient and scalable for large datasets, while the Čech complex can be more accurate but computationally more expensive. The choice between the two depends on the nature of the dataset and the specific goals of the topological analysis. Now, let us move on to defining these fundamental concepts.
Definition 3.
Let M = { D 1 , D 2 , , D m } be a d-disk system. We say M is a Vietoris-Rips system if D i D j for each pair i , j { 1 , 2 , , m } . Furthermore, if the d-disk system M has the nonempty intersection property D i M D i , then M is called a Čech system.
For each λ 0 , we define a collection of d-disks M λ with the same centers as those in the d-disk system M, but with radii rescaled by λ . When λ > 0 , M λ is a d-disk system again. M 1 is equal to M, and M 0 is the set of the centers of the d-disks in M.
In the field of topological data analysis, the Rips scale and the Čech scale are essential parameters for determining the closeness and connectivity between data points. These two scales offer different perspectives on how we measure and comprehend geometric relationships within point-cloud data. To understand their importance in capturing the underlying topological structure, let us look at their definitions. The Vietoris-Rips scale ν M , of a d-disk system M is the smallest λ R such that M λ is a Vietoris-Rips system. Similarly, the Čech scale μ M , of M is the smallest λ R such that M λ is a Čech system. This is
ν M = inf { λ R M λ i s a V i e t o r i s R i p s s y s t e m } μ M = inf { λ R M λ i s a Č e c h s y s t e m }
Next, we present some easily observable properties for both scales. It can be easily seen that M is a Vietoris-Rips system if and only if ν M 1 (in particular ν M ν M = 1 ); similarly, M is a Čech system if and only if μ M 1 .
Note that for a given d-disk system M = { D 1 , D 2 , , D m } the Vietoris-Rips scale is
ν M = max i < j { c i c j / ( r i + r j ) }
where c i and r i are the center and radii of D i . An additional observation is that, in cases where the disk system consists of either one or two disks, the Vietoris-Rips scale coincides with the Čech scale. It is evident that every Čech system is also a Vietoris-Rips system; however, the reverse assertion, in general, is not true.
Conversely, if the d-disk system contains at least three disks, determining the Čech scale becomes more complex. In the context of Čech scale, the following remark is important and play a key role in implementation (see [3] for details).
Remark 1.
If μ M is the Čech scale for M, then the μ M -rescaled system M μ M , has only one point in the intersection D i M D i ( c i ; μ M r i ) .
As we have mentioned, a Čech system is also a Vietoris-Rips system, but the converse is not true. What we can affirm is that if a system is a Vietoris-Rips system, then the system rescaled by the factor 2 d / ( d + 1 ) is also a Čech system. This is established by the following lemma, the proof of which can be found in [3].
Lemma 5.
Let M = { D i ( c i ; r i ) } be a d-disk system in euclidean space R d . If D i ( c i ; r i ) D j ( c j ; r j ) for every pair of disks in M, then
D i M D i ( c i ; 2 d / ( d + 1 ) r i ) .
One of the implications of the previous result is that, for any given disk system M, we can bound the Čech scale using the Vietoris-Rips scale ν M . This is stated by the following corollary.
Corollary 1.
If M is an arbitrary d-disk system and ν M is its Vietoris-Rips scale, then its Čech scale satisfies ν M μ M 2 d / ( d + 1 ) ν M . Therefore, for every d-disk system M, the rescaled disk system M 2 d / ( d + 1 ) ν M is always a Čech system. In particular, if 2 d / ( d + 1 ) ν M 1 then M ν M is a Čech system.

3.1. Algorithm for determining Čech system.

In the previous section, we have determined the e q -poles for the intersection of any number of disks in R d . If any of these poles is in all disks of the disk system, it indicates that the system conforms to the criteria of a Čech system. It is important to recognize that this result streamlines our calculation process, focusing on specific points to establish whether the system exhibits a non-empty intersection.
Given a system of m disks in R d where m > d , it is enough to verify if every subsystem of d + 1 disks qualifies as a Čech system to conclude that the entire system of disks has a non-empty intersection. This assertion is supported by the Helly’s Theorem.
Now, we introduce an algorithm that determines whether a disk system qualifies as a Čech system. In simpler terms, if the disk system exhibits a non-empty intersection, the algorithm outputs "TRUE"; otherwise, it outputs "FALSE". The algorithm operates by seeking poles within the intersections of the disk boundaries, which, as we have observed, correspond to i-spheres. It initiates the search for poles within individual disks and then progresses to the pairwise intersections of the disk boundaries ( ( d 2 ) s p h e r e ), continuing the process iteratively. If a pole is found within the remaining disks, the system is classified as a Čech system.
Theorem 1.
Let M = { D 1 , , D m } be a d-disk system. Then, M is a Čech system if and only if Cech.system ( M ) = TRUE.
Proof. 
If Cech.system ( M ) = TRUE, then the Cech.system algorithm (Algorithm 1) found a pole contained in the intersection j = 1 m D j , therefore j = 1 m D j and it follows that M is a Čech system.
On the other hand, if j = 1 m D j , let p be a point in j = 1 m D j satisfying π 1 ( p ) π 1 ( x ) for every x in j = 1 m D j . By Lemma 2, it follows that p belongs to an i-sphere and must be an e 1 -south pole. Therefore, by the exhaustive search of Algorithm 1 across all poles, its output is Cech.system ( M ) = TRUE.    □
Algorithm 1: Cech.system
Preprints 96165 i001

3.2. Algorithm to compute the Čech scale

Finding the minimum parameter for which the rescaled system of disks has a non-empty intersection is significant because it helps identify a critical threshold at which the disks come into contact. This parameter, known as the Čech scale, provides valuable information about the proximity or overlap of the disks, which can be crucial in various applications such as collision detection in computer graphics, spatial packing problems, and modeling physical phenomena. In this section, we introduce an algorithm to compute an approximation of the Čech scale for a system of m disks in R d .  
Algorithm 2: Cech.scale
Preprints 96165 i002
The given code presents an algorithm to compute an approximation of the Čech scale of a disk system in Euclidean space using Algorithm 1 and a precision parameter η > 0 . It initializes the scale factor λ to the Rips scale ν M . If this scale satisfies Cech.system ( M ν M ) = TRUE, it indicates that the Čech scale has been found. Otherwise, we initiate a cycle in which we compute Cech.system of the system rescaled by a factor λ . The Čech scale is known to fall between the Rips scale and the value 2 d / ( d + 1 ) ν M (Generalized Vietoris-Rips, Corollary 1). To approximate the Čech scale, we employ the bisection method as long as the interval enclosing the Čech scale has a length greater than η . Finally, the algorithm returns an approximation of the Čech scale.
Utilizing the previously described algorithm, we can construct the filtered generalized Čech complex for a disk system M. Let C ( M ) denote the set of Čech subsystems, and C λ ( M ) the set of Čech subsystems for the rescaled disk system M λ . The Čech filtration of the M system forms a maximal chain of Čech complexes
C * ( M ) : C 0 ( M ) C λ 1 ( M ) C λ 2 ( M ) . . . C μ M ( M ) ,
where each λ i represents the Čech scale of the system M λ i . Since the Čech scale of a disk system indicates the factor by which we must rescale the system to make it Čech, defining a level of the filtration, C λ ( M ) , simply requires determining the Čech scale of the system M λ .

4. Minimal Axis-Aligned Bounding Box.

In this section, we introduce the concept of the minimal axis-aligned bounding box (AABB) for the intersection of d-disks and present methods for its computation. The AABB provides a simplified representation of the disk intersection, making it easier to obtain valuable information about the disks. This information could be useful for computing the Čech scale of a disk system.
Definition 4.
Let M be a disk system in R d . The minimal axis-aligned bounding box of M, denoted as A A B B ( M ) , is defined as the smallest axis-aligned bounding box that contains the intersection D = D i M D i , given by
A A B B ( M ) : = D B ˜ B ˜
where B ˜ ranges over all axis-aligned bounding boxes that contain D.
Note that the AABB can be expressed as
A A B B ( M ) = k = 1 d [ inf π k ( D ) , sup π k ( D ) ]
where π k : R d R is the canonical projection onto the k-th factor, and D denotes the boundary of D. In other words, the AABB of a disk system M is given by the Cartesian product of intervals, where each interval is determined by the minimum and maximum values of the corresponding projection of the disk boundaries.

4.1. Minimal axis-aligned bounding box for two disks

Let’s consider the situation when the disk system M is composed of two disks D 1 and D 2 in R d . If D 1 D 2 and D 1 D 2 , the subset D 1 D 2 can take one of three forms: an empty set, a single common point (when the disks are tangent), or a ( d 2 ) -dimensional sphere. In the last case, we denote the ( d 2 ) -dimensional sphere or the ( d 1 ) -sphere D 1 D 2 by S 1 , 2 . To calculate inf π i ( ( D 1 D 2 ) ) and sup π i ( ( D 1 D 2 ) ) for each i { 1 , 2 , . . . , d } , we can use:
inf π i ( ( D 1 D 2 ) ) = π i ( c 1 r 1 e i ) if c 1 r 1 e i D 2 , π i ( c 2 r 2 e i ) if c 2 r 2 e i D 1 , inf ( π i ( D 1 D 2 ) ) otherwise ,
sup π i ( ( D 1 D 2 ) ) = π i ( c 1 + r 1 e i ) if c 1 + r 1 e i D 2 , π i ( c 2 + r 2 e i ) if c 2 + r 2 e i D 1 , sup ( π i ( D 1 D 2 ) ) otherwise .
Indeed, by Lemma 2, the extremes of the AABB are the projections of certain poles, either from the ( d 1 ) -sphere or some d-sphere. The d-spheres represent the boundaries of each disk, with poles given by c j ± r j e i , and the ( d 1 ) -sphere is S 1 , 2 = D 1 D 2 , whose poles are computed using Lemma 4. It is worth noting that there are no further options for ( d m + 1 ) -spheres in the case of a two-disk system.
To simplify the notation, we will use B i , j to denote the AABB of the intersection of disks D i and D j . Figure 2 illustrates the AABB of the intersection of two disks in the plane.
According to (6) and Lemma 3, we have a method to calculate the axis-aligned boundary box (AABB) for systems of two disks.
Knowing how to compute the AABB of two disks is not sufficient to determine the AABB for a disk system with more than two disks in R d . In the following examples, we demonstrate that the AABB of a disk system is not simply the intersection of all AABBs of two disks in R 3 .
Example 1. Let
M = { D 1 ( ( 4 , 1 , 0 ) ; 2 ) , D 2 ( ( 4 , 1 , 0 ) ; 2 ) , D 3 ( ( 0 , 0 , 0 ) ; 3 ) } R 3
be a Vietoris-Rips system in R 3 with the following projection onto the x y -plane:
By computing the boxes B i , j for all i < j , we obtain:
B 1 , 2 = [ 3 , 5 ] × [ 2 , 2 ] × [ 1 , 1 ] B 1 , 3 = [ 4 2 , 3 ] × [ 0 , 1.41 ] × [ 0.72 , 0.72 ] B 2 , 3 = [ 4 2 , 3 ] × [ 1.4 , 0 ] × [ 0.72 , 0.72 ]
Therefore, i < j B i , j = [ 3 , 3 ] × [ 0 , 0 ] × [ 0.72 , 0.72 ] . However, the disk system intersects at the point P = ( 3 , 0 , 0 ) , which means A A B B ( M ) = { P } . In other words, A A B B ( M ) is not equal to i < j B i , j .
We know that if D , then i < j B i , j . However, the converse is not always true. The following example illustrates this fact.
Example 2. Let N = { D 1 , D 2 , D 3 ( ( 0 , 1 , 0 ) ; 10 ) , D 4 ( ( 3 , 0 , 1 ) ; 0.9 ) } R 3 be a Vietoris-Rips system. The projection of disks D 1 , D 2 , and D 3 onto the x y -plane is illustrated in Figure 4.
We will now compute the intersections B i , j for different pairs of disks:
B 1 , 2 = [ 3 , 5 ] × [ 2 , 2 ] × [ 1 , 1 ] B 1 , 3 = [ 4 2 , 10 ] × [ 0 , 2 ] × [ 1 , 1 ] B 1 , 4 = [ 2.6 , 3.9 ] × [ 0.4 , 0.9 ] × [ 0.100007 , 1.3 ] B 2 , 3 = [ 2.6 , 3 ] × [ 0.8 , 0 ] × [ 0.44 , 4.47 ] B 2 , 4 = [ 2.6 , 3.9 ] × [ 0.9 , 0.4 ] × [ 0.100007 , 1.3 ] B 3 , 4 = [ 2.1 , 3.11 ] × [ 0.73 , 0.9 ] × [ 0.1 , 1.7 ]
The intersection of all pairwise intersections, i < j B i , j , is given by [ 3 , 3 ] × [ 0 , 0 ] × [ 0.1 , 1.7 ] . However, the intersection of disks D 1 , D 2 , and D 3 is a single point P, which is not contained in D 4 (by construction). Therefore, D is an empty set, but i < j B i , j is not.
These examples clearly illustrate that when dealing with the AABB of three disks or more, knowing the AABB for pairs of disks is insufficient. In Example Section 4.1, we observe that the intersection of A A B B ( { D i , D j } ) is not equal to the AABB of the disk system M. Similarly, in Example Section 4.1, we find that the intersection of three disks is empty, yet the intersection of A A B B ( { D i , D j } ) contains points.
Therefore, the next crucial step is to determine how to calculate the AABB of a disk system consisting of more than two disks in R d .

4.2. Minimal axis-aligned bounding box for more than two disks

Given a system M consisting of m disks in R d , we can compute the e q -poles for any subcollection of disks. Using these e q -poles, we can determine the axis-aligned bounding box (AABB) of M.
If m d , we calculate the e q -poles of the ( d m + 1 ) -sphere D i , and with these poles, we define the AABB of M by taking inf π q D = π q ( p ) , where p is the e q -south pole of the ( d m + 1 ) -sphere (similarly for sup π q D ).
In the case where m = d + 1 , we consider A A B B ( M ( 1 ) ) , . . . , A A B B ( M ( m ) ) as a collection of minimal axis-aligned boxes for the disk system M ( i ) = M { D i } in R d . If the intersection of any d + 1 of these sets is nonempty, then the intersection of the entire collection gives us the minimal axis-aligned box of the disk system M. This can be expressed as A A B B ( M ) = A A B B ( M ( i ) ) . The next theorem confirms this finding.
Theorem 2
(Helly’s theorem for minimal axis-aligned boxes). Let M be a Rips system with d + 1 disks in R d . Then, the minimal axis-aligned bounding box for the intersection set D = j = 1 d + 1 D j satisfies:
A A B B ( M ) = j = 1 d + 1 A A B B ( M ( j ) )
where M ( j ) = M { D j } .
Proof. 
We know that A A B B ( M ) j = 1 d + 1 A A B B ( M ( j ) ) . Now, our objective is to establish the reverse inclusion, that is, j = 1 d + 1 A A B B ( M ( j ) ) A A B B ( M ) . In order to derive a contradiction, suppose that the reverse inclusion is not true. By definition, we have:
A A B B ( M ) = i = 1 d inf π i ( D ) , sup π i ( D )
and
j = 1 d + 1 A A B B ( M ( j ) ) = i = 1 d max k { inf π i ( j k D j ) } , min k { sup π i ( j k D j ) }
Without loss of generality, let’s assume that:
π 1 ( p ) > max k inf π 1 ( j k D j ) k = 1 d + 1
where p D satisfies π 1 ( p ) = inf π 1 ( D ) .
Let q j be the point in k j D k such that π 1 ( q j ) = inf π 1 ( k j D k ) for each j = 1 , 2 , . . . , d + 1 . Note that q j D j because q j is not in D. Now, let γ j be the line segment that connects q j and p.
Choose ϵ > 0 small enough such that the hyperplane P : x 1 = π 1 ( p ) ϵ does not contain any q j , and π 1 ( q j ) < π 1 ( p ) ϵ for all j = 1 , 2 , . . . , d + 1 (such hyperplane P exists because π 1 ( p ) > π 1 ( q j ) for all j = 1 , . . . , d + 1 ). Since q j is in k j D k , the hyperplane P intersects every disk in M ( j ) for each j, and γ j k j D k intersects P at a point that is in k j D k (see Figure 5). Furthermore, D k P is a ( d 1 ) -dimensional disk. Therefore, we have a collection D = { D j P | j = 1 , 2 , . . . , d + 1 } of d + 1 disks, each of dimension d 1 , such that every subset A of D consisting of d disks has the non-empty intersection property. By Helly’s Theorem, the intersection of all ( d 1 ) -disks in D is not empty. Therefore, there exists a point q D with π 1 ( q ) < π 1 ( p ) . However, this contradicts the fact that p D is such that π 1 ( p ) = inf π 1 ( D ) .
Therefore, we conclude that j = 1 d + 1 A A B B ( M ( j ) ) = A A B B ( M ) .
   □
Lemma 6.
Let M be a Vietoris-Rips system of d + 1 disks in R d . If D = i = 1 d + 1 D i = and A A B B ( M ( j ) ) for each j = 1 , . . . , d + 1 , then i = 1 d + 1 A A B B ( M ( i ) ) consists only of intervals of the form [ a , b ] with a > b (inverted intervals).
Proof. 
Suppose that i = 1 d + 1 A A B B ( M ( i ) ) contains an interval. Without loss of generality, let’s assume it is the interval
[ inf π 1 ( D ( k ) ) , sup π 1 ( D ( l ) ) ]
for some k , l { 1 , 2 , . . . , d + 1 } where D ( k ) = i k D i . By definition of i = 1 d + 1 A A B B ( M ( i ) ) , we have inf π 1 ( D ( k ) ) inf π 1 ( D ( i ) ) for all i k and sup π 1 ( D ( l ) ) sup π 1 ( D ( j ) ) for all j l . Now, consider a hyperplane P : x 1 = p with inf π 1 ( D ( k ) ) p sup π 1 ( D ( k ) ) . The hyperplane P intersects D ( j ) for every j = 1 , . . . , d + 1 (since P cuts through all the boxes A A B B ( M ( j ) ) ). We also know that P D i is a d 1 -dimensional disk for each i.
Therefore, we have a collection of d disks in a d 1 dimensional space, and by Helly’s Theorem, this collection must have a non-empty intersection. This implies that D , which contradicts our assumption that D is empty. Hence, all intervals in i = 1 d + 1 A A B B ( M ( i ) ) must be inverted intervals of the form [ a , b ] with a > b .    □
As an example, we provide the lower bounds of the AABB for a system of three disks in R d , this is, we compute inf π i ( D ) for each i = 1 , . . . , d (analogous sup π i D ) with D = j = 1 3 D j . Let M = { D 1 , D 2 , D 3 } be a Rips system in R d , then, for each i = 1 , . . . , d , the computation of the AABB for the disk system M is given by:
inf π i ( D ) = π i ( c k r k e i ) if c k r k e i D max j < k { inf π i ( D j D k ) } if ( * ) inf π i ( j = 1 3 D j ) otherwise
where (*) denotes the case where q D with q D j D k such that
π i ( q ) = max j < k { inf π i ( D j D k ) } .
The preceding calculations are a result of Lemma 2. It is known that the extremes of the AABB lie in the projections of specific poles, either from a d-sphere, ( d 1 ) -sphere, or the ( d 2 ) -sphere.
Given a disk system M in R d , we can compute the minimal axis-aligned bounding box (AABB) for the intersection of all disks in M. If the AABB is a point, then it represents the intersection of the disks. This property allows us to identify when the AABB is a point. If the AABB of M is not a point, we can rescale M by a scale factor λ such that the AABB of M λ becomes a point. The value of λ is referred to as the Čech scale of the system M.

4.3. Minimal axis-aligned bounding box Algorithm

Now, we present an algorithm to calculate the minimal axis-aligned bounding box (AABB) of a system of m disks in R d . As previously explained, the AABB’s extremes are defined by projecting the poles of specific i-spheres. Thus, in computing the AABB, we will determine the poles for each i-sphere within the disk system.
The algorithm starts by initializing the set of poles, P, as an empty set. In each iteration of the first loop, we determine the spheres formed by the intersection of the boundaries of the disk subcollections in the system M (for this, we require the center and radius, which are computed in Section 2.2). Next, we identify the poles of each sphere and if any of them are present in all the disks of M, we add them to the set P. If P is not empty, we proceed to calculate the extremes for each dimension of the AABB using the set of north poles for the upper bounds and the set of south poles for the lower bounds. In this case, the output is the product of the intervals defined by the computed extremes. If P is empty, it indicates that there is no intersection in the disk system.
Algorithm 3: AABB.minimal
Preprints 96165 i003

Acknowledgments

C.G.E.P acknowledges CONACYT for the financial support provided through a National Fellowship (CVU-638165).

References

  1. Bell, G.; Lawson, A.; Martin, J.; Rudzinski, J.; Smyth, C. Weighted persistent homology. Involve, a Journal of Mathematics 2019, 12, 823–837. [Google Scholar] [CrossRef]
  2. Le, N.K.; Martins, P.; Decreusefond, L.; Vergne, A. Construction of the generalized Cech complex, 2015, [arXiv:cs.NI/1409.8225]. arXiv:cs.NI/1409.8225].
  3. Espinoza, J.F.; Hernández-Amador, R.; Hernández-Hernández, H.A.; Ramonetti-Valencia, B. A Numerical Approach for the Filtered Generalized Čech Complex. Algorithms 2019, 13, 11. [Google Scholar] [CrossRef]
  4. Mahovsky, J.; Wyvill, B. Fast Ray-Axis Aligned Bounding Box Overlap Tests with Plucker Coordinates. Journal of Graphics Tools 2004, 9, 35–46. [Google Scholar] [CrossRef]
  5. Cai, P.; Cai, Y.; Chandrasekaran, I.; Zheng, J. Collision detection using axis aligned bounding boxes. Simulation, Serious Games and Their Applications 2013, pp. 1–14.
  6. Maioli, D.S.; Lavor, C.; Gonçalves, D.S. A note on computing the intersection of spheres in Rn. The ANZIAM Journal 2017, 59, 271–279. [Google Scholar] [CrossRef]
Figure 1. Visualization of the subspaces L and M + { c } .
Figure 1. Visualization of the subspaces L and M + { c } .
Preprints 96165 g001
Figure 2. AABB of two disks.
Figure 2. AABB of two disks.
Preprints 96165 g002
Figure 3. Disk system M projected onto the x y -plane.
Figure 3. Disk system M projected onto the x y -plane.
Preprints 96165 g003
Figure 4. Disk system N projected onto the x y -plane.
Figure 4. Disk system N projected onto the x y -plane.
Preprints 96165 g004
Figure 5.  
Figure 5.  
Preprints 96165 g005
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated