A Family of Partial Cubes with Minimal Fibonacci Dimension
Abstract
A partial cube is a graph that admits an isometric embedding into some hypercube . This implies that vertices of can be labeled with binary words of length in a way that the distance between two vertices in the graph corresponds to the Hamming distance between their labels. The minimum for which this embedding is possible is called the isometric dimension of , denoted . A Fibonacci cube is the partial cube obtained by deleting all the vertices in whose labels contain word as factor. It turns out that any partial cube can be always isometrically embedded also in a Fibonacci cube . The minimum is called the Fibonacci dimension of , denoted . In general, . Despite there is a quadratic algorithm to compute the isometric dimension of a graph, the problem of checking, for a given , whether is in general NP-complete. An important family of graphs for which this happens are the trees. We consider a kind of generalized Fibonacci cubes that were recently defined. They are the subgraphs of the hypercube that include only vertices that avoid words in a given set and are referred to as . We prove some conditions on the words in to obtain a family of partial cubes with minimal Fibonacci dimension equal to the isometric dimension.
Keywords and phrases:
Isometric sets of words, Hypercubes, Partial cubes, Isometric dimension, Generalized Fibonacci CubesCopyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Mathematics of computing Combinatorics on words ; Theory of computation Design and analysis of algorithms ; Theory of computation Formal languages and automata theoryFunding:
Partially Supported by INdAM-GNCS Project 2024, FARB Project ORSA240597 of University of Salerno, TEAMS Project and PNRR MUR Project PE0000013-FAIR University of Catania, FFR Fund University of Palermo, MUR Excellence Department Project MatMod@TOV, CUP E83C23000330006, Awarded to the Department of Mathematics, University of Rome Tor Vergata, “ACoMPA – Algorithmic and Combinatorial Methods for Pangenome Analysis” (CUP B73C24001050001) Funded by the NextGeneration EU Programme PNRR ECS00000017 Tuscany Health Ecosystem (Spoke 6).Editors:
Paola Bonizzoni and Veli MäkinenSeries and Publisher:

1 Introduction
The hypercube , also known as -dimensional cube, extends the concept of a cube into higher dimensions. It is an undirected graph with vertices corresponding to the binary strings of length that describe the corresponding positions in the -dimensional space. Then, the distances in this graph can be simply calculated by taking the Hamming distance (i.e. the number of bits in which they differ) between the corresponding strings.
A given undirected graph is a partial cube if it can be isometrically embedded into a hypercube. Or, in other words, if it admits a vertex-labeling scheme such that each vertex is labeled by a binary string in such a way that the distance between any two vertices equals the Hamming distance. Partial cubes have been shown to model a large variety of systems, from computational geometry to order theory, interconnection networks, and chemistry [23].
Partial cubes were characterized in 1973 by Djokovic [20] in terms of structural properties; in particular, he proved that partial cubes are bipartite graphs satisfying special properties on some classes of vertices. Later, in 1984, Winkler [35] gave a similar condition based on the existence of a special equivalence relation among the edges of the graph.
Not surprisingly, partial cubes, in general, admit more efficient algorithms than arbitrary graphs for several important problems including shortest paths and graph drawings. A quadratic algorithm for recognizing partial cubes was given by Eppstein [23] and is based on the computation of the Winkler relation’s classes. If the graph is a partial cube, Eppstein’s algorithm outputs one of the minimal length labelings for the vertices. It turns out that such minimal length is in fact the number of the Winkler equivalence classes on the set of graph edges.
In 1993, Hsu [24] introduced the Fibonacci cube as the subgraph of the hypercube that includes only the vertices corresponding to Fibonacci strings (i.e. strings with no factor ). As a consequence, the number of vertices of is the -th Fibonacci number, and the graph itself has a recursive definition. Besides the remarkable combinatorial properties, is also a partial cube, and therefore the distance between any pair of vertices coincides with the Hamming distance of their labels.
The Fibonacci dimension of a graph was introduced in 2011 by Cabello, Eppstein and Klavzar [14] as the smallest integer (denoted ) such that the graph admits an isometric embedding into the -dimensional Fibonacci cube . The authors take inspiration from the isometric dimension of a graph defined as the smallest integer (denoted ) such that can be isometrically embedded in the hypercube . The isometric dimension is finite if and only if is a partial cube and, in this case, it effectively corresponds to the number of equivalence classes of the Winkler relation. In the same paper, they show that a graph can be embedded in a Fibonacci Cube if and only if is a partial cube and proved the relation
Besides those bounds, they study which partial cubes have extremal Fibonacci dimension. Partial cubes whose Fibonacci dimension is as large as possible are fully characterized.
The opposite case is difficult to deal with; more precisely it is proved that it is NP-complete to decide whether the isometric and Fibonacci dimensions of a given graph are the same. In addition, they show, however, that if is a tree with vertices, then is a partial cube with .
In this paper, we present a class of graphs (partial cubes) with minimal Fibonacci dimension, namely graphs for which and coincide.
To introduce such graphs we do a step back to Fibonacci cubes. Inspired by those cubes in fact, in 2012, generalized Fibonacci cubes were introduced as the subgraphs of that include only the vertices associated to binary words that do not contain the word as a factor. It was proved that is an isometric subgraph of the hypercube if and only if satisfies some combinatorial conditions on the overlaps; in this case is referred to as a good word, later called also an isometric word [26, 28, 29, 32, 33]. The notion of isometric word combines the distance notion with the property that a word does not appear as a factor in other words. Note that this property is important in combinatorics as well as in the investigation on similarities, or distances, on DNA sequences, where the avoided factor is referred to as an absent or forbidden word [13, 16, 17, 18, 22]. The research on isometric words is still very active [9, 12, 21, 30, 31]. Furthermore, some generalizations have been proposed by enlarging the alphabet, by considering different edit distances, and by moving to two-dimensional words as in [1, 2, 5, 6, 7, 8, 10, 11, 4, 15]. Moreover, very recently in [3] the intersection of several graphs has been investigated in order to establish conditions for being isometric subgraphs of the hypercube . Note that this corresponds to take a set of words and consider the graph obtained from by deleting all the vertices whose labels contain some as factors.
In this paper we prove first that the isometric dimension of the partial cubes of the form is always , for any isometric word of length at least .
Moving on to sets, by definition, isometric sets generate isometric subgraphs (and, consequently, partial cubes) of , but non-isometric sets act differently from non-isometric words.
We present a set that is not isometric by showing that the graph is not an isometric subgraph of , but it is a partial cube since it can be embedded in and, more specifically. .
As the main result of the paper, we present a class of graphs of the form with and give sufficient conditions on to get partial cubes such that .
Finally, this class is compared with the other known family of graphs with minimal Fibonacci dimension, namely the family of trees. It turns out that the two families are incomparable under inclusion and have a non-empty intersection.
We conclude the paper with a glimpse into the future problems we plan to investigate.
2 Basic notation and results
In this section, we collect all the notation together with all the related results needed to present our main theorems, which combine properties on graphs and strings.
Isometric subgraphs and partial cubes
Let be a graph. The distance of two nodes , denoted by , is the length of the shortest path connecting and in . A subgraph of a (connected) graph is an isometric subgraph of if for any , .
Let two graphs. An isometric embedding of in is a map which preserves distances, i.e., for any , . If an isometric embedding of in does exist, then we say that can be isometrically embedded into and write . The symbol is used to indicate that an isometric embedding does exist.
Recall that, given two binary strings and , their Hamming distance, is the number of positions at which and differ.
The -hypercube, or binary -cube, , is a graph with vertices, each associated to a binary word of length , called its label. The label map, denoted by , of the -hypercube is based on the Hamming distance, i.e., it is such that two vertices and are adjacent if and only if . This implies that the distance between any two vertices and is simply given by the Hamming distances between the corresponding labels, i.e. .
A graph is a partial cube if can be isometrically embedded into a hypercube , for some . The relevant fact is that such isometric embedding makes inherit from a labeling of its vertices by strings in that makes the distance of the vertices in equal to the Hamming distance between their corresponding labels. Note that all the isometric subgraphs of the hypercubes are partial cubes by definition.
The Fibonacci cube of order is the subgraph of whose vertices are all binary words that do not contain the factor . It is well known that is an isometric subgraph of (cf. [27]). Therefore, the Fibonacci cubes are partial cubes.
Basic notation on words
Let be a finite alphabet. In this paper, the alphabet is , although many of the definitions and results can be stated and hold for a general alphabet. If , denotes the opposite of , i.e. if and vice versa. A word (or string) of length is , where are symbols in . Then, is the complement of , and is the mirror of . The set of all finite words over is denoted and the set of all words over of length is denoted .
Let denote the symbol of in position , i.e., . Then, , for , is a factor of that occurs in the interval . The prefix (resp. suffix) of of length , with is (resp. ). When then is an overlap of of length .
In the sequel, the notion of overlap with errors is also needed. A word has a -error overlap (-eo, for short) of length if and differ in two positions, namely, they have a Hamming distance equal to ; the two positions are called error positions. We say that has a -error overlap if has a -eo of length for some .
Given two words , is -free if does not contain as a factor; we also say that avoids .
Isometric words and sets
We now shortly report some recent results on isometric words (originally called good words) that are used to define special isometric subgraphs of the hypercubes (cf. [26, 28, 29, 32]).
Let be words of equal length and . A transformation from to is a sequence of words such that , , and for any , . Moreover, is -free if for any , the word is -free. This is the base for the following definition.
Definition 1.
A word is isometric if for any pair of -free words and , with , there exists an -free transformation from to . It is non-isometric otherwise.
A pair of -free words such that any transformation from to is not -free proves that is non-isometric and is called a pair of witnesses for ; the positions where and differ are called error positions. The minimal length of a word in a pair of witnesses for is called the index of , and denoted by .
Coming back to graphs and hypercubes we recall the following definition of Generalized Fibonacci cubes, or hypercubes avoiding a word, first introduced in [25].
Definition 2.
The -hypercube avoiding a word , denoted , is the subgraph of obtained by removing those vertices whose labels contain as a factor.
Note that, using this definition, the Fibonacci cube coincides with . Moreover, we assume implicitly that is still a labeled graph keeping the original labels of the hypercube from which it is derived.
Then, one immediately realizes the strict connection between isometric subgraphs of of type and isometric words. It holds that is an isometric subgraph of if and only if is isometric. Moreover, in [34], it is proved the non-obvious result that if is not isometric then for all , is not even a partial cube, i.e., does not isometrically embed into any with . These considerations lead to the following proposition.
Proposition 3.
The following statements are equivalent:
-
1.
is isometric
-
2.
for any , is an isometric subgraph of
-
3.
for any , isometrically embeds into .
Furthermore, note that if is a non-isometric word and is its index, then for any , , while for any , . Finally, remark that if is isometric, also its complement and its mirror are isometric. Consequently, also the graphs and (that can be also obtained from by, respectively, complementing or reversing all the labels) are isometric subgraphs of .
A further step in the generalization of Fibonacci cubes is done in [3] by introducing the notion of isometric set of words. In what follows, denotes a finite subset of . Then a word is -free, if does not contain any word in as a factor.
Definition 4.
Let be a finite set of words and be the length of a longest word in . Then, is isometric if for any pair of -free words, with , there exists a transformation from to such that all its intermediate words are -free.
A set is non-isometric if it is not isometric. If is non-isometric, a pair of witnesses for is a pair with , such that each transformation from to contains a word that is not -free.
Examples of isometric sets (cf. [3], [19]) are the sets , for any . Note that . As in the case of a single word (cf. [29] and [28]), it can be shown that the non-isometricity of a set is again connected to some properties on overlaps defined on a pair of (possible) different words in .
Definition 5.
Let with , . Then, has a -error overlap (or -eo) on of shift and length , with , , if distance .
Note that the existence of a -eo of on does not imply the existence of a -eo of on . In particular, if Definition 5 coincides with the classical definition of -eo of a word (cf. [29]).
Example 6.
Let and . Then has -eo on of shift and length and a -eo of shift and length . Instead, has no -eo on .
The following proposition, given in [29], characterizes isometric words.
Proposition 7.
A word is isometric if and only if has no -error overlap.
The proof of Proposition 7 is constructive. In fact, if has a -error overlap of shift , then the proof explicitly provides a “standard” pair of witnesses for . The pair is defined as or , in the case that is not -free. More exactly, it turns out that is not -free if and only if the -error overlap of satisfies the so-called (cf. [29]). Moreover, in [9], it is shown that this construction yields the pairs of witnesses of minimal distance and length. Let us recall the construction (see Fig. 1 for ).
Definition 8.
Let have a -error overlap of shift and error positions , with . Then,
-
is the word obtained from replacing by .
-
if is even and , then is the word obtained from replacing with , and by .
The words , , , and corresponding to the -error overlap of of shift are
-
and .
-
if is even, and .
The following theorem generalizes to any set an analogous result for sets of words of equal length in [3]. Its proof rephrases the other one and is here sketched for the sake of completeness.
Theorem 9.
Let . If is non-isometric, then there exist (possibly ) such that has a -eo on .
Proof.
Let be a non-isometric set. Consider a pair of witnesses for of minimal distance and its error positions, i.e. the positions where and differ. The minimality implies that the word obtained by changing any error position in contains the occurrence of a word of covering that error position and another one, since is -free. Therefore, there exist two error positions and that are covered by both the words of , say and , occurring after their change in . This gives the thesis.
The following definition extends Definition 2 from a single word to a set. The graphs will be referred to as generalized Fibonacci cubes, yet.
Definition 10.
The -hypercube avoiding a set , denoted , is the subgraph of obtained by removing those vertices that contain a word in as a factor.
Note that if , then , that is the intersection of the hypercubes avoiding each word in the set, respectively. Furthermore, also in this case we assume that vertices of the subgraph keep the labels they had in the whole hypercube . This immediately establishes the following correspondence between isometric sets of words and subgraphs of the hypercubes that avoid a set that are also isometric subgraphs.
Proposition 11.
Let and let be the length of a longest word in . The set is an isometric set of words iff for any , is an isometric subgraph of .
We conclude with an example of a non-isometric set that will be referred to in the results of the next section.
Example 12.
Let . is a non-isometric set. In fact, with and is a pair of witnesses for because any transformation from to meets either or . According to Proposition 11, is not an isometric subgraph of . Let be the vertex in labeled and be the one labeled . Referring to Fig. 2, one can see that , whereas .
Isometric and Fibonacci dimensions of a graph
In this last part of the section, we report some results from Cabello et al. [14] where Fibonacci dimension of a graph is first introduced and investigated. The isometric dimension of a graph , denoted by , is the smallest integer such that admits an isometric embedding into . If no such exists, . Therefore is finite if and only if is a partial cube.
Let be an isometric embedding of a graph into the hypercube . The embedding is redundant if there exists such that the labels of all vertices in have the same -th coordinate. It is irredundant otherwise. If an embedding is redundant, another embedding can be found into a lower-dimensional hypercube by omitting the redundant coordinate.
Let us recall the following result that will be largely used in the sequel.
Proposition 13.
Let be a graph. An isometric embedding is irredundant if and only if .
The authors then introduce the Fibonacci dimension of a graph , , as the smallest integer such that admits an isometric embedding into the Fibonacci cube , and set if there is no such . This is strictly related to the isometric dimension since it is shown that a graph isometrically embeds in some hypercube iff it isometrically embeds in some Fibonacci cube . Note that in general . They established upper and lower bounds as stated in the following proposition.
Proposition 14.
Let be a graph. Then is finite if and only if is finite. Moreover, .
In [14], graphs with maximal Fibonacci dimension have been fully characterized. While the algorithm to compute the isometric dimension of a graph is quadratic (cf. [23]), it is proved, instead, that deciding for a given graph whether or not is an NP-hard problem. In general, it is difficult to find graphs with “small” Fibonacci dimension. An important family of graphs with this property is the set of trees, for which they prove the following result.
Theorem 15.
For any tree , .
Note that trees are very special partial cubes since they have the maximal possible isometric dimension, namely equal to the number of edges. This property derives from the acyclicity and it is the one exploited to compute the Fibonacci dimension.
3 Isometric and Fibonacci Dimension of hypercubes avoiding words
The main result of this section is to present a new family of graphs with minimal Fibonacci dimension. We start by investigating the isometric and Fibonacci dimension of the graphs that are hypercubes avoiding a word or a set of words introduced previously. It is worth to note that any subgraph of the -hypercube can be trivially viewed as the hypercube avoiding the set of all the -length words that label the omitted vertices. Then, in principle, any partial cube is isometric to a hypercube that avoids a set of words. Here we restrict to the case when has one or two elements.
Let us introduce some notation. For a set of words, let be the set of words of length avoiding , that is, . In the case of , we will simply write . The set is redundant at position , for some , if all the strings in have the same symbol at position . It is redundant if there exists such that is redundant at position . It is irredundant otherwise.
Remark 16.
Note that if is an isometric subgraph of , then the identity function is an isometric embedding of into and, moreover, it is irredundant if an only if is irredundant. In fact, note that .
Let us first consider hypercubes avoiding a single word .
Proposition 17.
Let , . If then is a partial cube with . If then is a partial cube with .
Proof.
Let . Consider the two different cases. If then either or . If (, resp.) has a single vertex labeled (, resp.). Then isometrically embeds in and then . Let . If then isometrically embeds in and in , and . The same holds for . If then and the edges connect nodes with labels and , for any , respectively. Therefore, is a chain of nodes, i.e. a special case of a tree, and by Theorem 15 . The same result holds for .
Proposition 17 shows the isometric and Fibonacci dimensions of for . In what follows, the other cases are considered, i.e. words of length at least 3.
The hypercube avoiding an isometric word in isometrically embeds in , but, in principle, its isometric dimension could be smaller than . Nevertheless, the following proposition shows that this is never the case.
Proposition 18.
Let be a word with . If is an isometric word, then, for any , is a partial cube with .
Proof.
Let . Suppose isometric and let . If , then and therefore .
For , since is isometric, the identity function is an isometric embedding of into . Therefore, from Proposition 13, it suffices to show that is irredundant or, equivalently, in view of Remark 16, that is irredundant. Then we proceed by induction on .
For the basis, if , then and, therefore, . Since , it holds ; hence, there is no such that all the strings in have the same symbol at position , i.e. is irredundant.
Suppose now that is irredundant and let us prove that is irredundant. Let , with and . Now, for any , consider two words, say , such that . Then, the words and are in and , for any . Moreover, the words and are in and . Hence is irredundant.
Remark 19.
Note that, if is a non-isometric word, with and index , then the equality , proved in the previous proposition, is still valid for any . Indeed, for any , the identity function is an isometric embedding of into and a reasoning, similar to the one used in Proposition 18, shows that is a partial cube and .
After having determined the isometric dimension of a hypercube avoiding an isometric word, let us consider its Fibonacci dimension. Recall that the computation of of a partial cube is a NP-hard problem in the general case. By definition, . Nevertheless, there is no evident relation between the and the that indeed can be strictly greater than , as in the next example.
Example 20.
Let and consider the graph . Since is isometric, then, by Proposition 18, . In order to compute we need to find the minimum such that can be embedded into the Fibonacci cube . Recall that the number of vertices of is the -th Fibonacci number. Note that has vertices; then it surely cannot be embedded in that has only vertices. More precisely, the smallest Fibonacci cube to be considered is that has vertices, then .
We experimentally checked that the same argument based on counting vertices can be applied also to all graphs with . Then, we expect that for all .
In the next example we come back to Example 12 where the word is considered together with .
Example 21.
Let and consider the graph . In Example 12 it is proved that cannot be isometrically embedded in . Nevertheless, it is a partial cube. In fact Eppstein’s algorithm in [23] produces the isometric embedding of in shown in Fig. 3(b), yielding . Moreover, also since the map shown in Fig. 3(c) is an isometric embedding of in . Then, for this partial cube, we have that .
The previous example is emblematic. The set is non-isometric; then the graph does not isometrically embed in , but it isometrically embeds in . This proves that “sets” and “single words” have different properties regarding the non-isometricity. (Recall that in [32] it is shown that a word is isometric if and only if is a partial cube). Another interesting fact is that . In the next section we will introduce a family of sets for some word for which this always holds.
3.1 Main results
In this section we investigate the isometric and Fibonacci dimensions of hypercubes avoiding a set of words in the special case that . Afterwards, the analysis is restricted to the sets of cardinality , namely , for some word .
Theorem 22.
Let , with . Let be the length of a longest word in and let . If is an isometric set then is a partial cube with ; moreover, iff is irredundant.
Proof.
Let . Since , then and this implies that, for any , .
Moreover, both and are isometric subgraphs of . Hence, and . So . Therefore, for any , , i.e., is an isometric subgraph of and .
Corollary 23.
Let be a set with . If is isometric and , then .
Let us now show a characterization of sets which are isometric (Theorem 24) and a characterization of sets for which is irredundant (Theorem 25).
Theorem 24.
A set is isometric if and only if
-
1.
is a factor of or
-
2.
and is isometric or
-
3.
, is non-isometric and any pair of witnesses of minimal distance for is such that is a factor of or .
Proof.
Let be an isometric set and suppose, by contradiction, that is -free and, moreover, or is non-isometric and any pair of witnesses for of minimal distance is such that and are -free.
Now, if is -free, is non-isometric and any pair of witnesses for of minimal distance is such that and are -free, then is also a pair of witnesses for contradicting isometric.
If is -free, and , three different cases must be considered: or or , for some . We will show that, in any case, a pair of witnesses for can be constructed, contradicting isometric.
If with , then the pair is a pair of witnesses for . In fact, and are -free, since they have the same length as , but differ from it, and they are -free, since is -free. Moreover, no -free transformation exists from to . In fact, if the in the first position is changed into , then occurs as a factor, if the in the second position is changed into , then occurs as a factor. Similar arguments can be used to obtain a pair of witnesses for in the case or .
For the converse, if is a factor of , then . Since isometrically embeds into , is isometric.
Suppose, now, that condition 2. of the statement holds and that, by contradiction, is non-isometric. Note that non-isometric implies that is -free.
Let be a pair of witnesses of minimal distance for and consider as in the proof of Theorem 9. Since is isometric, it cannot be . Moreover, the case cannot happen. If , we have three cases and we will show, in any case, a contradiction with the hypothesis . Indeed, if the 2-error overlap involves the first two characters of , then with . Moreover otherwise would be not -free. Then : a contradiction. If the overlap involves the last two positions of , for the same reason : a contradiction. If the overlap involves two consecutive characters inside of , then and, as before, cannot end by (otherwise u is not -free) and cannot begin by (otherwise would not be -free). Then with is a contradiction again.
At last, suppose that condition 3. of the statement holds and that, by contradiction, is non-isometric. As before, let be a pair of witnesses of minimal distance for and consider as in the proof of Theorem 9. If , let be the pair of witnesses of minimal distance for constructed on this 2-error overlap as in Definition 8. Then (, resp.) is a factor of (, resp.) and then and are -free. This contradicts the hypothesis on the witnesses of minimal distance for . The case can not happen. Moreover, the case gives a contradiction with the hypothesis , as shown before.
Theorem 25.
Let , with , and . Then, is redundant if and only if .
Proof.
Let , and .
If then and it is redundant at position .
Conversely, suppose that is redundant at position , for some . Consider and partition it in where and . Our goal is to prove that if or then . Note that if and only if any word in has as a factor; analogously for the symmetric case.
Let us first prove that the case cannot hold. In fact, the only factor shared by all words in is against the hypothesis that . Then, .
Let us now show that and . Indeed, the only factor shared by all words in when (, resp.) is (, resp.) against the hypothesis that .
Finally, let us show that when , the only factor shared by all words in is . First observe that occurs in all words in at position . Further, no other factor is shared by words in . In fact, contains the word whose factors of length greater than or equal contain two consecutive , whereas no such factor occurs in the word of which belongs to . The next example considers the case of the word that is involved in the previous theorem.
Example 26.
Consider the word and the set . For any , the subgraph has vertices which form a cycle. Their labels are in . Hence, for any , is a partial cube with and .
The characterizations shown in Theorems 24 and 25 allow to specify Theorem 22 and provide a family of partial cubes with minimal Fibonacci dimension, i.e., equal to the isometric dimension.
Theorem 27.
Let be a word such that and satisfies conditions 1., 2., or 3. of Theorem 24. Then, for any , is a partial cube with .
Note that the previous Example 21 showed the graph that does not satisfy the hypotheses of Theorem 27 and it is a partial cube with but .
Let us apply Theorem 27 and show in the next example a graph which is a partial cube with .
Example 28.
Let ,
, and consider , as in Figure 4.
According to Theorem 27, is a partial cube with
because and
satisfies the condition 2. in Theorem 24.
More specifically,
by Theorem 24, is isometric.
In fact, and is non-isometric. Moreover, the pairs of witnesses for of minimal distance are and , and both pairs contain a word that is not 11-free.
Furthermore, and then, according to Theorem 25,
is irredundant.
Theorem 27 shows a new family of subgraphs of the hypercube with minimal Fibonacci dimension, i.e., equal to the isometric dimension. Recall that also the family of trees shares the same property. Let us compare these two families in the following remark. Let be the tree composed of a root with children.
Remark 29.
Consider the family of partial cubes with , coming from Theorem 27, and compare it with the family of trees. First, neither of the two families is included in the other one. In fact, in Example 28 is not a tree, whereas the tree cannot be described as a graph of the form ; recall that . In fact, there is no such that coincides with . The only vertex of degree in is the one labeled , but the vertices at distance from it do not share any factor that is not shared by some other vertex. Finally, the tree is an example of graph belonging to both families, because it coincides with .
The considerations made for can be generalized to any higher . Therefore, one has that the trees , with , cannot be described as . However, considering sets with more than two words, the following result holds.
Proposition 30.
For any , let . Then, and .
Proof.
It suffices to note that, by removing from the vertices whose labels contain words in , the only remaining vertices are those whose labels contain, at most, one occurrence of the symbol , i.e. . Therefore, .
4 Conclusions and Future Work
In this paper, generalized Fibonacci cubes are studied in the context of the computation of their isometric and Fibonacci dimensions. It is proved that, if is an isometric word, then the isometric dimension of the graph is always equal to . Moreover, we conjecture that for this type of graphs, the Fibonacci dimension never equals the isometric dimension.
By considering subgraphs of the hypercube of type , where is a set of words, the study has been restricted to the special case of graphs and it is shown that when they isometrically embed in then they have minimal Fibonacci dimension, namely equal to their isometric dimension, except for . The main results provide sufficient conditions on for to be a partial cube and, accordingly, characterize the announced family. Finally, this family is compared with the family of tree graphs with which it shares the property of minimal Fibonacci dimension.
Also an emblematic example is given, namely the graph , that has several peculiarities. In fact, it does not isometrically embed into ; therefore, it does not belong to the above-defined family. Nevertheless, it isometrically embeds in and ; therefore, it is a partial cube with equal isometric and Fibonacci dimension, equal to . We believe that this kind of graphs deserves to be investigated in this setting of understanding properties of graphs with minimal Fibonacci dimension.
References
- [1] Marcella Anselmo, Giuseppa Castiglione, Manuela Flores, Dora Giammarresi, Maria Madonia, and Sabrina Mantaci. Hypercubes and isometric words based on swap and mismatch distance. In Descriptional Complexity of Formal Systems. DCFS23, volume 13918 of Lect. Notes Comput. Sci., pages 21–35. Springer Nature, 2023. doi:10.1007/978-3-031-34326-1_2.
- [2] Marcella Anselmo, Giuseppa Castiglione, Manuela Flores, Dora Giammarresi, Maria Madonia, and Sabrina Mantaci. Isometric words based on swap and mismatch distance. In Developments in Language Theory. DLT23, volume 13911 of Lect. Notes Comput. Sci., pages 23–35. Springer Nature, 2023. doi:10.1007/978-3-031-33264-7_3.
- [3] Marcella Anselmo, Giuseppa Castiglione, Manuela Flores, Dora Giammarresi, Maria Madonia, and Sabrina Mantaci. Isometric sets of words and generalizations of the fibonacci cubes. In Computability in Europe. CIE24, volume LNCS 14773 of Lect. Notes Comput. Sci., pages 1–14. Springer, 2024. doi:10.1007/978-3-031-64309-5_35.
- [4] Marcella Anselmo, Giuseppa Castiglione, Manuela Flores, Dora Giammarresi, Maria Madonia, and Sabrina Mantaci. Characterization of isometric words based on swap and mismatch distance. International Journal of Foundations of Computer Science, 0(0):1–25, 2025. doi:10.1142/S0129054125430051.
- [5] Marcella Anselmo, Manuela Flores, and Maria Madonia. Quaternary -cubes and isometric words. In Combinatorics on Words, volume 12842 of Lect. Notes Comput. Sci., pages 27–39, 2021. doi:10.1007/978-3-030-85088-3_3.
- [6] Marcella Anselmo, Manuela Flores, and Maria Madonia. Fun slot machines and transformations of words avoiding factors. In Fun with Algorithms, volume 226 of LIPIcs, pages 4:1–4:15, 2022. doi:10.4230/LIPIcs.FUN.2022.4.
- [7] Marcella Anselmo, Manuela Flores, and Maria Madonia. On k-ary n-cubes and isometric words. Theor. Comput. Sci., 938:50–64, 2022. doi:10.1016/j.tcs.2022.10.007.
- [8] Marcella Anselmo, Manuela Flores, and Maria Madonia. Density of Ham- and Lee- non-isometric -ary words. In ICTCS’23 Italian Conference on Theor. Comput. Sci., volume 3587 of CEUR Workshop Proceedings, pages 116–128, 2023. URL: https://ceur-ws.org/Vol-3587/3914.pdf.
- [9] Marcella Anselmo, Manuela Flores, and Maria Madonia. Computing the index of non-isometric -ary words with Hamming and Lee distance. Computability, IOS press, 13(3-4):199–222, 2024. doi:10.3233/COM-230441.
- [10] Marcella Anselmo, Manuela Flores, and Maria Madonia. Density of k-ary words with 0, 1, 2 - error overlaps. Theor. Comput. Sci., 1025:114958, 2025. doi:10.1016/j.tcs.2024.114958.
- [11] Marcella Anselmo, Dora Giammarresi, Maria Madonia, and Carla Selmi. Bad pictures: Some structural properties related to overlaps. In Descriptional Complexity of Formal Systems. DCFS20, volume 12442 of Lect. Notes Comput. Sci., pages 13–25, 2020. doi:10.1007/978-3-030-62536-8_2.
- [12] Jernej Azarija, Sandi Klavžar, Jaehun Lee, Jay Pantone, and Yoomi Rho. On isomorphism classes of generalized Fibonacci cubes. Eur. J. Comb., 51:372–379, 2016. doi:10.1016/j.ejc.2015.05.011.
- [13] Marie-Pierre Béal, Filippo Mignosi, and Antonio Restivo. Minimal forbidden words and symbolic dynamics. In STACS 1996, volume 1046 of Lect. Notes Comput. Sci., pages 555–566, 1996. doi:10.1007/3-540-60922-9_45.
- [14] Sergio Cabello, David Eppstein, and Sandi Klavzar. The Fibonacci dimension of a graph. Electron. J. Comb., 18(1), 2011. doi:10.37236/542.
- [15] Giuseppa Castiglione, Manuela Flores, and Dora Giammarresi. Isometric words and edit distance: Main notions and new variations. In Cellular Automata and Discrete Complex Systems. AUTOMATA 2023, volume 14152 of Lect. Notes Comput. Sci., pages 6–13. Springer, 2023. doi:10.1007/978-3-031-42250-8_1.
- [16] Giuseppa Castiglione, Sabrina Mantaci, S. Leonardo Pizzuto, and Antonio Restivo. A comparison between similarity measures based on minimal absent words: an experimental approach. In ICTCS’24 Italian Conference on Theor. Comput. Sci., volume 3811 of CEUR Workshop Proceedings, pages 95–105, 2024. URL: https://ceur-ws.org/Vol-3811/paper140.pdf.
- [17] Giuseppa Castiglione, Sabrina Mantaci, and Antonio Restivo. Some investigations on similarity measures based on absent words. Fundam. Informaticae, 171(1-4):97–112, 2019. doi:10.3233/FI-2020-1874.
- [18] Panagiotis Charalampopoulos, Maxime Crochemore, Gabriele Fici, Robert Mercas, and Solon P. Pissis. Alignment-free sequence comparison using absent words. Inf. and Comput., 262:57–68, 2018. doi:10.1016/j.ic.2018.06.002.
- [19] Pietro Codara and Ottavio M. D’Antona. Generalized Fibonacci and Lucas cubes arising from powers of paths and cycles. Discrete Math., 339(1):270–282, 2016. doi:10.1016/j.disc.2015.08.012.
- [20] Dragomir Ž. Djoković. Distance-preserving subgraphs of hypercubes. Journal of Combinatorial Theory, Series B, 14(3):263–267, 1973. doi:10.1016/0095-8956(73)90010-5.
- [21] Chiara Epifanio, Luca Forlizzi, Francesca Marzi, Filippo Mignosi, Giuseppe Placidi, and Matteo Spezialetti. On the k-hamming and k-edit distances. In ICTCS’23 Italian Conference on Theor. Comput. Sci., volume 3587 of CEUR Workshop Proceedings, pages 143–156, 2023. URL: https://ceur-ws.org/Vol-3587/8136.pdf.
- [22] Chiara Epifanio, Alessandra Gabriele, Filippo Mignosi, Antonio Restivo, and Marinella Sciortino. Languages with mismatches. Theor. Comput. Sci., 385(1):152–166, 2007. doi:10.1016/j.tcs.2007.06.006.
- [23] David Eppstein. Recognizing partial cubes in quadratic time. J. Graph Algorithms Appl., 15(2):269–293, 2011. doi:10.7155/jgaa.00226.
- [24] Wen-Jing Hsu. Fibonacci cubes-a new interconnection topology. IEEE Transactions on Parallel and Distributed Systems, 4(1):3–12, 1993. doi:10.1109/71.205649.
- [25] Aleksandar Ilić, Sandi Klavžar, and Yoomi Rho. Generalized Fibonacci cubes. Discrete Math., 312(1):2–11, 2012. doi:10.1016/j.disc.2011.02.015.
- [26] Aleksandar Ilić, Sandi Klavžar, and Yoomi Rho. The index of a binary word. Theor. Comput. Sci., 452:100–106, 2012. doi:10.1016/j.tcs.2012.05.025.
- [27] Sandi Klavžar. Structure of Fibonacci cubes: A survey. J. Comb. Optim., 25(4):505–522, 2013. doi:10.1007/s10878-011-9433-z.
- [28] Sandi Klavžar and Sergey V. Shpectorov. Asymptotic number of isometric generalized Fibonacci cubes. Eur. J. Comb., 33(2):220–226, 2012. doi:10.1016/j.ejc.2011.10.001.
- [29] Jianxin Wei. The structures of bad words. Eur. J. Comb., 59:204–214, 2017. doi:10.1016/j.ejc.2016.05.003.
- [30] Jianxin Wei. Proof of a conjecture on 2-isometric words. Theor. Comput. Sci., 855:68–73, 2021. doi:10.1016/j.tcs.2020.11.026.
- [31] Jianxin Wei, Yujun Yang, and Guangfu Wang. Circular embeddability of isometric words. Discrete Math., 343(10):112024, 2020. doi:10.1016/j.disc.2020.112024.
- [32] Jianxin Wei, Yujun Yang, and Xuena Zhu. A characterization of non-isometric binary words. Eur. J. Comb., 78:121–133, 2019. doi:10.1016/j.ejc.2019.02.001.
- [33] Jianxin Wei and Heping Zhang. Proofs of two conjectures on generalized Fibonacci cubes. Eur. J. Comb., 51:419–432, 2016. doi:10.1016/j.ejc.2015.07.018.
- [34] Jianxin Wei and Heping Zhang. A negative answer to a problem on generalized fibonacci cubes. Discrete Math., 340(2):81–86, 2017. doi:10.1016/j.disc.2016.07.016.
- [35] Peter M. Winkler. Isometric embedding in products of complete graphs. Discrete Applied Mathematics, 7(2):221–225, 1984. doi:10.1016/0166-218X(84)90069-6.