This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

On shortest products
for nonnegative matrix mortality

Andrew Ryzhikov
(Department of Computer Science, University of Oxford, UK
ryzhikov.andrew@gmail.com)
Abstract

Given a finite set of matrices with integer entries, the matrix mortality problem asks if there exists a product of these matrices equal to the zero matrix. We consider a special case of this problem where all entries of the matrices are nonnegative. This case is equivalent to the NFA mortality problem, which, given an NFA, asks for a word ww such that the image of every state under ww is the empty set. The size of the alphabet of the NFA is then equal to the number of matrices in the set. We study the length of shortest such words depending on the size of the alphabet. We show that for an NFA with nn states this length can be at least 2n12^{n}-1 for an alphabet of size nn, 2(n4)/22^{(n-4)/2} for an alphabet of size 33 and 2(n2)/32^{(n-2)/3} for an alphabet of size 22. We also discuss further open problems related to mortality of NFAs and DFAs.

Keywords: matrix mortality, NFA mortality, nonnegative matrices.

1 Introduction

Given a finite set 𝒜\mathcal{A} of integer square matrices of the same dimension, the matrix mortality problem asks if the monoid generated by 𝒜\mathcal{A}, that is, the set of all possible products of matrices from 𝒜\mathcal{A}, contains the zero matrix. This problem is undecidable already for sets of 3×33\times 3 matrices [Pat70], and is a subject of extensive research, see [CHHN14] for a survey of recent developments.

We consider a special case of matrix mortality where all matrices in 𝒜\mathcal{A} are nonnegative, that is, all their entries are nonnegative. We call this problem nonnegative matrix mortality. The theory of nonnegative matrices has applications in the theory of codes [BPR10], Markov chains [Sen06] and symbolic dynamics [LM21], and recently there has been a significant interest in reachability problems for sets of nonnegative matrices and monoids generated by them [PV12, GGJ18, WZ23].

Clearly, for nonnegative matrix mortality it only matters which entries of the matrices in 𝒜\mathcal{A} are strictly positive and which are zero. In particular, this implies that nonnegative matrix mortality is decidable in polynomial space. Moreover, for a set 𝒜\mathcal{A} of nonnegative n×nn\times n matrices, the length of a shortest product from this set resulting in the zero matrix is at most 2n12^{n}-1. This easily follows from the interpretation of 𝒜\mathcal{A} as a non-deterministic finite (semi-)automaton (NFA), as explained, e.g., in [RSX12]. Since our results, as well as most of the existing literature on nonnegative matrix mortality, use this correspondence, we provide its details.

We view a finite set 𝒜\mathcal{A} of nonnegative n×nn\times n matrices as an NFA with a state set Q={1,2,,n}Q=\{1,2,\ldots,n\}. Each letter aja_{j} of its alphabet Σ\Sigma corresponds to a matrix Aj𝒜A_{j}\in\mathcal{A}. To define the transition relation Δ:Q×Σ2Q\Delta:Q\times\Sigma\to 2^{Q}, we take Δ(i,aj)\Delta(i,a_{j}) to be the set of all hh such that the entry (i,h)(i,h) in AjA_{j} is strictly positive. When the transition relation is clear from the context, we denote Δ(q,a)\Delta(q,a) as qaq\cdot a. We homomorphically extend it to words over Σ\Sigma, and then to subsets SQS\subseteq Q as Sw={ppqw for some qS}S\cdot w=\{p\mid p\in q\cdot w\mbox{ for some }q\in S\}. In thus constructed NFA (Q,Σ,Δ)(Q,\Sigma,\Delta), with respect to matrix mortality, words correspond to products of matrices from 𝒜\mathcal{A}: we have Qw=Q\cdot w=\emptyset if and only if the product of matrices corresponding to ww is the zero matrix. Such words ww are called mortal. To obtain the mentioned upper bound of 2n12^{n}-1 (observed, e.g., in [IS99]), it is now enough to note that for a shortest mortal word w=x1x2xkw=x_{1}x_{2}\ldots x_{k} the sets Qx1x2xiQ\cdot x_{1}x_{2}\ldots x_{i} for different values of ii are pairwise different subsets of QQ, and hence k2n1k\leq 2^{n}-1.

The length of a shortest mortal word of an NFA is called its mortality threshold. Let 𝐦𝐭(n,m)\mathbf{mt}(n,m) denote the maximum mortality threshold of an NFA with nn states and mm letters admitting a mortal word. In this paper, we investigate the values 𝐦𝐭(n,m)\mathbf{mt}(n,m) depending on mm. As shown above, for every nn and mm, 𝐦𝐭(n,m)2n1\mathbf{mt}(n,m)\leq 2^{n}-1. We survey the known bounds on 𝐦𝐭(n,m)\mathbf{mt}(n,m) in the next section, and in the rest of this section we mention some other relevant results.

The problem of checking if a given NFA admits a mortal word is PSPACE-complete, even when restricted to binary NFAs [KRS09]. As usually, we call an NFA binary if its alphabet has size two, and ternary if it has size three.

In [KM21], the case where 𝒜\mathcal{A} is a set of nonnegative integer matrices of joint spectral radius at most one is considered. This case includes, in particular, all sets 𝒜\mathcal{A} of {0,1}\{0,1\}-matrices (that is, matrices whose entries belong to the set {0,1}\{0,1\}) with the property that the monoid generated by 𝒜\mathcal{A} contains only {0,1}\{0,1\}-matrices. Such sets 𝒜\mathcal{A} correspond to unambiguous NFAs, which are NFAs with the property that for every pair p,qp,q of states and every word ww there is at most one path from pp to qq labelled by ww. It is proved in [KM21] that for sets of joint spectral radius at most one, the existence of a product resulting in the zero matrix can be checked in polynomial time, and for all mm we have 𝐦𝐭ρ1(n,m)n5\mathbf{mt}_{\rho\leq 1}(n,m)\leq n^{5}, where 𝐦𝐭ρ1(n,m)\mathbf{mt}_{\rho\leq 1}(n,m) is 𝐦𝐭(n,m)\mathbf{mt}(n,m) restricted to such sets. The best known lower bound is quadratic in nn [Rys97]. Some more results on mortal words for unambiguous NFAs are presented in [BC19].

Our contributions. We study the following question: given a set of mm nonnegative n×nn\times n matrices, how long can their shortest product resulting in the zero matrix be? In Section 2 we survey known results. Section 3 contains our main contributions. Namely, for m=nm=n, we show a lower bound of 2n12^{n}-1 (Theorem 4), matching the upper bound for arbitrary mm. We prove it by constructing an NFA simulating a binary counter counting from 2n12^{n}-1 to zero. The case of constant mm uses the same idea, but requires much more involved constructions to implement it, resulting in a lower bound of 2(n4)/22^{(n-4)/2} for m=3m=3 (Theorem 5) and a lower bound of 2(n2)/32^{(n-2)/3} for m=2m=2 (Theorem 6). We conclude the paper by discussing other approaches to NFA and DFA mortality in Section 4, and providing a list of open problems related to this setting in Section 5.

2 Existing results and their adaptations

In this section, we explain existing results on 𝐦𝐭(n,m)\mathbf{mt}(n,m). The first result about this value seems to be in the work [GHKR82], where it is proved that 𝐦𝐭(n,m)\mathbf{mt}(n,m) is not bounded by any polynomial in nn. Most of the known results are not stated in terms of matrix or NFA mortality, so we appropriately rephrase them. We also show that strong lower bounds on 𝐦𝐭(n,m)\mathbf{mt}(n,m) can be easily obtained from existing results that are not obviously related to mortality.

2.1 Factorial languages and shortest rejected words

Clearly, mortal words for an NFA are precisely the words that do not label a path between any two states in the NFA. Equivalently, these are words that are not accepted by the NFA if we make each state both initial and final. Shortest such words were studied in [KRS09, RSX12], building upon an earlier work [EKSW04] about a more general question: what is the maximum length of a shortest word not accepted by an NFA with a given number of states? The result relevant to our work is as follows.

Theorem 1 (Theorem 16 in [KRS09], rephrased).

For every nn, there exists an NFA with nn states over a ternary alphabet such that its shortest mortal word is of length at least 2n/75p(n)2^{n/75}p(n), where p(n)p(n) is some polynomial.

2.2 D1-directing and carefully synchronizing words

A word ww is called D1-directing for an NFA if there exists a state qq such that for every state pp we have pw={q}p\cdot w=\{q\} [IS99]. An NFA is called total111Such NFAs are often called complete, for example in [IS99, III03]. However, in e.g. [Res81, MS21] the term “complete” refers to objects corresponding to matrix monoids that do not contain the zero matrix, which we find reasonable. We thus find the term “total” more appropriate, since an NFA is total if and only if the action of every its letter is a total binary relation. A total NFA is then necessarily complete (that is, does not admit a mortal word), but the opposite does not always hold, as illustrated by the following NFA with two letters: 1122 . if for every state qq and every letter aa we have qaq\cdot a\neq\emptyset. A state qq in an NFA is called a sink state (called a trap state in [III03]) if for every letter aa we have qa={q}q\cdot a=\{q\}. A word is D1-directing for a total NFA 𝒜\mathcal{A} with a sink state qq if and only if it is mortal for the NFA obtained from 𝒜\mathcal{A} by removing qq. We thus get the following.

Theorem 2 (Theorem 3 in [III03]).

For every n3n\geq 3, 𝐦𝐭(n,2n5)=2n1.\mathbf{mt}(n,2^{n}-5)=2^{n}-1.

In Theorem 4 below we show that only nn letters are enough to achieve the same lower bound, thus obtaining that for every n1n\geq 1, 𝐦𝐭(n,n)=2n1\mathbf{mt}(n,n)=2^{n}-1.

The most well-studied setting of D1-directing words for NFAs is that of DFAs, in which case such words are often called carefully synchronizing. Recall that a DFA is an NFA such that |qa|1|q\cdot a|\leq 1 for every state qq and every letter aa. As usually, we use a partial function δ:Q×ΣQ\delta:Q\times\Sigma\rightharpoonup Q instead of Δ:Q×Σ2Q\Delta:Q\times\Sigma\to 2^{Q} to highlight this. A DFA admitting a carefully synchronizing word is also called carefully synchronizing. Strong lower bounds are known for the length of shortest carefully synchronizing words for DFAs, and these bounds can be transferred to shortest mortal words for NFAs as follows.

Let 𝒜=(Q,Σ,δ)\mathcal{A}=(Q,\Sigma,\delta) be a carefully synchronizing DFA. Consider an NFA 𝒜=(Q,Σ{r},Δ)\mathcal{A}^{\prime}=(Q,\Sigma\cup\{r\},\Delta^{\prime}) obtained from 𝒜\mathcal{A} as follows: for every pair qQ,aΣq\in Q,a\in\Sigma such that δ(q,a)\delta(q,a) is undefined, take Δ(q,a)=Q\Delta^{\prime}(q,a)=Q. If δ(q,a)\delta(q,a) is defined, take Δ(q,a)={δ(q,a)}\Delta^{\prime}(q,a)=\{\delta(q,a)\}. Pick a state pQp\in Q such that there exists a carefully synchronizing word ww mapping all states to pp. Take Δ(p,r)=\Delta(p,r)=\emptyset and Δ(q,r)=Q\Delta(q,r)=Q for all qpq\neq p. If ww is a carefully synchronizing word for 𝒜\mathcal{A}, then wrwr is a mortal word for 𝒜\mathcal{A}^{\prime}. Conversely, by construction, every mortal word for 𝒜\mathcal{A}^{\prime} must contain a carefully synchronizing word for 𝒜\mathcal{A} as a factor. By applying this transformation to Theorems 14 and 16 from [DDZ19], we obtain the following.

Theorem 3 ([DDZ19]).

We have 𝐦𝐭(n,4)=Ω(22n/5n)\mathbf{mt}(n,4)=\Omega(\frac{2^{2n/5}}{n}) and 𝐦𝐭(n,3)=Ω(2n/3nn)\mathbf{mt}(n,3)=\Omega(\frac{2^{n/3}}{n\sqrt{n}}).

Note that sometimes adding a new letter rr is not necessary in the construction described above, which seems to be the case for [DDZ19]. However, proving that requires analysing the whole construction for careful synchronization, which is quite involved. Since our results on NFA mortality are stronger than those in Theorem 3 even without the additional letter, we do not pursue this any further. We also remark that the applicability of this approach is limited by the upper bound on shortest carefully synchronizing words for nn-state DFAs, which is 3(1+ϵ)n/33^{(1+\epsilon)n/3} for every ϵ>0\epsilon>0 [Rys80]. This upper bound is asymptotically tight already for an alphabet of linear size [Rys80, Mar10, RS18].

3 NFA mortality lower bounds

For all lower bounds in this section, the main idea is to construct an NFA simulating a binary counter. Namely, for every kk we construct an NFA with the number of states linear in kk such that, when reading a word ww, a dedicated set Q={q1,,qk}Q=\{q_{1},\ldots,q_{k}\} of kk states behaves in the following way. We say that a state qq is active after the application of a word ww if qpwq\in p\cdot w for some state pp, otherwise we say that it is inactive. Initially, all states in QQ are active. We interpret active and inactive states from QQ as a number in the binary encoding. Namely, given a word wΣw\in\Sigma^{*}, define bin(w)=x1x2xk\operatorname{bin}(w)=x_{1}x_{2}\ldots x_{k}, where xi=1x_{i}=1 if qiQwq_{i}\in Q\cdot w, and xi=0x_{i}=0 otherwise. We treat bin(w)\operatorname{bin}(w) as a natural number represented in the binary notation, with the most significant bit first. By construction of the NFA we guarantee that when reading a letter, this number is either decremented by at most one or is set again to the number consisting of all ones. The length of a shortest mortal word for such NFA is then at least 2k12^{k}-1.

For an alphabet whose size is equal to the number of states, this idea can be implemented in a fairly straightforward way with a kk-state NFA. To implement it with a ternary and a binary alphabet, we need more advanced techniques. The main challenge is that at least one of the letters must have a different effect on the encoding of the number depending on its value. To achieve that, between every two decrements we shift the number to the right until it ends with a one, thus iteratively dividing it by two, and simultaneously add some additional marker bits to preserve the information about the number of shifts we performed. In particular, it is important to remark that in these constructions not every application of a letter decrements the value of the number that we are tracking. Namely, we will have one letter that actually decrements the value, and all other letters will perform auxiliary operations such as shifting the representation. These ideas will be explained in detail in due course.

Conventions for figures. In all figures in this section, we use a vertical bold outgoing arrow to indicate that there is a transition from the state it originates from to all the states of the NFA. Similarly, a vertical bold incoming arrow indicates that there is a transition from each state of the NFA (except for states with a dashed outgoing arrow) to the state where the arrow ends. A dashed outgoing arrow from a state means that the image of this state is empty.

3.1 Linear-size alphabet is enough for a tight lower bound

We start by proving the following statement. As its consequence, together with the upper bound mentioned in the introduction, we get that 𝐦𝐭(n,n)=2n1\mathbf{mt}(n,n)=2^{n}-1.

Theorem 4.

For every integer n1n\geq 1, there exists an NFA with nn states and nn letters such that the length of its shortest mortal word is 2n12^{n}-1.

Proof.

For every positive nn we construct an NFA 𝒜=(Q,Σ,Δ)\mathcal{A}=(Q,\Sigma,\Delta) as follows. We take Q={q1,,qn}Q=\{q_{1},\ldots,q_{n}\} (thus we have k=nk=n in the informal explanations in the beginning of this section). Let Σ={a1,,an}\Sigma=\{a_{1},\ldots,a_{n}\}. Define

Δ(qi,aj)={if i=j=n;{qi+1,,qn}if 1i=j<n;Qif 1j<in;{qi}if 1i<jn.\Delta(q_{i},a_{j})=\begin{cases}\emptyset&\mbox{if }i=j=n;\\ \{q_{i+1},\ldots,q_{n}\}&\mbox{if }1\leq i=j<n;\\ Q&\mbox{if }1\leq j<i\leq n;\\ \{q_{i}\}&\mbox{if }1\leq i<j\leq n.\end{cases}

For n=5n=5, the action of a2a_{2} is illustrated below:

q1q_{1}q2q_{2}q3q_{3}q4q_{4}q5q_{5}

First we note that there exists a mortal word for 𝒜\mathcal{A}. We construct it letter by letter. At each step we apply letter aja_{j}, where jj is such that state qjq_{j} is currently active, and states qj+1,,qnq_{j+1},\ldots,q_{n} are not active. In other words, jj is the position of the last 1 in the representation of active states of QQ as a number in binary. The length of thus constructed word is 2n12^{n}-1. This is in fact the only mortal word of this length, and to better illustrate its structure, let us describe how it can be constructed recurrently. Take wn=anw_{n}=a_{n}, and for all 1in11\leq i\leq n-1 take wi=wi+1aiwi+1w_{i}=w_{i+1}a_{i}w_{i+1}. The word w1w_{1} is then the shortest mortal word for 𝒜\mathcal{A}. The shortest mortal word for the example above for n=5n=5 is

a5a4(a5)a3(a5a4a5)a2(a5a4a5a3a5a4a5)a1(a5a4a5a3a5a4a5a2a5a4a5a3a5a4a5),a_{5}a_{4}(a_{5})a_{3}(a_{5}a_{4}a_{5})a_{2}(a_{5}a_{4}a_{5}a_{3}a_{5}a_{4}a_{5})a_{1}(a_{5}a_{4}a_{5}a_{3}a_{5}a_{4}a_{5}a_{2}a_{5}a_{4}a_{5}a_{3}a_{5}a_{4}a_{5}),

where the partition of the word indicates the second appearance of wi+1w_{i+1} in each step of the recurrence wi=wi+1aiwi+1w_{i}=w_{i+1}a_{i}w_{i+1}.

Now we show that this is the shortest mortal word for 𝒜\mathcal{A}. Let ww be a mortal word for 𝒜\mathcal{A}. As mentioned above, we consider bin(w)\operatorname{bin}(w^{\prime}) for prefixes ww^{\prime} of ww. We start with bin(ϵ)=2n1\operatorname{bin}(\epsilon)=2^{n}-1. By construction, reading a letter can decrement the value of the number by at most one: for every aΣa\in\Sigma, we have bin(wa)bin(w)1\operatorname{bin}(w^{\prime}a)\geq\operatorname{bin}(w^{\prime})-1. Indeed, let a=aja=a_{j} and let bin(w)=x1xn\operatorname{bin}(w^{\prime})=x_{1}\ldots x_{n} with x1,,xn{0,1}x_{1},\ldots,x_{n}\in\{0,1\}. If xj+1==xnx_{j+1}=\ldots=x_{n}, then bin(wa)=x1xj10111\operatorname{bin}(w^{\prime}a)=x_{1}\ldots x_{j-1}011\ldots 1. If xj=1x_{j}=1, we have bin(wa)=bin(w)1\operatorname{bin}(w^{\prime}a)=\operatorname{bin}(w^{\prime})-1, otherwise bin(wa)>bin(w)\operatorname{bin}(w^{\prime}a)>\operatorname{bin}(w^{\prime}). Now consider the case where xi=1x_{i}=1 for some i>ji>j. Then bin(wa)=2n1\operatorname{bin}(w^{\prime}a)=2^{n}-1 by construction. Hence, the length of a shortest mortal word for 𝒜\mathcal{A} is at least 2n12^{n}-1. ∎

3.2 Ternary case lower bound

Now we implement a similar idea in a much more restricted setting of only three letters. We remark that combining the result from the previous subsection with a standard technique for reducing the size of the alphabet (for example, via a composition with a finite prefix code) is not enough to obtain a good lower bound. Indeed, going from a linear-size alphabet to an alphabet of size three requires appending to each state a tree with a linear number of inner states to simulate a linear number of choices (represented by the leaves of this tree). This results in a quadratic increase of the number of states. A possible improvement of this approach might be then to reuse the trees between different states in a clever way. However, we were not able to make it work, and our approach is instead to use shifts that directly change the binary representation of the number that we are tracking. A significant part of the construction is thus devoted to guaranteeing that this number cannot be decremented too much by applying a short word. The goal of this subsection is to prove the following.

Theorem 5.

For every even n6n\geq 6, there exists an NFA with nn states and 33 letters such that the length of its shortest mortal word is at least 2(n4)/22^{(n-4)/2}.

Proof.

We construct an NFA 𝒜=(PQ{f},{s,d,c},Δ)\mathcal{A}=(P\cup Q\cup\{f\},\{s,d,c\},\Delta). Its set of states consists of a set of k+1k+1 states P={p0,p1,,pk}P=\{p_{0},p_{1},\ldots,p_{k}\}, which we refer to as the left half, a set of kk states Q={q1,,qk}Q=\{q_{1},\ldots,q_{k}\}, which we refer to as the right half, and a special “flag” state ff. We thus have n=2k+2n=2k+2.

As mentioned above, we will be tracking the values bin(w)\operatorname{bin}(w^{\prime}) for prefixes ww^{\prime} of an input word ww. However, since we only have three letters, we will have to use a more involved approach to decrementing these values by one. Namely, when applying letters to the NFA, the encoding of the tracked number will sometimes be shifted. In more detail, this encoding will be represented by a continuous segment of kk states in the sequence p1,p2,,pk,q1,q2,,qkp_{1},p_{2},\ldots,p_{k},q_{1},q_{2},\ldots,q_{k}. Most other states in this sequence will be inactive, except for one state remembering by how much the representation was shifted. The main reason why we need to shift the number, and therefore why we need more states, is that, just like the action of aja_{j} is different for different positions in the proof of Theorem 4, the action of one of the three available letters must have a different effect depending on the current position of the last 11 in the encoding of the number.

We first define the action of letter ss that performs shifting. Its initial purpose is to make active precisely the set Q{f}Q\cup\{f\}. After that, it will allow shifting bin(w)\operatorname{bin}(w) to the right until its last digit is 1. If another shift is performed after that, the set Q{f}Q\cup\{f\} gets reactivated, so the whole process is reset to the beginning. The actions of letters dd and cc defined later will guarantee that the number of removed zeroes at the end of bin(w)\operatorname{bin}(w) is remembered elsewhere, and hence the value of the tracked number is not lost.

Formally, we define

pis={{pi+1}if 0i<k;{q1}if i=k;qis={{qi+1}if 1i<k;Q{f}if i=k;p_{i}\cdot s=\begin{cases}\{p_{i+1}\}&\mbox{if }0\leq i<k;\\ \{q_{1}\}&\mbox{if }i=k;\end{cases}\qquad q_{i}\cdot s=\begin{cases}\{q_{i+1}\}&\mbox{if }1\leq i<k;\\ Q\cup\{f\}&\mbox{if }i=k;\end{cases}
fs={f}.f\cdot s=\{f\}.

The action of letter ss for k=4k=4 is illustrated below:

action of ssp0p_{0}p1p_{1}p2p_{2}p3p_{3}p4p_{4}q1q_{1}q2q_{2}q3q_{3}q4q_{4}ff

Next we define the action of letter cc that checks that the representation of the number that we are tracking was shifted to the right half and removes the “marker” bit at the end of this representation. This “marker” bit is a detail that we have not mentioned before, but which is crucial for the construction. Most of the time, the encoding of the number we are tracking will end with an additional 11 that prevents ss from changing the number without resetting the counting. However, once cc is applied, which can be done only when the number is shifted to the right half, this bit is removed, and we can remove zeroes at the end of the tracked number by applying ss. To stop the tracked number from decreasing fast, an application of cc activates state p0p_{0}. After that, by construction, letter cc cannot be applied as long as there are active states in the left half, which prevents us from using it again to remove more ones at the end of the tracked number.

The number of shifts performed by ss after an application of cc is then equal to the index of the unique active state among the states p0,p1,,pkp_{0},p_{1},\ldots,p_{k}. The action of dd (defined later) will take that into account when performing the decrement and returning the number to its proper representation.

Letter cc also deactivates state ff. This state is used to disallow using dd too often: as we define later, if ff is active, using dd will reactivate all states.

Formally, we define

pic=PQ{f} for 0ik;qic={{qi,p0}if 1i<k;if i=k;p_{i}\cdot c=P\cup Q\cup\{f\}\mbox{ for }0\leq i\leq k;\qquad q_{i}\cdot c=\begin{cases}\{q_{i},p_{0}\}&\mbox{if }1\leq i<k;\\ \emptyset&\mbox{if }i=k;\end{cases}
fc=.f\cdot c=\emptyset.

The action of letter cc is illustrated below:

action of ccp0p_{0}p1p_{1}p2p_{2}p3p_{3}p4p_{4}q1q_{1}q2q_{2}q3q_{3}q4q_{4}ff

Finally, we define the action of letter dd that decrements the tracked value by one and simultaneously shifts its representation by kk positions to the left. We make sure that between any two applications of dd there must be at least one application of cc. It is guaranteed by the fact that dd activates ff, and if ff is already active, an application of dd makes all the states active. Hence, before dd is applied, the representation of the tracked number is deconstructed into two parts: the number of performed shifts is remembered in the unique active state of the left half, and the rest of the number is in the right half. An application of dd then subtracts one from the value of the number, and composes the representation of the number back to the proper binary representation. Besides that, the action of dd adds back the “marker” bit at the end of the representation, which was removed by an application of cc.

Formally, we define

pid={PQ{f}if i=0;{q1,,qi}{f}if 1i<k;{f}if i=k;qid={{pi}{f}if 1i<k;if i=k;p_{i}\cdot d=\begin{cases}P\cup Q\cup\{f\}&\mbox{if }i=0;\\ \{q_{1},\ldots,q_{i}\}\cup\{f\}&\mbox{if }1\leq i<k;\\ \{f\}&\mbox{if }i=k;\end{cases}\quad q_{i}\cdot d=\begin{cases}\{p_{i}\}\cup\{f\}&\mbox{if }1\leq i<k;\\ \emptyset&\mbox{if }i=k;\end{cases}
fs=PQ{f}.f\cdot s=P\cup Q\cup\{f\}.

The action of dd for some states is illustrated below. The transitions from p1p_{1} and p2p_{2} are omitted for the clarity of presentation.

action of ddp0p_{0}p1p_{1}p2p_{2}p3p_{3}p4p_{4}q1q_{1}q2q_{2}q3q_{3}q4q_{4}ff

We have now fully defined 𝒜\mathcal{A}. Let us first verify that there exists a mortal word for 𝒜\mathcal{A}. Initially, we apply ss until only states in Q{f}Q\cup\{f\} are active. Then we keep repeating the following process. Apply letter cc, which in particular makes p0p_{0} active. Then keep applying ss until qkq_{k} becomes active. If ss was applied hh times, then php_{h} is active. When we apply dd, we get that the set of active states is a subset of ph+1,,pk,q1,,qhp_{h+1},\ldots,p_{k},q_{1},\ldots,q_{h}, together with ff. Moreover, by construction, the encoded value is decreased by one (ignoring the marker bit at the end). Repeat the described process until the encoded value is zero. This means that only ff and the state corresponding to the marker bit at the end are active, and they can be made inactive by shifting them to the right and applying cc.

The figure below illustrates a few first steps of such counting. The number that we are tracking, including the last marker bit if it is present, is highlighted.

p0p_{0}p1p_{1}p2p_{2}p3p_{3}p4p_{4}q1q_{1}q2q_{2}q3q_{3}q4q_{4}ff11111111110000011111100001110001000011100011010001s5s^{5}ccssdd

Now we need to show a lower bound on the length of shortest mortal words for 𝒜\mathcal{A}. Intuitively, any divergence from the mortal word described above results either in a full reset of the counting (via reactivating all the states) or in a number larger than the current number (if the representation in the right half contains zeroes at the end just before dd is applied). Most of our argument is already outlined in the explanations of the actions of the letters. Formally, let ww be a mortal word for 𝒜\mathcal{A}. We can assume that the set of active states is Q{f}Q\cup\{f\}, since this assumption will not make the mortal word longer. We look at the value of bin(w)\operatorname{bin}(w^{\prime}) for all prefixes ww^{\prime} ending with cscs. We claim that for two such subsequent prefixes ww^{\prime} and w′′w^{\prime\prime}, where ww^{\prime} is shorter than w′′w^{\prime\prime}, we have that bin(w′′)bin(w)1\operatorname{bin}(w^{\prime\prime})\geq\operatorname{bin}(w^{\prime})-1. We can assume that the whole set Q{f}Q\cup\{f\} does not get active again. Then after applying ww^{\prime} we can only apply ss or dd. If after some number of applications of ss state qkq_{k} is not active and dd is applied, then by construction the encoded number is increased. Now dd cannot be applied again, so the increased number has to be shifted to the right half. If qkq_{k} is active, by the same reasoning we get bin(w′′)=bin(w)1\operatorname{bin}(w^{\prime\prime})=\operatorname{bin}(w^{\prime})-1. We start counting from 2k12^{k-1} (cscs removes the marker bit at the end), hence the length of ww is at least 2k12^{k-1}. ∎

3.3 Binary case lower bound

We now implement an idea similar to the idea for a ternary alphabet, but trading a letter for kk more states. Again, we remark that standard techniques for reducing the size of the alphabet increase the number of states too much, so we have to introduce new techniques to directly simulate a counter using only two letters. We prove the following.

Theorem 6.

For every n5n\geq 5 such that n=3k+2n=3k+2 for some integer kk, there exists an NFA with nn states and 22 letters such that the length of its shortest mortal word is at least 2(n2)/32^{(n-2)/3}.

Proof.

We construct an NFA 𝒜=(PRQ{f},{s,d},Δ)\mathcal{A}=(P\cup R\cup Q\cup\{f\},\{s,d\},\Delta) with

P={p0,p1,,pk1},R={r0,r1,,rk},Q={q1,,qk}.P=\{p_{0},p_{1},\ldots,p_{k-1}\},R=\{r_{0},r_{1},\ldots,r_{k}\},Q=\{q_{1},\ldots,q_{k}\}.

Hence, we have n=3k+2n=3k+2. We appropriately refer to PP as the left part, RR as the middle part and QQ as the right part. The difference from the construction in the proof of Theorem 5 is that, intuitively, we get rid of letter cc. To do so, we split the role of the states in PP from the ternary case into two parts PP and RR. The new left part PP now makes sure that the representation of the tracked number is shifted to the right part QQ and that dd is not applied too much, and the action of dd on the middle part RR performs the actual decrement. This time, no marker bit at the end of the representation is needed, but one of the states from PRP\cup R will be active at all times, except for the very beginning of the counting process.

First we define the action of letter ss, which has no conceptual differences from the action of ss in the ternary case. Formally,

pis={{pi+1}if 0i<k1;{r0}if i=k1;ris={{ri+1}if 0i<k;{q1}if i=k;p_{i}\cdot s=\begin{cases}\{p_{i+1}\}&\mbox{if }0\leq i<k-1;\\ \{r_{0}\}&\mbox{if }i=k-1;\end{cases}\qquad r_{i}\cdot s=\begin{cases}\{r_{i+1}\}&\mbox{if }0\leq i<k;\\ \{q_{1}\}&\mbox{if }i=k;\end{cases}
qis={{qi+1}if 1i<k;Q{f}if i=k;fs={f}.q_{i}\cdot s=\begin{cases}\{q_{i+1}\}&\mbox{if }1\leq i<k;\\ Q\cup\{f\}&\mbox{if }i=k;\end{cases}\qquad f\cdot s=\{f\}.

The action of letter ss for k=3k=3 is illustrated below:

action of ssp0p_{0}p1p_{1}p2p_{2}r0r_{0}r1r_{1}r2r_{2}r3r_{3}q1q_{1}q2q_{2}q3q_{3}ff

Now we define the action of letter dd. As mentioned above, we split the roles of states from the set PP from the ternary case between the sets PP and RR. State ff now also plays a different role: if the counting is done correctly, ff is only active in the very beginning of the counting process. After dd is applied at least once, p0p_{0} becomes active. From this moment onwards, there will always be at least one active state from the set PRP\cup R. The leftmost active state will remember by how much the representation of the tracked number is shifted. The action of dd forces this representation to be shifted to the right part, otherwise all the states are reactivated. After this shift is performed, there is exactly one active state in RR, and this state remembers how many zeroes there are at the end of the tracked number. Then an application of dd decrements the value of the tracked number by one, just like in the ternary case (or, also like in the ternary case, makes the number larger if it was not shifted enough), and one state in PP gets reactivated to preserve the information about the current shift. Formally,

pid=PRQ{f} for 0ik1;rid={{pi}{q1,,qi}if 0i<k;if i=k;\begin{split}p_{i}\cdot d=P\cup R\cup Q\cup\{f\}\\ \mbox{ for }0\leq i\leq k-1;\end{split}\qquad r_{i}\cdot d=\begin{cases}\{p_{i}\}\cup\{q_{1},\ldots,q_{i}\}&\mbox{if }0\leq i<k;\\ \emptyset&\mbox{if }i=k;\end{cases}
qid={{ri}if 1i<k;if i=k;fd={p0}.q_{i}\cdot d=\begin{cases}\{r_{i}\}&\mbox{if }1\leq i<k;\\ \emptyset&\mbox{if }i=k;\end{cases}\qquad f\cdot d=\{p_{0}\}.

The action of dd is illustrated below, with transitions from r0,r1,r3r_{0},r_{1},r_{3} omitted:

action of ddp0p_{0}p1p_{1}p2p_{2}r0r_{0}r1r_{1}r2r_{2}r3r_{3}q1q_{1}q2q_{2}q3q_{3}ff

The proof that thus constructed NFA 𝒜\mathcal{A} admits a mortal word is very similar to that in Theorem 5: if all shifts are performed correctly (that is, if Q{f}Q\cup\{f\} never gets reactivated) and fully, then the tracked number decreases by one with each application of dd, until it becomes zero and we can use dd to kill the remaining active state from PP. A few first steps are illustrated below, with the tracked number highlighted:

p0p_{0}p1p_{1}p2p_{2}r0r_{0}r1r_{1}r2r_{2}r3r_{3}q1q_{1}q2q_{2}q3q_{3}ff1111111111100000001111100011000000000100011001000101000s7s^{7}dds4s^{4}dd

To prove a lower bound on the length of a shortest mortal word, we formally look at bin(w)\operatorname{bin}(w^{\prime}) for prefixes ww^{\prime} of an applied word ww such that state p0p_{0} is active after the application of ww^{\prime}. As in the ternary case, we argue that for two such subsequent prefixes ww^{\prime} and w′′w^{\prime\prime} we have that bin(w′′)bin(w)1\operatorname{bin}(w^{\prime\prime})\geq\operatorname{bin}(w^{\prime})-1 by construction. Thus, the length of a shortest mortal word is at least 2k2^{k}. ∎

4 Why do automata die slowly?

The presented constructions, as well as all mentioned constructions from the literature, have purely combinatorial nature. In this brief section we discuss a possibility of a more algebraic view on automata mortality. We focus on a simpler case of strongly connected DFAs, since even for this case very little is known. A DFA is called strongly connected if for every pair p,qp,q of its states there is a word mapping pp to qq.

In [AVG13], another reachability property of strongly connected complete DFAs, namely the reset threshold, was linked to exponents of primitive matrices. A word is called synchronizing for a complete DFA 𝒜\mathcal{A} if it maps all states of 𝒜\mathcal{A} to the same state. The length of a shortest synchronizing word of 𝒜\mathcal{A} is then called its reset threshold. Let MM be the sum of the matrices of all letters of 𝒜\mathcal{A}. If 𝒜\mathcal{A} is synchronizing, MM must be primitive. A matrix is primitive if some its power has only strictly positive entries. The smallest such power is called the exponent of a matrix. In [AVG13] it is proved that the exponent of MM is at most the reset threshold of 𝒜\mathcal{A} plus n1n-1, where nn is the number of states of 𝒜\mathcal{A}. Thus, one obstacle for a complete DFA to synchronize fast is a large exponent of the corresponding matrix. A more advanced property of similar kind is proposed in [Gus13].

The DFA mortality problem is sometimes framed as synchronization of a particular class of complete DFAs (namely, of complete DFAs with a single sink state), but we find that DFA mortality significantly differs from DFA synchronization and deserves independent treatment. One reason for that is the dependence on the size of the alphabet: adding more letters to a complete DFA usually helps to synchronize it faster, but, in contrast, it allows a DFA to “stall” for longer when applying a mortal word. Thus, the known series of complete DFAs with the largest reset threshold have two letters [AVG13], but the series with the largest known mortality threshold have the number of letters equal to the number of states [Rys97]. Perhaps more importantly, the results of [AVG13] do not apply to DFA mortality, since after adding a sink state a DFA stops being strongly connected.

Mortality and synchronization can be viewed as very combinatorial phenomena: having a set of matrices, we ask for just one product of such matrices with a certain property, and hence have to make a lot of independent choices when constructing this product. Primitivity of a single matrix has much more algebraic flavour to it, since it concerns iterated multiplication of a single matrix.

We thus pose the following semi-formal question: is there an algebraic property of a DFA telling us something about its mortality threshold?

A simpler question is to ask for an algebraic property guaranteeing that a mortal word exists. For DFAs this is trivial, but for unambiguous NFAs, a proper superclass of DFAs, such property is precisely that the joint spectral radius of the corresponding set of matrices is strictly smaller than one [KM21]. For general NFAs one has to keep in mind that deciding the existence of a mortal word becomes PSPACE-complete, and hence one has to look for a “non-constructive” property.

The discovery of the connection between reset threshold and the exponent of a matrix in [AVG13] was done by observing in exhaustive search experiments the similarity between the attainable large values of reset thresholds on the one hand and exponents of primitive matrices on the other hands. The present paper can be seen as a step towards a similar potential development for mortality. For small nn, it is not hard to write down the sets of n×nn\times n matrices with large mortality thresholds provided in the previous section, in case one wants to check some conjectures connected to our question. To further assist with this goal, we now briefly survey what is known about DFA mortality, and provide a new simple family of binary DFAs with large mortality thresholds.

Denote by 𝐦𝐭d(n,m)\mathbf{mt}_{\mathrm{d}}(n,m) the maximum mortality threshold of a DFA with nn states and mm letters admitting a mortal word. In [Rys97] it is proved that for all mm we have 𝐦𝐭d(n,m)n(n+1)2\mathbf{mt}_{\mathrm{d}}(n,m)\leq\frac{n(n+1)}{2}, and that this upper bound is tight already for m=nm=n. The binary case is more intriguing. To the best of our knowledge, the first series of nn-state binary DFAs with quadratic mortality threshold is provided in Proposition 3.4 of [BCM+03], showing that 𝐦𝐭d(n,2)(n1)24\mathbf{mt}_{\mathrm{d}}(n,2)\geq\frac{(n-1)^{2}}{4}. Later on, such series with slightly larger mortality threshold were provided in [Mar08] and [AV19], showing, respectively,

𝐦𝐭d(n,2)n2+8n4+𝒪(1)and𝐦𝐭d(n,2)n2+10n4+𝒪(1).\mathbf{mt}_{\mathrm{d}}(n,2)\geq\frac{n^{2}+8n}{4}+\mathcal{O}(1)\quad\mbox{and}\quad\mathbf{mt}_{\mathrm{d}}(n,2)\geq\frac{n^{2}+10n}{4}+\mathcal{O}(1).

A few more series with simpler structure but with slightly smaller mortality threshold are provided in [Ryz19]. It is not known if 𝐦𝐭d(n,2)=n24+𝒪(n)\mathbf{mt}_{\mathrm{d}}(n,2)=\frac{n^{2}}{4}+\mathcal{O}(n).

Below we provide a very simple series of binary DFAs with mortality threshold n2+8n4+𝒪(1)\frac{n^{2}+8n}{4}+\mathcal{O}(1) which does not seem to appear in the literature. It can be seen as a simplification of the construction from [Mar08] with approximately the same mortality threshold. Let 𝒜=(Q,{a,b},δ)\mathcal{A}=(Q,\{a,b\},\delta) be such that Q={q1,,qk,p1,,pk}Q=\{q_{1},\ldots,q_{k},p_{1},\ldots,p_{k}\}. Define

qia={qi+1if 1i<k;q1if i=k;pia={pi+1if 1i<k;if i=k;q_{i}\cdot a=\begin{cases}q_{i+1}&\mbox{if }1\leq i<k;\\ q_{1}&\mbox{if }i=k;\end{cases}\quad p_{i}\cdot a=\begin{cases}p_{i+1}&\mbox{if }1\leq i<k;\\ \emptyset&\mbox{if }i=k;\end{cases}
qib={p1if i=1;qkif i=2;qi1if 2<ik;pib=q1 for 1ik.q_{i}\cdot b=\begin{cases}p_{1}&\mbox{if }i=1;\\ q_{k}&\mbox{if }i=2;\\ q_{i-1}&\mbox{if }2<i\leq k;\end{cases}\quad p_{i}\cdot b=q_{1}\mbox{ for }1\leq i\leq k.

The fact that 𝒜\mathcal{A} has mortality threshold n2+8n4+𝒪(1)\frac{n^{2}+8n}{4}+\mathcal{O}(1) follows, for example, from Lemma 1 in [AV19], since this is another example of adding a tail to an almost permutation automaton, formally defined in [AV19]. While most of the known series with large mortality thresholds have this structure, not all of them do: for example, DFAs from the series in [BCM+03] do not have a tail, and have a cycle going through all states instead.

An illustration for the case k=4k=4 is provided below, with the action of aa depicted by solid arrows and the action of bb by dashed arrows.

q1q_{1}q2q_{2}q3q_{3}q4q_{4}p1p_{1}p2p_{2}p3p_{3}p4p_{4}

The unique shortest mortal word for this DFA is akbakabak(aabak)k2a^{k}ba^{k}aba^{k}(aaba^{k})^{k-2}. The intuition behind this word is that if everything is done “optimally”, after killing (that is, applying a word that is undefined for a state) two states among q1,,qkq_{1},\ldots,q_{k}, the structure of the cycles on them maintains that q1q_{1} and qkq_{k} are inactive, and hence they have to be traversed in the process of killing every remaining active state from q1,,qkq_{1},\ldots,q_{k}.

5 Conclusions and open problems

One of the most interesting questions that remains open is the precise behaviour of 𝐦𝐭(n,m)\mathbf{mt}(n,m) and 𝐦𝐭d(n,m)\mathbf{mt}_{\mathrm{d}}(n,m) for m=2m=2 and m=3m=3. As already discussed in Section 4, lower bounds on 𝐦𝐭d(n,2)\mathbf{mt}_{\mathrm{d}}(n,2) were investigated quite actively [AV19, BCM+03, Mar08, Ryz19], and all these bounds are still of the form n24+𝒪(n)\frac{n^{2}}{4}+\mathcal{O}(n). To the best of our knowledge, there is no plausible conjecture on the value of 𝐦𝐭d(n,2)\mathbf{mt}_{\mathrm{d}}(n,2) in the literature, and there are no known upper bounds better than n(n+1)2\frac{n(n+1)}{2} [Rys97], a bound that holds for any size of the alphabet. It is in fact easy to see that this bound cannot be tight for 𝐦𝐭d(n,2)\mathbf{mt}_{\mathrm{d}}(n,2), but we were not able to obtain a significant improvement for it. However, we conjecture that it can be improved to at least the bound 𝐦𝐭d(n,2)7n216+𝒪(n)\mathbf{mt}_{\mathrm{d}}(n,2)\leq\frac{7n^{2}}{16}+\mathcal{O}(n). As for bounds on 𝐦𝐭d(n,3)\mathbf{mt}_{\mathrm{d}}(n,3), we are not aware of any results. Since the dependence of 𝐦𝐭d(n,m)\mathbf{mt}_{\mathrm{d}}(n,m) on mm seems to be far from trivial, this is a natural first step to approach its investigation. Alternatively, one can ask for bounds on 𝐦𝐭d(n,n2)\mathbf{mt}_{\mathrm{d}}(n,\frac{n}{2}).

The same questions can be asked about 𝐦𝐭(n,m)\mathbf{mt}(n,m), and the situation with existing results is similar: we already surveyed known lower bounds in Section 2 and mentioned that 𝐦𝐭(n,m)2n1\mathbf{mt}(n,m)\leq 2^{n}-1. To the best of our knowledge, no better upper bounds for small mm are known, and the same comments that we made about the precise dependence of 𝐦𝐭d(n,m)\mathbf{mt}_{\mathrm{d}}(n,m) on mm also apply to 𝐦𝐭(n,m)\mathbf{mt}(n,m).

Mortality of unambiguous NFAs is even further from being understood. As mentioned in the introduction, we know that the mortality threshold for them is between n(n+1)2\frac{n(n+1)}{2} [Rys97] and n5n^{5} [KM21]. The lower bound is provided by a series of DFAs, and all known families of unambiguous NFAs with large mortality threshold are DFAs or their co-deterministic counterparts (obtained by reversing the direction of each transition). Since unambiguous NFAs constitute a much more general class than DFAs, this is a curious situation that deserves further investigation.

Finally, it would be interesting to see any subclasses with good (that is, polynomial) behaviour of 𝐦𝐭(n,m)\mathbf{mt}(n,m) besides the class of unambiguous NFAs [KM21].

Acknowledgments

The author greatly benefited from talking to (and sometimes at) Andrei Draghici. The comments of anonymous reviewers improved the presentation of the paper. The SynchroViewer software (github.com/marekesz/synchroviewer) was helpful for testing conjectures about shortest mortal words for DFAs. The author is supported by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (Grant agreement No. 852769, ARiAT).

References

  • [AV19] Dmitry S. Ananichev and Vojtech Vorel. A new lower bound for reset threshold of binary synchronizing automata with sink. Journal of Automata, Languages and Combinatorics, 24(2-4):153–164, 2019.
  • [AVG13] Dmitry. S. Ananichev, Mikhail. V. Volkov, and Vladimir. V. Gusev. Primitive digraphs with large exponents and slowly synchronizing automata. Journal of Mathematical Sciences, 192(3):263–278, 2013.
  • [BC19] Antonio Boccuto and Arturo Carpi. On the length of uncompletable words in unambiguous automata. RAIRO – Theoretical Informatics and Applications, 53(3-4):115–123, 2019.
  • [BCM+03] Marie-Pierre Béal, Maxime Crochemore, Filippo Mignosi, Antonio Restivo, and Marinella Sciortino. Computing forbidden words of regular languages. Fundamenta Informaticae, 56(1-2):121–135, 2003.
  • [BPR10] Jean Berstel, Dominique Perrin, and Christophe Reutenauer. Codes and automata, volume 129. Cambridge University Press, 2010.
  • [CHHN14] Julien Cassaigne, Vesa Halava, Tero Harju, and François Nicolas. Tighter undecidability bounds for matrix mortality, zero-in-the-corner problems, and more. CoRR, abs/1404.0644, 2014.
  • [DDZ19] Michiel De Bondt, Henk Don, and Hans Zantema. Lower bounds for synchronizing word lengths in partial automata. International Journal of Foundations of Computer Science, 30(1):29–60, 2019.
  • [EKSW04] Keith Ellul, Bryan Krawetz, Jeffrey O. Shallit, and Ming-wei Wang. Regular expressions: New results and open problems. Journal of Automata, Languages and Combinatorics, 9(2/3):233–256, 2004.
  • [GGJ18] Balázs Gerencsér, Vladimir V. Gusev, and Raphaël M. Jungers. Primitive sets of nonnegative matrices and synchronizing automata. SIAM Journal on Matrix Analysis and Applications, 39(1):83–98, 2018.
  • [GHKR82] Pavel Goralčík, Z. Hedrlín, Václav Koubek, and V. Ryslinková. A game of composing binary relations. RAIRO – Theoretical Informatics and Applications, 16(4):365–369, 1982.
  • [Gus13] Vladimir V. Gusev. Lower bounds for the length of reset words in eulerian automata. International Journal of Foundations of Computer Science, 24(2):251–262, 2013.
  • [III03] Balázs Imreh, Csanád Imreh, and Masami Ito. On directable nondeterministic trapped automata. Acta Cybernetica, 16(1):37–45, 2003.
  • [IS99] Balázs Imreh and Magnus Steinby. Directable nondeterministic automata. Acta Cybernetica, 14(1):105–115, 1999.
  • [KM21] Stefan Kiefer and Corto N. Mascle. On nonnegative integer matrices and short killing words. SIAM Journal on Discrete Mathematics, 35(2):1252–1267, 2021.
  • [KRS09] Jui-Yi Kao, Narad Rampersad, and Jeffrey O. Shallit. On NFAs where all states are final, initial, or both. Theoretical Computer Science, 410(47-49):5010–5021, 2009.
  • [LM21] Douglas Lind and Brian Marcus. An introduction to symbolic dynamics and coding. Cambridge University Press, 2021.
  • [Mar08] Pavel V. Martugin. A series of slowly synchronizing automata with a zero state over a small alphabet. Information and Computation, 206(9-10):1197–1203, 2008.
  • [Mar10] P. V. Martyugin. A lower bound for the length of the shortest carefully synchronizing words. Russian Mathematics, 54(1):46–54, 2010.
  • [MS21] Maksymilian Mika and Marek Szykuła. The frobenius and factor universality problems of the kleene star of a finite set of words. Journal of the ACM, 68(3), 2021.
  • [Pat70] Mike Paterson. Unsolvability in 3×33\times 3 matrices. Studies in Applied Mathematics, 49:105–107, 1970.
  • [PV12] V Yu Protasov and AS Voynov. Sets of nonnegative matrices without positive products. Linear Algebra and its Applications, 437(3):749–765, 2012.
  • [Res81] Antonio Restivo. Some remarks on complete subsets of a free monoid. Quaderni de La ricerca scientifica, CNR Roma, 109:19–25, 1981.
  • [RS18] Andrew Ryzhikov and Anton Shemyakov. Subset synchronization in monotonic automata. Fundamenta Informaticae, 162(2-3):205–221, 2018.
  • [RSX12] Narad Rampersad, Jeffrey O. Shallit, and Zhi Xu. The computational complexity of universality problems for prefixes, suffixes, factors, and subwords of regular languages. Fundamenta Informaticae, 116(1-4):223–236, 2012.
  • [Rys80] Igor K. Rystsov. Asymptotic estimate of the length of a diagnostic word for a finite automaton. Cybernetics, 16(2):194–198, 1980.
  • [Rys97] Igor K. Rystsov. Reset words for commutative and solvable automata. Theoretical Computer Science, 172(1-2):273–279, 1997.
  • [Ryz19] Andrew Ryzhikov. Mortality and synchronization of unambiguous finite automata. In Robert Mercas and Daniel Reidenbach, editors, Combinatorics on Words - 12th International Conference, WORDS 2019, Loughborough, UK, September 9-13, 2019, Proceedings, volume 11682 of Lecture Notes in Computer Science, pages 299–311. Springer, 2019.
  • [Sen06] Eugene Seneta. Non-negative matrices and Markov chains. Springer Science & Business Media, 2006.
  • [WZ23] Yaokun Wu and Yinfeng Zhu. Primitivity and hurwitz primitivity of nonnegative matrix tuples: A unified approach. SIAM Journal on Matrix Analysis and Applications, 44(1):196–211, 2023.