Manuscript Offprint
arXiv:2611.09136Shortest Synchronizing Words on Product Automata
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
We consider some operations on finite automata graphs, in particular various product, union and merge operations, and investigate how they relate to the parameter rt, the length of a shortest synchronizing word. We derive some lower and upper bounds for the operations that we study. We also examine several classes of automata (for instance, partially ordered, commutative or idempotent automata) that are preserved under these operations and show in which way the parameter rt behaves in these automata classes. Also, we consider automata classes that can be constructed by combining automata from better known classes; in particular, these new classes of automata will also satisfy the bound of the famous Černý conjecture. This also motivates us to study even more closure properties. In particular, we show that certain automata classes related to synchronization form pseudo-varieties. We also commence a similar study concerning the length of shortest homing sequences of Mealy automata.
Keywords: Automata graph operations, synchronizing words, homing sequences
1. Introduction
The notion of a synchronizing word (also known as a reset word) brings along one of the most intriguing open questions of (combinatorial) automata theory, namely the famous Černý conjecture, see [7, 8, 37, 39, 21].¹ In this context, the length of the shortest synchronizing word is an interesting parameter that can be associated to a deterministic finite automaton. This parameter has also been studied from the perspective of computational complexity, e.g., showing NP-completeness for the
© Henning Fernau: 0000-0002-4444-3220
¹A Special Issue of the Journal of Automata, Languages and Combinatorics was dedicated to this conjecture in 2019, see [39].
associated decision problem in [28, 13, 19] (in chronological order), or studying approximability or parameterized tractability in [3, 14, 15, 17, 41]. As testified by the related so-called road coloring problem (also see [36]) or also in [2, 26], one can look at this problem also from the point of view of graph theory. In graph theory, parameters are not only studied from the viewpoint of complexity, but it is also studied how they 'behave' when certain operations are applied to the graphs. We will commence such a study for the parameter "length of the shortest synchronizing word", also known as "reset threshold", in this paper, focusing on three types of product operation on automata, a union operation and one specific merging operation. We will show that the maximum of the lengths of a shortest synchronizing word and its sum, respectively, of the two automata given as input to the automaton graph operation form lower respectively upper bounds for the length of a shortest synchronizing word of the automaton obtained by this operation. While some of these results have been stated before, we are not aware of a systematic study of these graph-theoretically inspired operations. We also look at certain subclasses of finite automata (like partially ordered or commutative) to improve on the obtained bounds for our parameter in these situations. Sometimes, the mentioned lower and upper bounds can be attained. We also show that by using these operations, we can arrive at super-classes where we know that the reset threshold is linearly bounded in the number of states. We are not aware of previous studies of such classes. Finally, we consider the question how these studies transfer to the parameter "length of the shortest homing sequence" that can be related to Mealy automata.
One further motivation comes from the Černý conjecture itself: if one likes to find families of automata that are even very slowly synchronizable in the sense that they might refute the conjecture, then one can restrict one's search to automata that cannot be further decomposed into automata in the sense that their product or union or merger yields , as the linear nature of the mentioned upper bounds would mean that at least one of or would be even more slowly synchronizable. In particular when searching (possibly with the help of computers) for at least one refutation of the Černý conjecture, it suffices to consider automata that are indecomposable in the sense we described. Even if one proves the Černý conjecture one day, our approach is still meaningful, as we could then try to find large, deterministically describable classes of finite automata that allow for a linear reset threshold, as explained above. In view of the practical motivations behind the notion of synchronizing words, having such a guaranteed linear bound, i.e., really short synchronizing words, could be helpful and the question when this is possible is a natural one.
When discussing specific classes of automata, we will also prove that some of them, which are related to synchronizability, are (pseudo-)varieties, see [5, 12] giving a further link between questions on synchronizing words and algebraic automata theory.
In a randomized setting, it is known that for binary alphabets, the length of a shortest synchronizing word of a randomly drawn DFA is growing only roughly like with the number of automata states, as shown rather recently in [9, 24], improving on earlier works [4, 25].
For a finite non-empty set (also called an alphabet), denotes the free monoid generated by with the empty word as its neutral element; the operation is called concatenation and usually denoted by or simply by juxtaposition. Elements of are called words (over ).
Throughout this paper, we consider deterministic complete finite semi-automata that can be specified as , where is the finite set of states, is the input alphabet, and is the total transition function. For simplicity, we refer to such an automaton as a DFA. As usual, the transition function can be extended to by defining for any , and by setting for words of length at least one. The function can be further extended to by setting .
A DFA is called synchronizable if for some word that is known as a synchronizing word. We use to denote the language of synchronizing words of . Let denote the length of the shortest synchronizing word of the DFA . For simplicity, we set if and only if is not synchronizable. A state is called a sink state if for all . A DFA with a sink state which is reachable from any other state is also called a 0-automaton. It is well-known that 0-automata are synchronizable.
To any DFA , one can associate its automaton graph , where the edge relation is defined by for some . A state is called reachable if for each , where denotes the reflexive-transitive closure of the binary relation . If , then should denote the DFA with unary input alphabet whose transition function is obtained from by restriction. Hence, is a graph where all vertices have outdegree 1. Occasionally, we lift this notation to subalphabets , writing . If we denote by the graph obtained from and with common vertex set and edge set , then . As usual, we write if the two graphs are isomorphic.
Let and be two DFA. Then, describes the product automaton, with and for . This notion corresponds to the one introduced in [10, Chapter II] and is also known as direct product. Notice that corresponds to the pair automaton that is important in the theory of synchronizing words. Namely, is synchronizable if and only if a state of the form is reachable from any state , in by using the same word.
There is an alternative way how to define the product of two automata. Now, let and be two DFA with two possibly different input alphabets and let . Then, describes a 2-tape product automaton, reading in parallel from two input tapes, and for .
If in addition, , we can also define the sequential 2-tape product automaton with , , and for and for . Sometimes, we refer to as the box (product) operation. Finally, if additionally , we can even consider the union automaton with and if for , with being the union operation.
There is a different interpretation of these three automata products in terms of automaton graphs. Namely, first recall two graph products, each working on two graphs and :
- Kronecker product
- Cartesian product
By definition, we can observe the following two interrelations when looking at the automata graphs:
Proposition 1. Let and be two DFA. Then, for all , .
Proof. Consider the situation described in the statement. Moreover, let . Observe that the state set of equals the vertex set of . By definition, for all , , i.e., is an arc in if and only if is an arc in if and only if is an arc in and is an arc in if and only if is an arc in .
With a similar argument, one can prove the following two propositions.
Proposition 2. Let and be two DFA. Then, for all and , .
Proposition 3. Let and be two DFA, with . Then, for all and ,
Less common is the graph union operation of graphs with a common vertex set. But clearly, one can define for graphs and . Then, the next statement is only a small observation but added for reasons of completeness.
Proposition 4. Let and be two DFA, with and . Then, .
When discussing special classes of automata, we will also prove that some of them connected to synchronizability are varieties. Hence, we now introduce the corresponding notions. A class of automata with the same input alphabet is called a variety if it is closed under taking sub-automata, factor-automata and direct products. A subset of states is called invariant in an automaton if for each . In this case, we can define the sub-automaton of , where is a restriction of to the set . A partition of states called a congruence of if, for all and , there is a subset such that . In this case, we can define the factor-automaton of , where if . It is well known and easy to prove that the class SYN of synchronizable automata forms a variety.
3. General Results
We will first study the product operation between automata concerning the shortest length of synchronizing words for DFA. As this operation has been studied before in [27], the cited paper contains the first part of Lemma 5 and the second inequality of Proposition 7 in its Section 5.
Lemma 5. Let and be two DFA. is synchronizable if and only if both and are synchronizable. More precisely, .
Proof. If is synchronizable, then there exists a word such that is a singleton set, i.e., there exist and with . By definition of , this means that and , i.e., is also a synchronizing word both for and for .
Conversely, if and are synchronizable, then there are words and . Then and so this intersection is not empty. Let . Then by definition of , we see that is a synchronizing word of .
Looking at the proof of the preceding lemma, we can easily conclude:
Lemma 6. Let and be two DFA. If is a synchronizing word for and if is a synchronizing word for , then their concatenation is a synchronizing word for .
This more explicit formulation immediately entails both upper and lower bounds on the lengths of shortest synchronizing words of in relation to this parameter for and :
Proposition 7. .
Proof. By the considerations above, it is clear that these inequalities are true if and are synchronizable. If, say, is not synchronizable, then and hence both and are . However, as is not synchronizable, also is not synchronizable, so that also holds.
These bounds are best possible in general, as shown by the following two simple examples.
Example 8. Let and define with for . For , . Namely, and are isomorphic.
Example 9. Let and define with and for , as well as with and for . For , , as we always need occurrences of to synchronize the -part and occurrences of to synchronize the -part in any synchronizing word for ; in fact, any word of length that is built in this way is a shortest synchronizing word for .
Next, we look at the product operation between automata concerning the shortest length of synchronizing words for DFA. In the following, we will sometimes use the natural embedding morphism from the free monoid into the product monoid .
Lemma 10. Let and be two DFA. is synchronizable if and only if both and are synchronizable.
Proof. If (with ) is synchronizable, then there exists a word such that is a singleton set, i.e., there exist and with . By definition of , this means that and , where i.e., is also a synchronizing word for , with .
Conversely, if and are synchronizable, then there are words and such that and for appropriate and . Without loss of generality, assume that . Pick arbitrarily and set . Then, there is a unique word . By definition of , this means that , i.e., is a synchronizing word of .
By the construction of the previous lemma, we can conclude:
Lemma 11. Let and be two DFA.
(i) If is a synchronizing word for , then is a synchronizing word for and is a synchronizing word for .
(II) If is a synchronizing word for and if is a synchronizing word for , then we find:
• if and if , then or
is a synchronizing word for .
Proposition 12. .
Notice that this is the lower bound that we obtained in Proposition 7. This could be connected from another perspective by looking at another operation, namely a restricted form of homomorphisms. The proof of the following assertion is obvious.
Proposition 13. Let and be two DFA with the same state set . Let be a mapping that we can interpret as a homomorphism mapping words over to words over . Further, assume that and are compatible in the following sense: Whenever , then for any and . Then, we can state:
(i) If is a synchronizing word of , then is a synchronizing word of .
(ii) If is synchronizable, then is synchronizable.
(iii) .
Notice that one can interpret the case when is obtained from by removing some letters (and the accordingly labeled transitions) and then taking as the natural inclusion embedding as a special case of this proposition.
Now, let (as in Example 8). Consider two arbitrary unary DFA and . Now, consider with . As is a singleton set, is bijective. Then, and are compatible in the sense of Proposition 13. Considering the inverse instead, one sees that also and are compatible in the sense of Proposition 13. This reasoning allows us to generalize Example 8 as follows:
Proposition 14. Let and be two unary DFA, i.e., . Then,
Let us now turn towards the sequential 2-tape automaton product and the union automaton. Now, the situation is profoundly different from that of the other two products that we examined.
Proposition 15. Let and be two DFA with . Setting , , let . Then,
Moreover, and are synchronizable if and only if is synchronizable.
Proof. If is a synchronizing word for (with ), then is a synchronizing word for . Moreover, if is a synchronizing word for , then consider the homomorphisms (for ) with if and if .
Then, is a synchronizing word for (with ). This shows all claims.
Proposition 16. Let and be two DFA with and . Setting , , let . Then,
Hence, if and are synchronizable, then is synchronizable. However, the converse implication need not be true.
Proof. If is a synchronizing word for (with ), then is a synchronizing word for . This observation proves all claims but the last one. Consider with and , and with and . Obviously, neither nor is synchronizable. However, , as testified by the synchronizing word . Namely, considering the power set automaton of , the letter will lead the state into and then will lead into as a synchronizing state.
4. Results on Special Classes of Automata
We will discuss commutative, partially ordered, and simple idempotent automata in different subsections. In connection with special classes of automata, it is also interesting to investigate if such a class is closed under the operations that we study.
In this context, the following observations are useful.
Proposition 17. If and are DFA, then the automaton graph is a subgraph of .
Proof. By definition, the state sets of and of coincide, and hence the vertex sets of and are equal to . By definition, if and only if for some letter , and . By definition, this means that there is a transition labeled from to in , i.e., .
4.1. Partially Ordered Automata
A DFA is called partially ordered if the only possibly occurring cycles in the automaton graph are self-loops. In other words, is partially ordered if and only if the transitive closure is a partial ordering on . Example 9 gives an example of a partially ordered DFA.
Theorem 18. Let and be DFA. Then, and are partially ordered if and only if (with ) and are partially ordered.
Proof. First assume that is partially ordered. By Proposition 17, it suffices to prove that is partially ordered, because a non-trivial cycle in would be also contained in . Assume that contains a cycle that is not a self-loop. Let denote the transition function of . Hence, there are states (with ) and symbol pairs such that , for , with if and if . By definition of , this means that and that for . Therefore, both and have a cycle. Now observe that if both these cycles were self-loops, then also the cycle in that we start with would be a self-loop, contradicting our assumption.
For the converse direction, by Proposition 17, it suffices to prove that if is partially ordered, then and are partially ordered, where . We again use contraposition. Without loss of generality, assume that contains a non-trivial cycle. This means that there is a word of length at least two such that for some , but no proper factor of satisfies . Consider now the auxiliary graph obtained from by having . As can be viewed as the automaton graph of a DFA over the one-letter alphabet , we know that is a collection of directed (possible trivial) cycles with paths leading into these cycles. Observe that these cycles always correspond to non-trivial cycles in . Let be a directed cycle in . Let . Then,
is a cycle in .
Corollary 19. The family of partially ordered DFA is closed under the product operations and .
Theorem 20. Let and be DFA with . Then, and are partially ordered if and only if is partially ordered.
Proof. Let with and . If contains a non-trivial cycle, then there is a word and pairwise different states such that for and . By definition of , for any , for and . Hence, contains a non-trivial cycle. Similarly, one sees that if is not partially ordered, then is not partially ordered. Conversely, if is not partially ordered, then there is a word with that drives through pairwise different states. Consider the morphism that maps to for and maps letters from to the empty word. Similarly, only preserves letters from . Observe that describes a(nother) non-trivial cycle in . If , then this cycle cannot be non-trivial. But if , then describes a non-trivial cycle in , and similarly, if , then describes a non-trivial cycle in . Hence, if is not partially ordered, then one of or is not partially ordered.
Corollary 21. The family of partially ordered DFA is closed under the operation .
The simple examples with and with show that we get the following non-closure result, because and are partially ordered, while is not.
Proposition 22. The family of partially ordered DFA is not closed under the union operation .
The following statement was already proven in [34] and in other terms in [32]. For completeness, we give a simpler proof.
Proposition 23. If is a synchronizable partially ordered DFA, then .
Proof. We will prove by induction on . For , the proposition is obvious. Let be a synchronizable partially ordered DFA, where , and be the maximal state in . Then the subset of states will be invariant. By the inductive hypothesis, the subautomaton possesses a synchronizing word of length . Let for some , then . Thus the word will be a synchronizing word for of length and the proposition is proven.
Already in the case of unary automata, for any number , one can find an -state automaton (with ) such that , because the upper bound of Proposition 23 is attained in the unary case if the unique cycle is a self-loop, i.e., there is a path of length leading to the synchronizing state, and we can find by shortening this cycle and add further states leading to the synchronizing state in one step to reach the required number of states.
By combining this idea with the construction of Example 9, we obtain the following supplement to Proposition 7:
Proposition 24. For any numbers and any number with , there exist partially ordered DFA and with and such that .
Now we will prove a quite general statement, from which it will follow that partially ordered automata form a variety. Recall that a class of finite monoids is called a variety if it closed under forming finite direct products and taking submonoids and homomorphic images; see [10].
Theorem 25. If is a variety of finite monoids, then the class of automata whose transition monoids belong to is a variety of automata.
Proof. Let be the transition monoid of an automaton , where is the map . Suppose that and . Consider the subautomaton of , where is an invariant subset of . Denote by the restriction of a map on the set and by the restriction of the monoid of maps on the set . Then and the mapping will be a homomorphism from to . Hence by definition, and . Thus the class closed under taking subautomata.
Consider the factor-automaton , where is a congruence of . Again the mapping will be a homomorphism from to . Hence by definition, and . Therefore, the class is closed under taking factor-automata.
Now consider the direct product of automata and from the class . By definition, the monoid belongs to , since the monoids and belong to . Consider the submonoid of the monoid and note that . The direct product of maps and is defined by the formula . Hence the mapping will be an isomorphism between monoids and . Thus, the automaton belongs to the class .
By these three points, the theorem is proven.
Proposition 26. The class ORDS of partially ordered synchronizable DFA is a variety.
Proof. Brzozowski and Fich [6] proved that the transition monoid of a partially ordered automaton is -trivial. This means that each -class of the Green equivalence in the monoid consists of one element. Eilenberg showed [11] that -trivial monoids form a variety. From these results and Theorem 25, it follows that the class ORD of partially ordered automata is a variety. Then the class ORDS will be also a variety as an intersection of the varieties ORD and SYN.
In connection with Proposition 26, it is interesting to consider the monoidal automata that were introduced in the paper [33]. The full monoid of transformations on the set we denote by . The elements of this monoid are called maps. We denote the image of a map by . The number is called the rank of the map . A constant map is a map of rank one. Note that a constant map transfers all states to the same state. Let ; then denote by the submonoid of transformations generated by the set of maps .
A monoidal automaton (or simply automaton) is a pair , where is a set of states and . The monoid of maps is called the transition monoid of an automaton . An automaton is synchronizable if its transition monoid contains a constant map. In a 0-automaton , a constant map will be the zero element of the monoid .
It is easy to see that a usual finite automaton can be treated as the monoidal automaton , where and vice versa. A set of generators allows to define the measure of complexity for a map decomposition on generators, namely, let the length of a map with respect to be the smallest length of a representation as a composition (product) of maps from .
An automaton is called a monoidal subautomaton of an automaton if . Let us consider Černý's monoidal automaton where is an idempotent (i.e., , see Subsec. 4.3) and is a cyclic permutation. A map is called nilpotent if is a constant map for some number . The shortest nilpotent map in Černý's automaton is the map , which transfers the state into the state and leaves state 1 in place. Then the monoidal subautomaton of Černý's automaton is a synchronizable and partially ordered 0-automaton, hence from Proposition 23, it follows that the map will be a constant map in . The constant map of the length corresponds to this composition in Černý's automaton . Therefore, to obtain the best bound we must act more carefully.
Let us consider a monoidal subautomaton of Černý's automaton, which is also a synchronizable partially ordered 0-automaton, since and acts identically on the subset . The idempotent is also a right identity in the monoid , since and . So in the shortest representation of the zero map in , the symbol can only be in the first place. We see that the composition (word) of the will be the zero map in . The constant map of length corresponds to this representation in .
Thus, varieties of automata can be useful for solving the Černý problem, since we can use a small upper bound for the length of constants in one automaton to obtain an upper bound for the length of constants in another automaton. This is also confirmed by the article [1].
4.2. Commutative Automata
A DFA is called commutative if for all and . Nearly by definition, we can see that the following holds; therefore, we suppress a formal proof.
Theorem 27. Let and be DFA. Then, and are commutative if and only if (with ) and are commutative.
Theorem 28. Let and be DFA with . Then, and are commutative if and only if is commutative.
Corollary 29. The family of commutative DFA is closed under the product operations , and .
Proposition 30. The family of commutative DFA is not closed under the operation .
Proof. Consider the automata with and with and . Trivially, both DFA are commu-tative. Define . Then, while .
By induction, one can see that for commutative automata, we can assume an ordering on as such that any synchronizing word first contains some occurrences of (if any), then of , etc. We also refer to [16, 29, 30]. With this type of abbreviations, we can state an improved statement in comparison with the general one from Proposition 7. In order to formulate the next statement, let us introduce the notation to denote in a clearer way. As we consider this in this subsection on commutative automata, even the possible misinterpretation as, e.g., does not matter.
Proposition 31. Let and be commutative DFA, with . Then, we have
where and are arbitrarily chosen shortest synchronizing words.
Proof. By Proposition 7, we only have to show the (sharpened) upper bound. As mentioned above, we can assume without loss of generality that synchronizable automata digest their symbols in an arbitrary ordering. Let and be arbitrarily chosen shortest synchronizing words. Then, . By Lemma 5, . proves the upper bound.
Remark 32. In the formulation of the previous proposition, we wanted to relate shortest synchronizing words in and in to synchronizing words in . But as we are finally aiming at finding a shortest synchronizing word in , it is not necessary to insist on only considering shortest synchronizing words in and in . Instead, with the same arguments that have led to the previous proposition, we can prove:
Notice that in the unary case, i.e., when k = 1, lower and upper bound coincide as already shown in Proposition 14 with another argument.
The following statement was already proven in [29] and [32]. For completeness, we give a simpler proof.
We also refer to the discussion of jumping finite automata in [16] in this context; their behavior can be interpreted as working on the freely generated commutative monoid.
Proposition 33. If is a synchronizable commutative DFA, then .
Proof. We will prove by induction on . For , the proposition is obvious. Let be a synchronizable commutative automaton, where . There is a symbol such that , since is synchronizable. The subset will be invariant in , so by the inductive hypothesis, the subautomaton possesses a synchronizing word of length . Thus the word will be a synchronizing for of length not greater than and the proposition is proven.
It is evident that finite commutative monoids form a variety, therefore from Theorem 25 we have the following statement.
Proposition 34. The class COMS of commutative synchronizable DFA is a variety.
Proof. From Theorem 25, it follows that the class COM of commutative automata is a variety. Then the class COMS will be also a variety as an intersection of the varieties COM and SYN.
4.3. Idempotent Automata
Let be DFA, then an input symbol is an idempotent if for all . This means that all states from the image are stable, i.e., for each . An idempotent symbol is called simple if . In this case, all states are stable except one (excluded) state which does not belong to . An input symbol of an automaton is a group (or permutation) symbol if when . An automaton is called idempotent if all its input symbols are idempotents or permutations and there is at least one an idempotent symbol, which is not a permutation. An idempotent automaton called an automaton with simple idempotents if all its idempotent symbols are simple.
In contrast to the preceding two classes, now we have a non-closure result. It is easy to see that automata with simple idempotents are not closed under direct product. Indeed, if and are automata with a simple idempotent symbol and is the excluded state for in , then all states where are not stable under the action of in . So an idempotent is not simple in the automaton .
On the other hand, idempotent automata are closed under direct product if we assume that they share a common input alphabet which is divided into two parts in the same way for both automata, a restriction for which we say that the automata share the partition of the input alphabet. The first part contains symbols that are idempotent in both automata, and the second part contains symbols that are permutations in both automata. Then the direct product of idempotent automata and will be also an idempotent automaton. We summarize these results in the following proposition.
Proposition 35. The class of idempotent automata is closed under direct product of DFA with shared input alphabet partition, but the class of automata with simple idempotents is not closed under direct product.
Idempotent automata enjoy even nicer closure properties for the box product and the union operation.
Proposition 36. The class of idempotent automata is closed under the operations and , but the class of automata with simple idempotents is closed only under the operation .
Proof. In both cases, we can partition the two disjoint input alphabets and of the idempotent automata resp. into the (simple) idempotent symbols resp. and the permutation symbols resp. . Both in and in , are the idempotent symbols and are the permutation symbols. But will be simple idempotent symbols only in the automaton .
However, neither the class of idempotent automata nor that of automata with simple idempotents forms a variety, as these classes are not closed under taking sub-automata.
Proposition 37. There exist a (simple) idempotent automaton with a sub-automaton that is not idempotent.
Proof. Consider with , , , and . Then, acts as a permutation on , and is a simple idempotent. The sub-automaton with state set consists of two identity permutations induced by and and is hence not an idempotent automaton.
In [31], the upper bound for the length of a shortest synchronizing word for an automaton with simple idempotents was obtained. Based on the many non-closure properties of the class of DFA with simple idempotents as exhibited above, one can easily construct larger classes of automata that also satisfy this quadratic upper bound on the reset threshold. This idea is further expanded in the next subsection.
4.4. Combining Classes
With our automata operations, we can also combine automata from different classes. This allows us to obtain DFA that again satisfy the Černý Conjecture. We give some examples of such combinations in this subsection.
Theorem 38. There exist a partially ordered automaton and a commutative automaton such that their product (built by either or ) is neither partially ordered nor commutative.
Proof. It is well-known that there are DFA that are partially ordered but not commutative (as for instance with , , , ), and there are DFA that are commutative but not partially ordered (as for instance with and ). Now, neither nor are partially ordered (by Theorem 18) or commutative (by Theorem 27).
We can do very similar constructions with the operation, based on Theorems 20 and 28. Hence, we can start considering larger classes of DFA, for instance those that can be built starting from partially ordered, commutative and idempotent automata, formed by applying any of the operations or . By our previous considerations, we know that we get a new class of DFA that is still satisfying a quadratic (if not better) bound on the length of their synchronizing words.
5. Cut Vertices and Sink States
We have seen examples of operations on automata graphs where the bounds on the length of the shortest synchronizing words related to the two original DFA can be used both to lower-bound (using the max operation) and to upper-bound (using the sum operation) the length of a shortest synchronizing word of the DFA obtained by the (product) operations. Are there any other operations on DFA that have this property? We will briefly discuss one further operation here, namely that of state identification (or merging).
Definition 39. Let be a DFA with a sink state , i.e., for all , . Let be an arbitrary DFA, with . For any , define , the merger of and at and , as follows. ; moreover, for any , define if and , if and , as well as if .
Observe that this operation is well-defined: the merger of two DFA and is always a DFA if a sink state was selected from to perform the operation.
Theorem 40. Let be a DFA with a sink state and let be an arbitrary DFA, with , and . Then,
Proof. First, recall that a DFA with a sink state is synchronizable if and only if there is only one sink state in the DFA, which is reachable from any other state. Let us first assume that is synchronizable. Then, it is not hard to see that is synchronizable if and only if is synchronizable. If is not synchronizable, then the claimed inequalities are in fact holding with equality (to ). Assume that is synchronizable. If is the synchronizing state by a shortest synchronizing word of , then is only possible if also synchronizes . As is a cut vertex of the underlying automaton graph, this lower bound cannot be broken. Conversely, if synchronizes and synchronizes , then synchronizes any merger. Finally, if is not synchronizable, then this means that there are two sink states in , so that also the merger is not synchronizable, as the second sink state of would have to be the synchronizing state of the merger but it cannot be reached from any state of by construction.
Notice that in contrast to the previously studied product construction, for the merger operation the upper bound given by the sum can be attained even under quite restricted conditions. This is exemplified with the following proposition.
Proposition 41. There is a family of partially ordered commutative DFA such that, for a well-chosen merger of two automata , we find
Proof. Let consist of all automata with if and . Obviously, is partially ordered and commutative. Moreover, . For , consider to be well-defined, although the state alphabets are not disjoint, as we quietly assume that the first automaton has state set instead of , while the second automaton has state set instead of . Then, we can even view as belonging to , being isomorphic to . Therefore, .
Remark 42. Notably, we can do a similar merge construction for any state that is a potential synchronizing state via a synchronizing word. Then, we would have to forget the outgoing edges of within and only take the outgoing edges from within . This leads to the same bounds as stated in Theorem 40.
6. Homing Sequences
In this section, we will consider finite automata with outputs. For this type of automata, the notion of a homing sequence has been studied that bears some similarities with synchronizing words for finite automata without outputs; see [23, 35]. This type of analogy can be also observed with our graph-oriented studies, as we will explain now.
A Mealy machine consists of a DFA together with a total output function . Again, the output function is extended to work on input words by setting
Recall that a vertex is called a cut vertex if its removal increases the number of connected components. In our argument, it does not matter if we reason about strongly or weakly connected components.
A sequence is homing for if
In particular, a synchronizing word (of the underlying DFA) is also a homing sequence, since the final state will be the same regardless of the output of an automaton. Let us call the length of a shortest homing sequence the homing threshold of and write for short. Assuming that is minimized (reduced), is known, see [20]. In contrast to synchronizing words, homing sequences always exist for reduced automata. The question if a given Mealy machine has a homing sequence of length at most is again an NP-hard one.
We are going to define variations of a product automaton for Mealy machines, similar to DFA. Let , be two Mealy machines. Let and . The direct product of and gives the Mealy machine whose underlying DFA is the direct product of the underlying DFA and , and . Analogously, we can also define the two-tape product machine , where , are two Mealy machines. Now, . Likewise, assuming in addition and , we can define and , with input alphabet and output alphabet .
Lemma 43. Let and be two Mealy machines. If is a homing sequence for and if is a homing sequence for , then their concatenation is a homing sequence for .
Proof. Let , such that . Hence, and . As is a homing sequence for , we have and hence . As is a homing sequence for , we have , since . Hence, and .
The lower bound can be established also easily. From the definition of the product operation, we see that a homing sequence for will be also a homing sequence both for and for . Therefore, we have the following result.
Proposition 44. Let be two Mealy machines with the same input alphabet. Then, .
One can show that this bound can be also attained by modifying Example 9, basically by taking unary output alphabets.
For the two-tape product, an improved upper bound follows as in Lemma 11. The argument in that lemma also shows that the upper bound can be attained. Therefore, we can conclude:
Proposition 45. Let be two Mealy machines. Then, we have .
Similarly, one can obtain:
Proposition 46. Let be two Mealy machines with disjoint input alphabets and with disjoint output alphabets. Then, we have and .
In conclusion, we find that for the product operations, reset and homing thresholds behave very similarly. It would be interesting to find other operations on Mealy machines where one can say something about the homing threshold. Also, it could be again interesting to study sub-classes of Mealy automata.
7. Natural Tasks and Questions
Of course, we can discuss further automata types and more operations on automata. For instance, the operations 'taking subautomata' and 'quotients' have been discussed (from a different yet related viewpoint) in [38]. This could be interesting in particular for operations that preserve strong connectivity of the automaton graph. Then, one could also study the avoidability threshold, see [18, 22, 40]. But apart from this general research agenda, let us phrase some more concrete questions concerning the operations that we have studied in this paper:
-
Can we find general criteria for DFA, in the best case characterizations, when the two bounds of Proposition 7 are attained?
-
Can we show that each “intermediate number” between the lower and upper bound of Proposition 7 can be attained?
-
Similar questions can be asked for Mealy automata (concerning homing sequences), see Proposition 44.
-
The upper-bound construction of Proposition 7 was somehow naive, as it assumed that the 'work' that did concerning the second automaton was completely ignored. Can we always rely on first synchronizing optimally (possibly we have to pick a 'most suitable' shortest synchronizing word for ) and then solving a 'subset synchronization' problem for ?
-
We can ask similar question for other operations that we considered.
Many automata classes are known that satisfy the upper bound on the reset threshold as conjectured by Černý and Starke, or possibly even a smaller one for a particular automata class. We can also interpret our studies on automata operators as saying that also the closure of known automata classes under these operations will then satisfy the Černý conjecture, in particular in combination. In this sense, we add further classes of automata to the already long list of automata classes satisfying the Černý conjecture, also see (e.g.) Theorem 38 and the discussions of such a result.
More generally speaking, it would be interesting to see if graph-theoretic notions or constructions can be employed in or have bearing on other questions in automata theory. For instance, the out-degree of an automaton graph being small testifies a combination of “small nondetermism” and “small input alphabet”. Can we obtain interesting descriptive complexity results for such graph-based measures?
Acknowledgements: We would like to thank the reviewers for their valuable remarks that helped improve and extend our manuscript considerably.
References
[1] J. Almeida, B. Steinberg, Matrix mortality and the Černý-Pin conjecture. In: V. Diekert, D. Nowotka (eds.), Developments in Language Theory, 13th International Conference, DLT. LNCS 5583, Springer, 2009, 67–80. [2] D. S. Ananichev, M. V. Volkov, V. V. Gusev, Primitive digraphs with large exponents and slowly synchronizing automata. Journal of Mathematical Sciences 192 (2013) 3, 263–278. [3] M. V. Berlinkov, Approximating the minimum length of synchronizing words is hard. Theory of Computing Systems 54 (2014) 2, 211–223. [4] M. V. Berlinkov, On the probability of being synchronizable. In: S. Govindarajan, A. Maheshwari (eds.), Algorithms and Discrete Applied Mathematics - Second International Conference, CALDAM. LNCS 9602, Springer, 2016, 73–84. [5] S. Bogdanović, B. Imreh, M. Čirić, T. Petković, Directable automata and their generalizations: A survey. Novi Sad Journal of Mathematics 29 (1999) 2, 29–69. [6] J. A. Brzozowski, F. E. Fich, Languages of -trivial monoids. Journal of Computer and System Sciences 20 (1980) 1, 32–49. [7] J. Černý, Poznámká k homogénnym experimentom s konečnými automatmi. Matematicko-fyzikálný časopis 14 (1964) 3, 208–216. [8] J. Černý, A note on homogeneous experiments with finite automata. Journal of Automata, Languages and Combinatorics 24 (2019) 2-4, 123–132. [9] G. Chapuy, G. Perarnau, Short synchronizing words for random automata. ACM Transactions on Algorithms 21 (2025) 4, 41:1–41:55. [10] S. Eilenberg, Automata, Languages, and Machines, Volume A. Pure and Applied Mathematics 59, Part A, New York: Academic Press, 1974. [11] S. Eilenberg, Automata, Languages, and Machines, Volume B. Pure and Applied Mathematics 59, Part B, New York: Academic Press, 1976. [12] S. Eilenberg, M. P. Schützenberger, On pseudo-varieties. Advances in Mathematics 19 (1976) 3, 413–418. [13] D. Eppstein, Reset sequences for monotonic automata. SIAM Journal on Computing 19 (1990) 3, 500–510. [14] H. Fernau, J. Bruchertseifer, Synchronizing words and monoid factorization, yielding a new parameterized complexity class? Mathematical Structures in Computer Science 32 (2022) 2, 189–215. [15] H. Fernau, P. Heggernes, Y. Villanger, A multi-parameter analysis of hard problems on deterministic finite automata. Journal of Computer and System Sciences 81 (2015) 4, 747–765.
[16] H. Fernau, S. Hoffmann, Extensions to minimal synchronizing words. Journal of Automata, Languages and Combinatorics 24 (2019), 287–307.
[17] P. Gawrychowski, D. Straszak, Strong inapproximability of the shortest reset word. In: G. F. Italiano, G. Pighizzini, D. Sannella (eds.), Mathematical Foundations of Computer Science 2015 - 40th International Symposium, MFCS, Part I. LNCS 9234, Springer, 2015, 243–255.
[18] F. Gonze, R. M. Jungers, A. Trahtman, A note on a recent attempt to improve the Pin-Frankl bound. Discrete Mathematics & Theoretical Computer Science 17 (2015) 1, 307–308.
[19] P. Goralčík, V. Koubek, Rank problems for composite transformations. International Journal of Algebra and Computation 5 (1995) 3, 309–316.
[20] T. N. Hibbard, Least upper bounds on minimal terminal state experiments for two classes of sequential machines. Journal of the ACM 8 (1961) 4, 601–612.
[21] J. Kari, M. V. Volkov, Černý's conjecture and the road colouring problem. In: J.-E. Pin (ed.), Handbook of Automata Theory, Volume I. European Mathematical Society Publishing House, 2021, 525–565.
[22] A. Kisielewicz, M. Szykuła, Synchronizing automata with extremal properties. In: G. F. Italiano, G. Pighizzini, D. Sannella (eds.), Mathematical Foundations of Computer Science 2015 - 40th International Symposium, MFCS, Part I. LNCS 9234, Springer, 2015, 331–343.
[23] Z. Kohavi, N. K. Jha, Switching and Finite Automata Theory. 3rd edition, Cambridge University Press, 2009.
[24] A. Martinsson, Synchronizing random automata through repeated 'a' inputs. Technical Report abs/2306.09040, ArXiv, Cornell University, 2023.
[25] C. Nicaud, The Černý conjecture holds with high probability. Journal of Automata, Languages and Combinatorics 24 (2019) 2-4, 343–365.
[26] E. Rodaro, A bound for the length of the shortest reset words for semisimple synchronizing automata via the packing number. Journal of Algebraic Combinatorics 50 (2019), 237–253.
[27] A. Roman, Two simple methods for obtaining new classes of automata fulfilling Černý conjecture. Schedae Informaticae 16 (2007) 6, 35–46.
[28] I. K. Rystsov, О минимизации длины синхронизирующих слов для конечных автоматов. In: Теоретические вопросы проектирования вычислительных систем. Институт кибернетики (Institute of Cybernetics of the Ukrainian Academy of Sciences), 1980, 75–82.
[29] I. K. Rystsov, Exact linear bound for the length of reset words in commutative automata. Publicationes Mathematicae, Debrecen 48 (1996) 3-4, 405–409.
[30] I. K. Rystsov, Reset words for commutative and solvable automata. Theoretical Computer Science 172 (1997) 1-2, 273–279.
[31] I. K. Rystsov, Estimation of the length of reset words for automata with simple idempotents. Cybernetics and Systems Analysis 36 (2000) 3, 339–344.
[32] I. K. Rystsov, Застосування методів алгебраїчної теорії автоматів до проблем аналізу дискретних динамічних систем. Doctor of science thesis, Київський державний університет, Kiev State University, Ukraine, 2020. http://scc.univ.kiev.ua/upload/iblock/52f/dis_Rystsov%20I.C._new.pdf
[33] I. K. Rystsov, M. Szykutà, Reset thresholds of transformation monoids. Cybernetics and Systems Analysis 60 (2024), 189–197.
[34] A. Ryzhikov, Synchronization problems in automata without non-trivial cycles. Theoretical Computer Science 787 (2019), 77–88.
[35] S. Sandberg, Homing and synchronizing sequences. In: M. Broy, B. Jonsson, J.-P. Katoen, M. Leucker, A. Pretschner (eds.), Model-Based Testing of Reactive Systems. LNCS 3472, Springer, 2005, 5–33.
[36] A. Trahtman, The road coloring problem. Israel Journal of Mathematics 172 (2009), 51–60.
[37] M. V. Volkov, Synchronizing automata and the Černý conjecture. In: C. Martín-Vide, F. Otto, H. Fernau (eds.), Language and Automata Theory and Applications, Second International Conference, LATA. LNCS 5196, Springer, 2008, 11–27.
[38] M. V. Volkov, Synchronizing automata preserving a chain of partial orders. Theoretical Computer Science 410 (2009) 37, 3513–3519.
[39] M. V. Volkov, Preface: Special issue on the Černý conjecture. Journal of Automata, Languages and Combinatorics 24 (2019) 2-4, 119–121.
[40] M. V. Volkov, Synchronization of finite automata. Russian Mathematical Surveys 77 (2022) 5, 819–891.
[41] V. Vorel, A. Roman, Parameterized complexity of synchronization and road coloring. Discrete Mathematics & Theoretical Computer Science 17 (2015), 283–306.