Full text
Connectivity calculus of fractal polyhedrons Helena Molina-Abril a, n , Pedro Real a , Akira Nakamura b , Reinhard Klette c a Universidad de Sevilla, Spain b Hiroshima University, Japan c The University of Auckland, New Zealand Keywords: Connectivity Cycles Topological analysis Tunnels Directed graphs Betti number Fractal set Menger sponge Sierpiński pyramid abstract The paper analyzes the connectivity information (more precisely, numbers of tunnels and their homological (co)cycle classification) of fractal polyhedra. Homology chain contractions and its combinatorial counterparts, called homological spanning forest (HSF), are presented here as an useful topological tool, which codifies such information and provides an hierarchical directed graph-based representation of the initial polyhedra. The Menger sponge and the Sierpiński pyramid are presented as examples of these computational algebraic topological techniques and results focussing on the number of tunnels for any level of recursion are given. Experiments, performed on synthetic and real image data, demonstrate the applicability of the obtained results. The techniques introduced here are tailored to selfsimilar discrete sets and exploit homology notions from a representational point of view. Nevertheless, the underlying concepts apply to general cell complexes and digital images and are suitable for progressing in the computation of advanced algebraic topological information of 3-dimensional objects. 1. Introduction The Polish mathematician Waclaw Sierpiński described properties of a self-similar planar set (see [26]), today known as the Sierpiński sieve. A generalization into 3-dimensional space leads to the Sierpiński pyramid. The Austrian mathematician Karl Menger also studied a recursively defined set, today known as Menger sponge (see [16] and Fig. 1), when discussing the notion of topological dimension. In this paper we consider recursively defined polyhedra, called fractal sets. Recursion details are given below. The Menger sponge or Sierpiński pyramid are examples of such fractal sets. Working within a semi-continuous context, we use the notion of a minimal spanning tree (MST) of a finite set of points in R n ,as introduced in [22,23], to provide topological information of the fractal underlying set, up to a numerically computable resolution. In particular, connectedness, disconnectedness and the number of connected components with non-zero diameter are properties that are identified and calculated in [23]. A logical question that arises here when investigating ways to formalize the relationship between the homology of a set of R 3 , and the homology of a finite point-set approximation of it, is how to distinguish between simply-connected sets and those with holes (i.e. tunnels or cavities). Within the semi-continuous context of cell complexes, there are two approaches for the computation of comprehensive homological information: 1. The (co)differential approach: Here, only one 2-nilpotent linear map (the canonical differential operator of the cell complex) is involved, and linear algebra for reducing matrices into a Smith Normal Form is exhaustively used (see e.g [12,19]). 2. The integral approach: Here, two 2-nilpotent linear maps (differential and integral operators) are involved. In the integral approach, one constructs a degree þ1 linear map (integral operator) which records the information of the algebraic homological deformation process, reducing the whole cell complex to a minimal homological expression (see e.g. [10]). In particular, using the differential and integral operators, one can determine homology groups among other topological properties. For example, the method of computing connected components using the spanning forest of the 1-skeleton of the cell complex is a relevant example of integral homological computation. We apply here an integral homological approach, allowing a quantitative analysis of high degrees of connectivity of cell complex versions of fractals, for an arbitrary level of recursion. We mainly focus on the Pattern Recognition n Corresponding author. E-mail addresses: [email protected] (H. Molina-Abril), [email protected] (P. Real), [email protected] (A. Nakamura), [email protected] (R. Klette).
number of tunnels and cavities, but the techniques developed here can be employed to create a calculus with cycles and co-cycles within the fractals. A cycle calculus allows us, for example, 1. to topologically classify any cycle or co-cycle within the object, 2. to determine whether a cycle is contractible within the object and, in the positive case, to obtain a geometric deformation that reduces the cycle into a point, 3. to topologically transform, if possible, one cycle into another within the fractal, 4. to determine a shortest path between two points in the given fractal, considering a defined distance function, and 5. to compute (co-)cyclic operations having (co-)cycles of the objects as input or output. Starting with a hierarchical directed graph representation, it is possible to proceed with cycle-calculus on fractals. This calculus has been introduced in [17,18],bydefining coordinate-based forests (i.e. graphs which are in general a set of trees). These direct graphs extent to higher dimensions spanning forests as known from labelling of connected components (0th-homology group) of a digital object. Due to this fact, they are called homological spanning forests (HSFs). These structures can also be generalized for applications in the domain of tree–cotree decompositions of combinatorial surfaces; see [6] and [7]. In this paper we recall the definition of HSFs, give relevant examples for fractal sets, and manipulate their associated chainhomotopy equivalence for computing topological properties. For developing this approach, different methodologies and theories have been combined, such as discrete Morse theory (see [8]), effective homology (see [25]), AT-model theory (see [10]), and homological algebra (see [17]). The techniques introduced here are tailored to fractals, but the underlying concepts also apply to digital images and data. The development of new topological representations is essential for advancing in solid and physical modelling [3,4]. It appears to be a feasible short-term goal to design a novel mapping from mathematical solid models to actual computer representations for extensive geometric data as common in 3D imaging, using the HSF techniques as developed. See the reported experiments at the end of the paper. Furthermore, digital topology has various applications in remote sensing, computer vision, lossless and fractal compression, and algorithmic pattern recognition. Because our method applies to fractal and non-fractal cell complexes, the work presented here is susceptible to be adapted for its use in the previously mentioned applications. The paper is structured as follows: Section 2 introduces HSFs and related basic definitions. Section 3 applies the introduced topological framework to fractal polyhedra in general. The example of the Menger sponge is discussed in Section 4, and those of the Sierpiński pyramid in Section 5. Experiments are shown in Section 6.Section 7 concludes. 2. Combining homological with homotopical information We determine the representative cycles of tunnels in fractal structures which are embedded into R 3 . By using HSF structures, we classify any closed curve in the fractal structure in terms of homology generators working with coefficients in the field Z=2Z¼f0;1g. Acell complex O consists of i-cells of dimension i, for some iAN. Given a finite convex cell complex embedded in R 3 , it is possible to construct the canonical chain complex associated to a cell complex Oand its homology, called a strong deformation retract in [11],a reduction in [25],orachain contraction in [5]. In fact, a chain contraction of this kind, called homology chain-integral contraction (See [20]), condenses the Z=2Zhomological information of the cell complex Oand it can be completely described by only using two chain operators. One of them is the (unique) chain boundary operator for O. The other is a (non-unique) twonilpotent chain homotopy called chain integral operator. In order to take advantage of the geometric nature of the cell complex, we combine homological and homotopical information of O, for constructing the previous homology chain contraction by using the combinatorial boundary operator of Oand directed graphs whose nodes are the centroids of the (convex) cells. For example, if the homotopical information is given in terms of a gradient vector field Von the cell complex O(see [8,14]), it is straightforward to construct a chain contraction from the chain complex Oto a smaller (in terms of numbers of basis generators) algebraic object. In the case having an optimal vector field V,thislastobjectisthe Z=2Z-homology graded module of O. Summing up, we search here for an “economical”combinatorial coding of a homology chain integral operator (also called, AT-model, [9]). This “coding”will be given here in terms of hierarchical coordinate-based directed graphs, called homological spanning forest (HSF). This paper discusses the constructions of HSF structures for some fractal sets, to be used for determining homology chain contractions. The directed edges of an HSF are part of the frontier of the cell complex which consists of several “connected”cell pairings. A cell pairing is a directed edge which goes from an i-cell to an incident (iþ1)-cell of the complex. Let us note that in a general HSF, two cell pairings could share the i-cell or the (iþ1)-cell components. The links between these cell pairings are also directed edges from the (iþ1)-cell tail of one cell pairing to the i-cell source of the other. When the HSF is derived from a optimal discrete gradient vector field Vover O(that is, with a minimum number of critical cells), the cell pairings are disjoint pairs of incident cells. In this case, the connected directed graphs (DG for short) of the HSF can be described by the union of different non-trivial closed V-paths [8]. Fig. 1. Menger sponge at recursion levels 0–3, from left to right (published by Solkoll in 2005 in the public domain; here shown color-inverted). (For interpretation of the references to color in this figure caption, the reader is referred to the web version of this paper.) H. Molina-Abril et al. / Pattern Recognition 48 (2015) 1150–1160 1151
For doing so, a chain contraction is defined by a homology chain integral operator ϕ F (homology χ operator, h χ ), which maps an i-cell into a linear combination of (iþ1)-cells. The following examples provided an introduction for ϕ F and its associated HSF. In both examples, we construct HSF DG structures from optimal discrete gradient vector fields. The linear operator ϕ F maps an i-cell into a linear combination of (iþ1)-cells and satisfies certain conditions, to be formally defined later in Definition 1. 1 The map ϕ F is specified by an HSF F. The following examples provide an introduction for h χ map and its associated HSF, and the formal definitions in the next section. Example 1. Consider the object in Fig. 2 (left) and one homotopically equivalent cell complex Xthat is the graph shown in Fig. 2 (right). Each dot in the graph represents a 0-cell, and each grey rectangle represents a 1-cell. Frontiers are directly defined for every 1-cell as the sum of its two endpoints. Considering the connected 1-dimensional cell complex in Fig. 2 (right), the construction of its HSF representation can be done in a straightforward manner. The HSF in this case consists of a single tree spanning every 0-cell in the graph, and a maximal pairing between 0-cells and 1-cells defined in this tree (minimizing to one the number of critical cells at dimension zero). Fig. 3 shows a (non-unique) HSF F 1 associated with the cell complex in Fig. 2 (right). Each arrow illustrates a cell pairing from a 0-cell to a 1-cell. We can observe that every 0-cell is paired with a 1-cell except the 0-cell jthat is not paired. Six 1-cells also remain unpaired (shown in light grey). Unpaired cells are called critical cells, and each one of them corresponds to one homology class. In general, in an HSF derived from an optimal discrete gradient vector field, the number of unpaired 0-, 1-, and 2-cells coincides with the Betti numbers β 0 , β 1 , and β 2 , respectively. In this example, we have one connected component ( β 0 ¼1) and six cycles ( β 1 ¼6), that is one unpaired 0-cell and six unpaired 1-cells. The h χ map ϕ 1 , associated with HSF F 1 ,isdefined (in this case of a 1-dimensional complex) only as the sum of 1-cells that are in the path from any vertex to a critical cell j. For example, ϕ 1 ðaÞ¼abþbcþceþef þfgþghþhiþij and ϕ 1 ðgÞ¼ghþhiþij where the 1-cell ab is the one with endpoints aand b,bc with b and c, and so forth. □ Example 2. Consider a hollow tetrahedron Xas a simple example of a cell complex; it has one connected component and one cavity. In Fig. 4 (left), 0-cells, 1-cells, and 2-cells are again represented by black dots, grey rectangles, and grey dots, respectively. Geometrically, locations of those symbols may be identified with centroids of cells. For example, the frontier of the 2-cell acd is Fig. 2. A polyhedron shown by [15] and a homotopically equivalent cell complex extending Fig. 6.19 of [13]. Fig. 3. HSF F 1 of the example shown in Fig. 2. 1 For cell complexes and linear combinations of cells, see, for example, Chapter 6 in [13]. For constructing the map ϕ F , see also the papers [10,9] and [20] in the cubical setting. H. Molina-Abril et al. / Pattern Recognition 48 (2015) 1150–11601152
specified by ϑðacdÞ¼acþadþcd; cells a,c,dare incident with cell acd, and cell acd is incident with cells ac,ad, and cd. Fig. 4 (left) shows an undirected graph GðXÞdefined by nodes (i. e. the different cells) of Xand incidences between an i-cell and an (iþ1)-cell. Figs. 4 (right) and 5show two different HSFs F 1 and F 2 for X, being directed subgraphs of GðXÞ. As mentioned before, an arrow on an edge illustrates a cell pairing from an i-cell to an (iþ1)-cell. In Fig. 4 (right), a black (0,1)-tree connects all the 0-cells with three of the 1-cells. Pairings between the remaining three 1-cells and incident 2-cells define three (1,2)-trees (in grey) having only two nodes each. Finally, there is one unique HSF tree (also in black) formed by the 2-cell bcd only. This finalizes a spanning forest F 1 . Every 0-cell is paired with a 1-cell (pairs are ða;adÞ,(c,ac) and (b, ab)) except the 0-cell dwhich is not paired. Every 1-cell is paired, either with a 0-cell (in black) or a 2-cell (in grey). Regarding the 2- cells, only bcd remains unpaired. The only unpaired cells in Fig. 4 (right) are dand bcd, corresponding with the Betti numbers β 0 ¼1 and β 2 ¼1. Any 0-cell of the tetrahedron can be selected to become the critical cell. In Fig. 5, cell cis the critical cell for the (0,1)-tree. The (1,2)-tree (in grey) has no critical cell (and abc as a root). The cell acd is a single-node tree. The shown HSF F 2 consists of three trees and two critical cells cand acd. The h χ operator ϕ 1 , associated with HSF F 1 ,isdefined as follows: ϕ 1 ðaÞ¼ad,ϕ 1 ðbÞ¼abþad, ϕ 1 ðcÞ¼acþad,ϕ 1 ðdÞ¼0 (critical cell), ϕ 1 ðabÞ¼0, ϕ 1 ðacÞ¼0 ϕ 1 ðadÞ¼0, ϕ 1 ðbcÞ¼abc, ϕ 1 ðbdÞ¼abd,ϕ 1 ðcdÞ¼acd, ϕ 1 ðabcÞ¼0, ϕ 1 ðabdÞ¼0, ϕ 1 ðacdÞ¼0, ϕ 1 ðbcdÞ¼0 (critical cell). The h χ map ϕ 2 associated with HSF F 2 is as follows: ϕ 2 ðaÞ¼ac,ϕ 2 ðbÞ¼bc, ϕ 2 ðcÞ¼0 (critical cell), ϕ 2 ðdÞ¼adþac, ϕ 2 ðabÞ¼abc,ϕ 2 ðacÞ¼0, ϕ 2 ðadÞ¼0, ϕ 2 ðbcÞ¼0, ϕ 2 ðbdÞ¼abdþabc,ϕ 2 ðcdÞ¼bcdþabdþabc, ϕ 2 ðabcÞ¼0, ϕ 2 ðabdÞ¼0, ϕ 2 ðbcdÞ¼0, ϕ 2 ðacdÞ¼0 (critical cell). This concludes the example, where two possible HSF representations for the tetrahedron are shown. Notice that the critical cells are the ones that remain unpaired. □ The map ϕ F determines a way in which the cell complex is algebraically reduced into its homological minimal expression. It may be understood as “a kind of”an inverse of the algebraic frontier of the cell complex O. The algebraic frontier is denoted by ϑOand also known as chain frontier (see Section 5.2 in [13]); the chain frontier decreases the dimension of complex Oby one; ϑ is a linear operator which also satisfies that ϑϑO¼0. Definition 1. A function ϕ F , called h χ operator, is a linear map ϕ F :C n ðOÞ-C nþ1 ðOÞð1Þ satisfying the following identities: (a) ϕ F ϕ F ¼0, called 2-nilpotency, (b) ϕ F ϑϕ F ¼ϕ F , the splitting homotopy condition, and (c) ϑϕ F ϑ¼ϑ, known as splitting homology condition. The algebraic definition of an h χ map follows “naturally”from the notion of “splitting homotopy”in [1]. Functions ϕ 1 and ϕ 2 , deduced from their corresponding combinatorial HSF structures, satisfy conditions (a), (b), and (c) of an h χ map. The combinatorial scaffolding HSF codifies (in an economical way, and without redundancies) the values of the h χ map, specifying the number of V-paths from an i-cell to any of its associated homological critical cells. In this paper, we visualize an HSF F, but mathematically we handle its canonically associated chain-homotopy ϕ F . Fig. 4. Left: Visualization of a cell complex of a hollow tetrahedron. Right: HSF F 1 of a hollow tetrahedron; cells dand bcd remain unpaired. Fig. 5. HSF F 2 of a of a hollow tetrahedron. Cells cand acd remain unpaired. H. Molina-Abril et al. / Pattern Recognition 48 (2015) 1150–1160 1153
For further details, we refer to [17,18] on HSFs, and to [10,9] and [20] on determining an h χ map. 3. Fractal polyhedra Now consider a fractal polyhedron Oas being a convex cell complex. Starting from an optimal discrete gradient vector field V we build an HSF structure for O, and, consequently, an h χ map. Any (i,iþ1)-DG of this complex is a directed subgraph of the undirected graph GðOÞhaving as nodes the convex cells of the complex, and edges that represent incidences between i- and (iþ1)-cells. A (0,1)-tree T 0 spans all the 0-cells of a connected component of GðOÞvia intermediate 1-cells in GðOÞ. These intermediate edges in T 0 are labelled by arrows going from a 0-cell to a 1-cell, defining a pairing, and specifying in this way the starting optimal gradient vector field Vat this level (i.e., the number of critical cells is minimal, and thus equal to the corresponding Betti number). The set of (0,1)-trees (in case there is more than one connected component) is denoted by F 0 . Let us suppose that we have determined the set F i1 of (i, iþ1)-DG. A connected (i,iþ1)-DG T i is a directed graph spanning every i-cell of a connected component of GðOÞ\ðF 0 ⋃F i1 Þsuch that a maximal number of i-cells is connected with adjacent (iþ1)-cells in T i . The cell pairings in this connected direct subgraph are determined by those in the vector field V. The number of non-paired i-cells of T i (i.e. of critical cells) is called the criticality number of the DG T i . The set of (i,iþ1)-DGs is denoted by F i . The criticality of F i (also called the i-criticality of the associated HSF) is the sum of criticalities of the graphs of F i . An HSF Fof a fractal set Osatisfies that its i-criticality coincides with the corresponding i th Betti number of O. As commented above, starting from an HSF structure of a fractal and fixing a field of coefficients, one can determine an algebraic relationship between the differential graded vector field of linear combinations of cells belonging to the fractal, denoted by C n ðOÞ, and its homology graded vector space. The latter one is a homology chain contraction of O. All the DGs of the HSF structure describe “connected”versions of the optimal discrete gradient vector field Vat different levels, and a h χ map can be directly constructed. We define a linear mapping ϕ:C n ðOÞ-C nþ1 ðOÞð2Þ by ϕðxÞ¼ðsmod 2ÞY, for all the (iþ1)-cells Ysuch that there are exactly spaths from xto Ythrough an connected (i,iþ1)-DG of the HSF structure. Obviously, ϕ applied to a critical cell is equal to zero. The stated three properties of 2-nilpotency, splitting homotopy and splitting homology allow us to use ϕ for performing cycle calculus. Topological analysis of, and cycle calculus on fractals can be simplified by using the spanning HSF forests. In the following two sections we apply HSF forests for developing cycle calculus on the Menger sponge and two versions of Sierpiński pyramids. 4. Menger sponge The Menger sponge has been illustrated already in Fig. 1.In general, M n denotes the nth-recursion Menger sponge. For example, Fig. 6 shows on the left the 1st-recursion Menger sponge M 1 . If considered as a solid polyhedron then it is formed by 20 cubical 3-cells. In this section, an HSF combinatorial scaffolding for the Menger sponge is constructed “ad hoc”, based on a tree-cotree strategy. The HSF is a subgraph of the simplicial graph GðOÞ, which we construct as a barycentric subdivision of a regular cubical cell complex. Fig. 6 shows on the right (in red) the (0,1)-tree of an HSF of this set, where crosses show 0-cells of GðOÞ, diamonds 1-cells, and a critical cell is encircled at the lower left. This tree (shown in red) already determines the single connected component of the Menger sponge. An arrow on an edge of the (0,1)-tree specifies a disjoint pairing between a 0-cell and a 1-cell. In this case, the set of arrows determines an optimal discrete gradient vector field for this (0,1) level. Fig. 7 shows two of the four (1,2)-trees having a non-zero criticality number. These two trees have a criticality number equal to one or two. The 2-cells are drawn using hollow 5-pointed stars. The other two (1,2)-trees have zero criticality. These four (1,2)- trees of M 1 determine the different 1-cycles generating the first homology group of this 1st-recursion Menger sponge, or dually, the different cocycles generating its first cohomology group. Finally, Fig. 8 shows the different (2,3)-trees of the HSF of M 1 , all of them having zero as criticality number. Starting from the (0,1)-tree and the (2,3)-trees (cotrees), all the (1,2)-trees of the HSF structures are completely defined. This tree-like coding of M 1 Fig. 6. Left: a cell complex of the 1st-recursion Menger sponge formed by 20 cubical 3-cells, shown as transparent on the white background. Right: the (0,1)-tree of an HSF of this cell complex (in red). (For interpretation of the references to color in this figure caption, the reader is referred to the web version of this paper.) H. Molina-Abril et al. / Pattern Recognition 48 (2015) 1150–11601154
provides now a way, as specified earlier, to determine its associated h χ map ϕ . For example, for the (1,2)-tree Tshown in Fig. 7 on the left, with criticality number one, it is straightforward to determine its associated h χ map ϕ . This is because it specifies a true optimal discrete gradient vector field. The critical 1-cell of this tree (see the pale blue square) is indexed in the Fig. by “5”. We refer to the indices of cells 1;2;2 0 ;3;…;14 as specified on the left of Fig. 7. First, we derive a map ϕ 0 defined by: ϕ 0 ð1Þ¼b,ϕ 0 ð2Þ¼aþgþjþm, ϕ 0 ð2 0 Þ¼cþhþkþn,ϕ 0 ð3Þ¼dþf. ϕ 0 ð4Þ¼gþjþm,ϕ 0 ð5Þ¼0 (critical cell), ϕ 0 ð5 0 Þ¼fþgþhþjþkþmþn,ϕ 0 ð6Þ¼hþkþn, ϕ 0 ð7Þ¼eþiþlþoþn,ϕ 0 ð8Þ¼iþlþoþn, ϕ 0 ð9Þ¼jþm,ϕ 0 ð10Þ¼kþn, ϕ 0 ð11Þ¼lþoþn,ϕ 0 ð12Þ¼m, ϕ 0 ð13Þ¼n,ϕ 0 ð14Þ¼oþn. For any 2-cell in T, the value of ϕ 0 is 0. It is also zero for any other cell of the cell complex. Then, the following equalities are valid: ϕ 0 ϕ 0 ¼0;ϕ 0 ϑ 0 ϕ 0 ¼ϕ 0 ;and ϑ 0 ϕ 0 ϑ 0 ¼ϑ 0 ð3Þ where ϑ 0 is the map that assigns to any 2-cell α in Tthe sum of 1- cells in the tree that belong to the frontier of cell α . The final h χ map ϕ is defined as follows for the cells in T: ϕ 0 ð2 0 Þ¼cþhþkþnþm,ϕ 0 ð5Þ¼0 (critical cell), ϕ 0 ð5 0 Þ¼fþgþhþjþkþn,ϕ 0 ð6Þ¼hþkþnþm, ϕ 0 ð7Þ¼eþiþlþoþnþm,ϕ 0 ð8Þ¼iþlþoþnþm, ϕ 0 ð10Þ¼kþnþm,ϕ 0 ð11Þ¼lþoþnþm, ϕð13Þ¼nþm,ϕ 0 ð14Þ¼oþnþm, ϕ¼ϕ 0 otherwise. It is straightforward to verify the validity of 2-nilpotency, splitting homotopy and splitting homology conditions for ϕ and the real frontier of the original cell complex. An important aspect is that the constructed HSF structure should have, if possible at all, their critical cells on the “external” frontier of the cell complex, in order to determine more efficiently whether a considered cycle is either “created”or “destroyed” when we add copies of 0-recursion order Menger sponges to a given complex. In order to determine the Betti numbers of polyhedron M,we take into consideration: 1. a simplified graph description of Menger sponges in order to easily handle HSF structures, 2. the fact that the number of critical cells needs to be minimal, and 3. that these critical cells need to be located in symmetric positions at “intersections”of Menger sponges of lower dimensions. In algebraic-topological terms and within this setting, we apply here a kind of constructive Mayer–Vietoris technique for involved HSF structures and, subsequently, for the corresponding h χ maps. In this way, we obtain the following recursion equations: Theorem 1. For the number T n of tunnels of the nth-recursion polyhedral Menger Sponge M n , we have that T 1 ¼5ð4Þ T n ¼8T n1 þ½T n1 2ð8 n2 þ8 n3 þ…þ8þ1Þ 12þ5ð5Þ Fig. 7. Left: A (1,2)-tree with criticality number equal to 1. Right: A (1,2)-tree with criticality number equal to 2. (For interpretation of the references to color in this figure caption, the reader is referred to the web version of this paper.) Fig. 8. (2,3)-trees of the HSF of M 1 , all of criticality zero. H. Molina-Abril et al. / Pattern Recognition 48 (2015) 1150–1160 1155
T n ¼20 T n1 24 ð8 n2 þ8 n3 þ…þ8þ1Þþ5ð6Þ Proof. Let us consider a description of the different levels of the Menger sponge in terms of graphs (i.e. 1-dimensional cell complexes). For instance, the 1-dimensional Menger sponge is a hollow cube. The nth-recursion polyhedral Menger sponge M n is obtained from the (n-1) th -recursion Menger sponge M n1 by simply considering a 3 33 cube (that is 27 voxels) in which each of the eight corner voxels, and each of its side voxels (there are four in each face, and they are 6-adjacent to the corner voxels) is a M n1 Menger sponge. The central voxel of each face, and the central voxel of the cube are void. See Fig. 9. Depicting the 1-recursion polyhedral Menger sponge by means of a graph-skeleton, we choose the HSF structure presented in Fig. 10 . There is a (0,1)-HSF tree (drawn in red) showing that there is one connected component (one critical cell drawn by a black filled small circle) and five 1-2 trivial HSF graphs (five 1-holes whose associated critical cells are drawn by black filled small squares). Ah χ map can be straightforwardly constructed from the previous HSF. In the n¼1 case, the graph that represents M 1 has 222¼8 1 vertices. For n¼2 we introduce a M 1 Menger sponge in each of the corner and side voxels. Therefore, the final M 2 graph has ð3þ1Þð3þ1Þð3þ1Þ¼444 vertices, that is 2 6 ¼8 2 .InFig. 11, corner voxels are represented by a light blue square, and side voxels by a green circle. The way in which the M 1 HSFs are connected is also shown. The number of edges that need to be added are 7 (in red) in order to generate the M 2 HSF (three in the frontal face, three in the back face, and one more in the middle face that connects both faces). This HSF specifies T 2 . In the unit 3 33 cube, each corner voxel contributes with T 1 (equal 5) holes, each of the 12 side voxels contributes with T 1 2xð1Þholes and, finally, the central voxel contributes with five holes (i.e. 12 edges of this central voxel minus seven edges from the (0-1)-HSF tree). Summing up, there are 81 holes for M 2 . For the general case nZ2, we only need to show that the minimal number of edges a fðnÞ in a 2-dimensional face of the cube, containing an n-dimensional Menger sponge belonging to any HSF, Fig. 9. Corner voxels colored in red, and side voxels coloured in green. (For interpretation of the references to color in this figure caption, the reader is referred to the web version of this paper.) Fig. 10. Graph-skeleton of the 1-recursion polyhedral Menger sponge. Fig. 11. Graph-skeleton of the frontal and back face of the 2-recursion polyhedral Menger sponge. Fig. 12. Colored in red the edges belonging to one HSF in one face of the cube 333. (For interpretation of the references to color in this figure caption, the reader is referred to the web version of this paper.) H. Molina-Abril et al. / Pattern Recognition 48 (2015) 1150–11601156
is equal to 8 ðn1Þ þ…þ8 1 þ1. These edges can be seen as 1–2 HSF trivial trees. This fact can be easily proven taking into account that there are faces of eight voxels M n-1 in each 2-dimensional face of the unit 3 33 cube C, using HSF structures of this face, like the one shown in Fig. 12. It is straightforward to show that a fðnÞ is 8a fðn1Þ þ1, being the last summand for the contribution of the empty central voxel of this face. In fact, we do not need to specify any HSF in order to count the number of holes for the graph complex M 2 or, more generally, M n . T n equals e n v n1 , where v n is the number of vertices, and e n is the number of edges in the n-dimensional Menger sponge. □ As an example for Theorem 1, we have that T 2 ¼81 and T 3 ¼1409. Note that the number of tunnels (i.e. the Betti number β 1 of the nth-recursion Menger cube) increases at a very fast rate. Concerning the cycle calculus, due to the fact that we can compute an explicit h χ map ϕ n for any nth-recursion Menger sponge, it is possible to classify any cycle within the fractal (specifying its homology class), or to determine whether two cycles within the fractal polyhedron are homologous or not (that is, if they can be, or cannot be transformed one into the other in a continuous way within the Menger sponge). 5. Sierpiński pyramid At first we consider the Sierpiński square-based pyramid S 0 ; see Fig. 13 for an example at some iteration step. This pyramid generalizes the Sierpiński sieve (see [26]) into 3D space. The recursion starts with one square pyramid. At Level nþ1, five copies of S n (i.e., pyramids at Level n) form the pyramid S nþ1 , where four copies of S n form its base, and the fifth copy sits on the four top-vertices of those four copies. In this case, using the HSF-technique for this fractal set, it follows straightforwardly how to determine a formula for the number of tunnels of the polyhedron S n : Theorem 2. For the nth-level Sierpiński square-based pyramid, we have that T 1 ¼3ð7Þ T n ¼3ð5 n1 þ5 n2 þ…þ5 1 þ5 0 Þð8Þ Proof. A HSF-structure of the recursion-0 Sierpiński square-based pyramid S 0 is shown in Fig. 14, left. In order to construct the HSF for the first recursion Sierpiński pyramid, let us consider the cellular structure as shown in Fig. 14 (right). In Fig. 14 (right), the four squares coloured in light blue are the squared basis of five S 0 Sierpiński pyramids. We consider that each of these five pyramids has the HSF represented in Fig. 14 (right). The five squared cells coloured in yellow, the twelve dark grey edges, and the vertices marked with a circle are the sinks of the HSF trees in S 0 , and will be eliminated when applying the h χ operations in the construction of S 1 . In Fig. 15 (left), the h χ operations corresponding to the 0–1 HSF of the five copies of S 0 are coloured in red. After applying these reductions, each of the four vertices in the S 0 bases will be contracted to a single vertex (marked by a circle in Fig. 15, left). Fig. 13. Left: Sierpiński square-based pyramid (left) and its inverse (right) when “the level of recursion is about 7”(published by P. Bertok in 2005 for public domain). Right: HSF structure for the square-based pyramid S 0 . Fig. 14. Left: HSF structure of the recursion-0 Sierpiński pyramid. Right: Cellular structure on which the 1-recursion Sierpiński pyramid HSF will be constructed. (For interpretation of the references to color in this figure caption, the reader is referred to the web version of this paper.) H. Molina-Abril et al. / Pattern Recognition 48 (2015) 1150–1160 1157
Therefore, each of the S 0 pyramids contributes with a single critic cell in dimension zero (that is, one connected component for each S 0 pyramid). In Fig. 15 (right), the h χ operations in 1–2 colored in purple represent the elimination of the yellow squared cells. After the previously mentioned operations, let us consider the HSF of the remaining cells shown in Fig. 16 (left). From this final structure we can deduce that S 1 has one connected component (marked by a 1) and three 1-dimensional holes (marked by a 0). Note that the lower extreme of the vertical edges corresponds in reality to the four S 0 apexes, but they are shown here in the corner for visualization purposes. In a similar way, we can compute the number of tunnels for higher levels of recursion, where we have that T n ¼5T n1 þ3ð9Þ In Fig. 16 (right), an HSF (without taking into account the initial h χ operations) for the first level of the recursive Sierpiński pyramid is shown. □ As an example for Theorem 2,T 1 ¼3 is followed by T 2 ¼18, and then T 3 ¼93. In fact, the HSF-structure for the n-level Sierpiński square-based pyramid can be derived almost automatically from that of level 0; see Fig. 13. From the HSF-structure of S n and, more precisely, from the associated h χ map, it is possible to derive a cycle calculus for these fractal polyhedra. If the fractal polyhedron is the Sierpiński triangle-based pyramid, then we have the following: Theorem 3. For the nth-level Sierpiński triangle-based pyramid, we have that T 1 ¼3ð10Þ T n ¼3ð4 n1 þ…þ4 1 þ4 0 Þð11Þ Theorem 3 follows analogously to Theorem 2. 6. Experiments Our experiments illustrate how to apply the proposed techniques to mathematically defined fractal objects as well as to realworld structures (as, e.g., given in 3-dimensional imaging). At first we report about experiments carried out on the (up to three levels of recursion) Menger sponge, and also for two fractal variations, generated using slightly modified 1-recursion Menger sponges. Menger sponges of levels of recursion 1, 2, and 3 are shown in the left-most column of Fig. 17. Cell complexes and cycles were automatically computed using the mentioned HSF techniques, and are shown in the other two columns of this figure. The numbers of cycles are given by the formulas in Section 4, and are listed in the third row of Table 1. Visualizations use the program [24]. Further experiments were performed with fractal modifications of the Menger sponge. The initial structures used to generate these new fractals are as follows: Fig. 15. Left: hχreductions in the 0–1 HSF. Right: hχreductions in the 1–2 HSF. (For interpretation of the references to color in this figure caption, the reader is referred to the web version of this paper.) Fig. 16. Left: Remaining hχreductions for the construction of S 1 . HSF of S 1 . H. Molina-Abril et al. / Pattern Recognition 48 (2015) 1150–11601158