Repetitive Finite Automata With Translucent Letters
Abstract
Here we propose an extension of the (deterministic and the nondeterministic) finite automaton with translucent letters (DFAwtl and NFAwtl), which lies between these automata and their non-returning variants (that is, the nr-DFAwtl and the nr-NFAwtl). This new model works like a DFAwtl or an NFAwtl, but on seeing the end-of-tape marker, it may change its internal state and continue with its computation instead of just ending it, accepting or rejecting. This new type of automaton is called a repetitive deterministic or nondeterministic finite automaton with translucent letters (RDFAwtl or RNFAwtl). In the deterministic case, the new model is strictly more expressive than the DFAwtl, but less expressive than the nr-DFAwtl, while in the nondeterministic case, the new model is equivalent to the NFAwtl.
1 Introduction
While a finite automaton reads its input strictly from left to right, letter by letter, by now many types of automata have been considered in the literature that process their inputs in a different, more involved way. Under this aspect, the most extreme is the jumping finite automaton of Meduna and Zemek [8] (see also [6]), which, after reading a letter, jumps to an arbitrary position of the remaining input. It is known that the jumping finite automaton accepts languages that are not even context-free, like the language , but at the same time, it does not even accept the finite language .
Another example is the restarting automaton as introduced by Jančar, Mráz, Plátek, and Vogel in [7], which processes a given input in cycles. In each cycle, a restarting automaton scans its tape contents from left to right, using a window of a fixed finite size, until it executes a delete/restart operation. Such an operation deletes one or more letters from the current contents of the window, returns the window to the left end of the tape, and resets the automaton to its initial state. If a window of size larger than one is used, these so-called R-automata accept a proper superclass of the regular languages that is incomparable to the context-free and the growing context-sensitive languages with respect to inclusion (see, e.g., [18]). However, with a window of size one, the R-automata accept exactly the regular languages [9].
Finally, there is the (deterministic and nondeterministic) finite automaton with translucent letters (or DFAwtl and NFAwtl) of Nagy and Otto [14], which is equivalent to a cooperating distributed system of stateless deterministic R-automata with windows of size one. For each state of an NFAwtl, there is a set of translucent letters, which is a subset of the input alphabet that contains those letters that the automaton cannot see when it is in state . Accordingly, in each step, the NFAwtl just reads (and deletes) the first letter from the left which it can see, that is, which is not translucent for the current state. Here, it is important to notice that, in each step, an NFAwtl reads the current tape contents from the very left, that is, after deleting a letter, it returns its head to the first letter of the remaining tape contents. It has been shown that the NFAwtl accepts a class of semi-linear languages that properly contains all rational trace languages, while its deterministic variant, the DFAwtl, is properly less expressive. In fact, the DFAwtl just accepts a class of languages that is incomparable to the rational trace languages with respect to inclusion [13, 15, 16, 17]. Although the NFAwtl is quite expressive, it cannot even accept the deterministic linear language , as such an automaton cannot possibly compare the number of occurrences of the letter with the number of occurrences of the letter and ensure, at the same time, that all ’s precede the first .
To make up for this shortcoming, a variant of the finite automaton with translucent letters has been proposed in [10], which, after reading and deleting a letter, does not return its head to the first letter of the remaining tape contents, but that rather continues from the position of the letter just deleted. This means that, in general, only a scattered subword of the input has been read and deleted before the head reaches the end of the input. If the computation is now required to halt, either accepting or rejecting, then it can easily be shown that this type of automaton just accepts the class of regular languages. For the right one-way jumping finite automaton of [2, 4], this problem is overcome by cyclically shifting all the translucent letters that are encountered during a computation to the end of the current tape contents. In this way, these letters may be read and deleted at a later stage of the computation. For the type of automaton proposed in [10], a different approach was taken. When the head of the automaton reaches the end of the input, which is marked by a special end-of-tape marker, then the automaton can decide whether to accept, reject, or continue, which means that it changes its state and again reads the remaining tape contents from the beginning.
It has been established that this type of automaton, called a non-returning finite automaton with translucent letters or an nr-NFAwtl, is strictly more expressive than the NFAwtl. This result also holds for the deterministic case, although the deterministic variant, the nr-DFAwtl, is still not sufficiently expressive to accept all rational trace languages. In [11], the nr-DFAwtl and the nr-NFAwtl are compared to the jumping finite automaton, the right one-way jumping finite automaton of [2, 4], and the right-revolving finite automaton of [3], deriving the complete taxonomy of the resulting classes of languages. As it turns out, the nr-DFAwtl can be seen as an extension of the right one-way jumping finite automaton that can detect the end of its input.
When we look at the above description of the generalization of the NFAwtl to the nr-NFAwtl, then we realize that this generalization actually consists of two steps:
-
•
The head of the automaton does not return to the left end of the tape after a letter has been read and deleted. This is the non-returning property (in contrast to the returning property of the NFAwtl).
-
•
Once the end-of-tape marker is reached, an nr-NFAwtl may execute a step that changes its state and returns its head to the left end of the tape. We call this the property of being repetitive (in contrast to the non-repetitiveness of the NFAwtl, which must immediately halt as soon as its head reaches the end-of-tape marker).
In this paper, we study the influence that these two properties have on the expressive capacity of the finite automaton with translucent letters in detail. As we consider both, the deterministic and non-deterministic variants of the resulting types of automata, we obtain eight different classes of automata with translucent letters. In addition, we also include the (deterministic and the non-deterministic) right one-way jumping finite automaton in our study. We shall derive the complete taxonomy of the resulting language classes, which will nicely illustrate the effects that the non-returning property and the repetitiveness have.
Actually, we shall only encounter one new language class that has not been considered before: the class of languages that are accepted by repetitive DFAwtls. After presenting the necessary notation and definitions in Section 2, we shall present our results on repetitive DFAwtls and repetitive NFAwtls in Section 3. Here, it turns out that the repetitive DFAwtl (the RDFAwtl) is strictly more expressive than the DFAwtl, while its nondeterministic variant, the repetitive NFAwtl (the RNFAwtl), is equivalent to the NFAwtl. Then, in Section 4, we consider closure and non-closure properties for the language class . Finally, in the concluding section, we address the membership problem and some other decision problems for the RDFAwtl in short, and we state some open problems.
2 Definitions
First, we restate the definition of the nondeterministic finite automaton with translucent letters and its deterministic variant, the DFAwtl, from [14].
Definition 1
A finite automaton with translucent letters, or an NFAwtl for short, is defined as a 7-tuple , where is a finite set of internal states, is a finite alphabet of input letters, is a special letter that is used as an end-of-tape marker, is a translucency mapping, is a set of initial states, is a set of final states, and is a transition relation. Here, we require that, for each state and each letter , if , then
An NFAwtl is a deterministic finite automaton with translucent letters, abbreviated as DFAwtl, if and for all and all .
A configuration of is a word from the set . A configuration of the form , where and , expresses the situation that is in state , its tape contains the word followed by the sentinel , and the head of is on the first letter of . For an input word , a corresponding initial configuration is of the form , where . The NFAwtl induces the following single-step computation relation on its set of configurations:
Thus, in each step, reads and deletes the first letter from the left that is not translucent for the current state. In addition, if all letters on the tape are translucent for the current state, then halts, and it accepts if the current state is final. A word is accepted by if there exists an initial state and a computation , where denotes the reflexive transitive closure of the single-step computation relation . Now, is the language accepted by , and denotes the class of all languages that are accepted by NFAwtls. Analogously, denotes the class of all languages that are accepted by DFAwtls.
Next, we define the first of the two possible extensions of the automaton with translucent letters that we mentioned above.
Definition 2
A repetitive finite automaton with translucent letters, or an RNFAwtl, is specified through a 6-tuple , where , , , , and are defined as for an NFAwtl, while the transition relation is a mapping . Here, it is required that, for each state and each letter , and, if , then In addition, for each state , is either a subset of or .
The set of configurations for an RNFAwtl is the same as for an NFAwtl. The RNFAwtl induces the following single-step computation relation on its set of configurations:
Thus, if all letters on the tape are translucent for the current state and is nonempty, then changes its state to and continues with its computation. The language accepted by is defined as that is, it consists of all words for which has an accepting computation, and denotes the class of all languages that are accepted by RNFAwtls.
An RNFAwtl is a repetitive deterministic finite automaton with translucent letters, or an RDFAwtl, if and for all and all . denotes the class of all languages that are accepted by RDFAwtls.
Obviously, each NFAwtl can easily be turned into an RNFAwtl for the same language. Of course, the same applies to a DFAwtl, giving an RDFAwtl for the same language. Thus, we have the following inclusion relations.
Proposition 3
and .
The following simple example illustrates the way in which a repetitive finite automaton with translucent letters works.
Example 4
Let be the RDFAwtl that is defined as follows:
-
•
and ,
-
•
,
-
•
-
•
while yields the empty set for all other pairs from .
Using the graphical notation introduced in [11] for describing non-returning NFAwtls, the RDFAwtl can be depicted more compactly by the diagram in Fig. 1.
For example, the RDFAwtl can execute the following accepting computations:
and
In fact, it can be checked that
Finally, we come to the second extension of the automaton with translucent letters that we mentioned in the introduction.
Definition 5
A non-repetitive non-returning finite automaton with translucent letters, or an nr-nr-NFAwtl, is defined like an NFAwtl, but its computation relation is defined differently. Let be an nr-nr-NFAwtl. Its set of configurations is . A configuration of the form , where and , expresses the situation that is in state , the tape contains the word , and the head of is on the first letter of the suffix . The single-step computation relation that induces on this set of configurations is defined as follows, where and :
Thus, in each step, reads and deletes the first letter to the right of the current position of its head that is not translucent for the current state. In particular, after reading and deleting a letter, the head does not return to the left end of the tape (that is why this type of automaton is called non-returning), but it rather moves to the next letter. In addition, if all letters on the tape that are to the right of the current head position are translucent for the current state, then halts, and it accepts if the current state is final. A word is accepted by if there exists an initial state and a computation , where denotes the reflexive transitive closure of the single-step computation relation . Now, is the language accepted by , and denotes the class of all languages that are accepted by nr-nr-NFAwtls.
An nr-nr-NFAwtl is a non-repetitive non-returning deterministic finite automaton with translucent letters, or an nr-nr-DFAwtl, if and for all and all . Then, denotes the class of all languages that are accepted by nr-nr-DFAwtls.
The following result states that the non-repetitive non-returning finite automata with translucent letters of Def. 5 are very weak in that they just accept the regular languages.
Theorem 6
From an nr-nr-NFAwtl , one can construct an NFA such that . In addition, if is deterministic, then so is .
Proof. Let be an nr-nr-NFAwtl. From the definition of the computation relation of , we see immediately that, whenever is a step in an accepting computation of , where , , and , then the prefix will not be read again during the remaining part of this accepting computation. Thus, instead of ignoring these letters, we could simply delete them. Accordingly, accepts the same language as the NFA that is defined through the following transition relation:
Trivially, if is deterministic, the constructed automaton is deterministic, too.
It was actually this observation that led us to define the nr-NFAwtl and the nr-DFAwtl in [10].
Definition 7 ([10])
An nr-NFAwtl is defined like an RNFAwtl but with the additional extension that it is non-returning, that is, it behaves like an nr-nr-NFAwtl, but for some states , may be a subset of . Thus, if is in a configuration of the form , where satisfying , , and , then for each state . If and for all and all , then is an nr-DFAwtl. We use and to denote the corresponding classes of languages.
Thus, an nr-NFAwtl is both at the same time, non-returning in the sense of Def. 5 and repetitive in the sense of Def. 2. In particular, the nr-NFAwtl (nr-DFAwtl) should not be confused with the nr-nr-NFAwtl (nr-nr-DFAwtl) of Def. 5. The latter has been introduced here only to complete the picture. Theorem 6 above shows that they are not really interesting types of automata with translucent letters. Finally, we should also mention another related type of automaton, the right one-way jumping finite automaton.
Definition 8 ([2, 4])
A nondeterministic right one-way jumping finite automaton, or an NROWJFA, is given through a 6-tuple , where , , , , and are defined as for an NFAwtl, and is a transition relation. For each state , let be the set of letters that can read in state .
A configuration of the NROWJFA is a word from the set . The computation relation that induces on its set of configurations is the reflexive and transitive closure of the right one-way jumping relation that is defined as follows, where , , and
Thus, being in state , reads and deletes the first letter to the right of the actual head position that it can actually read in that state, while the prefix that consists of letters for which has no transitions in the current state is cyclically shifted to the end of the current tape inscription. Then,
is the language accepted by the NROWJFA .
The NROWJFA is deterministic, that is, a right one-way jumping finite automaton or an ROWJFA, if and for all and .
Actually, as defined in [2, 4], the (N)ROWJFA does not have an end-of-tape marker, but it is obvious that our definition is equivalent to the original one. We just introduced this end-of-tape marker to ensure consistency with our other types of automata. We see that the (N)ROWJFA overcomes the problem of processing letters that are skipped over by cyclically shifting these letters to the right so that they can be read later. The following results are known concerning the various types of automata introduced above.
Theorem 9 ([11])
In addition, is incomparable under inclusion to and , and is incomparable to , , and . Thus, it remains to compare the deterministic and nondeterministic repetitive finite automata with translucent letters to these other types of automata.
3 Comparing the Repetitive Automata to the Non-Repetitive Ones
We claim that the language of Example 4 is not accepted by any DFAwtl. As each DFAwtl can be simulated by an RDFAwtl, this shows that .
Lemma 10
.
Proof. Assume that is a DFAwtl that accepts the language , where , , and .
Let , and let . Then the computation of on input is accepting, that is, it is of the form
where and . If , then would also accept on input , if , then would also accept on input , and if , then would also accept on input . Hence, it follows that , that is, the accepting computation above consists of transition steps, each of which deletes a letter, and the final accepting step. In particular, the only occurrence of the letter is read and deleted during the above computation, that is, there exist an index and integers such that and
We now distinguish several cases.
-
(1)
Assume that . Then executes the following computation on input :
As , we see that the latter computation must be accepting, that is, . Thus, can also execute the following accepting computation:
which, however, contradicts the fact that .
-
(2)
Assume that , but . Then, and , that is, . Now, executes the following computation on input :
As , we see that the latter computation must be accepting, that is, . Thus, can also execute the following accepting computation:
which, however, contradicts the fact that .
-
(3)
Assume that . Then and , that is, . As , there exist a state and integers and such that the accepting computation above has the form
Hence, we also obtain the following accepting computation:
This implies that , which yields .
Now we consider the computations of on input for all :
As , we see that the computation of that begins with the configuration leads to acceptance for all . Hence, we obtain
but we have , as , a contradiction.
As this covers all cases, we see that the language is indeed not accepted by any DFAwtl.
On the other hand, it can be shown quite easily that the RDFAwtl (the RNFAwtl) is a special case of the nr-DFAwtl (the nr-NFAwtl).
Lemma 11
From an RNFAwtl , one can construct an nr-NFAwtl such that . In addition, if is deterministic, then so is .
Proof. Let be an RNFAwtl. We define an nr-NFAwtl that simulates the computations of as follows:
-
•
, where for each state , is an additional auxiliary state, and ,
-
•
for each state , and ,
-
•
for each state and each letter , and .
-
•
Furthermore, for each state , , if , and , otherwise. Finally, .
It remains to verify that just simulates the computations of .
Assume that is a configuration of , that is, and . From the definition of the computation relation , we see that there are four different cases that we must consider.
First, if for some words , , and a letter , then executes a transition from .
-
•
If , then is a possible step of . In this case, can execute the following sequence of steps:
-
•
On the other hand, if , then halts and rejects. However, in this case, also , and hence, halts and rejects as well.
Finally, if , then halts.
-
•
If , then , too.
-
•
If , then rejects. In this case, , that is, halts and rejects as well.
It follows that .
Conversely, if , then it is easily verified that each accepting computation of on input is just a simulation of an accepting computation of on input . Thus, we see that .
Finally, the above definition of shows that is deterministic, if is.
The language
is a rational trace language, and as such, it is accepted by an NFAwtl. However, as proved in [11], this language is not accepted by any nr-DFAwtl. Hence, is not accepted by any RDFAwtl, either. Thus, we immediately obtain the following non-inclusion result.
Corollary 12
.
As defined above, an RNFAwtl may run into an infinite computation. Just assume that is a state of , , and . Then , and so forth. However, we can avoid this by converting into an equivalent RNFAwtl as follows.
Let , where , , for all and all ,
and
Finally, take if . The set is used to record those states in which the end-of-tape marker has been reached, and the computation has continued. In the next cycle, when a non-translucent letter is read, then this set is emptied, otherwise, the next state is added to it. This process continues until either a letter is read and deleted, or until no new state can be added to the current set , in which case the computation fails.
Moreover, an RNFAwtl may accept without having read and deleted its input completely. However, we can easily extend the RNFAwtl into an equivalent RNFAwtl that always reads and deletes its input completely before it accepts. Just take , where is a new state, for all and , and is defined as follows:
Given a word as input, the RNFAwtl will execute exactly the same steps as the RNFAwtl until accepts. Now, the accept step of is simulated by through changing into state . As and as for all , will now read and delete the remaining tape contents and accept on reaching the end-of-tape marker . It follows easily that . Together, the two constructions above yield the following technical result.
Lemma 13
Each RNFAwtl can effectively be converted into an equivalent RNFAwtl that never gets into an infinite computation and that accepts only after reading and deleting its input completely. In addition, if is deterministic, then so is .
Finally, we are ready to establish the following equality, which will be proved by simulation.
Theorem 14
.
Proof. From Proposition 3, we know already that holds. Thus, it remains to prove the converse inclusion. Accordingly, we show how to simulate an RNFAwtl by an NFAwtl.
Let be an RNFAwtl. By Lemma 13, we can assume that never gets into an infinite computation and that it accepts only after reading and deleting its input completely. We now construct an NFAwtl with the set of states . The automaton uses the second component of its states to keep track of the set of letters that may still occur on its tape. At the beginning of its computation, . When simulates a step in which changes its state at the right sentinel because all symbols on its tape are translucent for the state , that is, , then the second component will be restricted to . The NFAwtl is defined as follows:
-
•
, and
-
•
.
-
•
The translucency relation is defined through for all and all , and
-
•
the transition relation is initialized as follows, where , , and :
It remains to add further transitions to that are to simulate the transitions of the form of . Assume that . This transition can be applied by to a configuration of the form for which , and it yields the configuration . Thus, simply executes a change of state, but after that, it ‘knows’ that the word only contains occurrences of letters from the set . Accordingly, for each state and each letter , if , then we add the state to for each subset containing the letter . This transition allows to simulate the sequence of two transitions , where and , by the single transition . In addition, if , then the state is added to the set , as may start a computation by executing the step , if .
It can now be checked that just simulates the computations of . If during such a simulation, is in a state but an occurrence of a letter is encountered, then gets stuck and, so, rejects, as in that situation, the letter is neither translucent for the state nor is the transition defined. It follows that , which completes the proof.
It remains to compare the RDFAwtl to the nr-DFAwtl, the nr-NFAwtl, and the (N)ROWJFA. The deterministic linear language is accepted by an nr-DFAwtl [10]. However, it is not accepted by any NFAwtl [14]. Hence, we get the following result from Lemma 11.
Corollary 15
.
According to [11], the language classes and are incomparable under inclusion to the classes and . Accordingly, we also have the following incomparability result.
Corollary 16
The language class is incomparable under inclusion to the classes and .
The diagram in Figure 2 summarizes the inclusion and incomparability results obtained for the various types of automata with translucent letters. All arrows in that diagram denote proper inclusions, and classes that are not connected by a sequence of arrows are incomparable under inclusion. Here, denotes the class of rational trace languages (see, e.g., [16]), GCSL is the class of growing context-sensitive languages (see, e.g., [5]), and (D)LIN is the class of (deterministic) linear context-free languages.
4 Closure Properties
In this section, we study closure properties of the classes of languages accepted by deterministic and nondeterministic repetitive finite automata with translucent letters. As the class of languages accepted by RNFAwtls coincides with the class , based on [16], we obtain immediately that is closed under union, product, Kleene star, inverse projections, disjoint shuffle, and the operation of taking the commutative closure, but it is neither closed under intersection (with regular sets), nor under complementation, nor under non-erasing morphisms.
On the other hand, for the class , it is known [17] that it is closed under complementation, but it is not closed under any of the following operations: union, intersection (with regular sets), product, Kleene star, reversal, alphabetic morphisms, and commutative closure.
Here, the commutative closure of a language is based on the letter-equivalence of words. We say that two words and over an alphabet are letter-equivalent if, for each letter , . The commutative closure of a language is the set of all words that are letter-equivalent to a word from , that is,
In addition, we are interested in the shuffle operation. For two words and from , the shuffle of and is the set of words
and the shuffle of two languages is the language
We shall show that is closed under complementation, left quotient with respect to a single word, and disjoint shuffle. However, it is not closed under union, intersection (with regular sets), product, Kleene star, reversal, alphabetic morphism, commutative closure, and shuffle.
To begin with, observe that the languages
are both accepted by DFAwtls. However, their union is the language that is not even accepted by any nr-DFAwtl. In addition, if denotes the regular language that is defined through the regular expression , then . Moreover, let . Then, it is easily verified that the language is also accepted by a DFAwtl. However, if denotes the alphabetic morphism that is defined through , , , and , then . Finally, the language is not accepted by any NFAwtl [14]. In summary, these examples yield the following non-closure properties.
Corollary 17
The language class is not closed under union, intersection (with regular sets), alphabetic morphisms, or commutative closure.
Next, we prove that the class is closed under the operation of complementation.
Proposition 18
is closed under complementation.
Proof. Let be an RDFAwtl. To obtain an RDFAwtl accepting the complement of , we need to change all accepting steps into rejecting ones and all rejecting steps into accepting ones. For that matter, we extend the set of states of with an additional state that will always lead to acceptance, that is, . The translucency mapping equals for all states , and . Finally, we define the transition relation of as follows, where and :
Now, whenever a computation of the automaton on an input word is accepting, it is of the following form:
Then, the automaton will execute the computation Whenever a computation of on an input word is rejecting, then
Here either
-
1.
for some such that , or
-
2.
and .
In both cases, the automaton will execute an accepting computation of the form
Thus, we see that , the complement of the language .
The next lemma states that an RDFAwtl can be assumed to always read the very first letter during the first step of each accepting computation. This is a purely technical result that will be useful below.
Lemma 19
From an RDFAwtl , one can effectively construct an equivalent RDFAwtl such that, in the first step of each computation, reads the very first letter of the given input.
Proof. Let be an RDFAwtl, and let be the language accepted by . By Lemma 13, we can assume that never gets into an infinite computation and that it reads and deletes its input completely in each accepting computation. In fact, we can even assume that reads and deletes its input completely in each and every computation, that is, even in all its rejecting computations (see, e.g., the proof of Prop. 18). Moreover, we may assume without loss of generality that the initial state is not entered by any transition, that is, this state can only occur in initial configurations of .
We now describe the RDFAwtl through the following definition:
The states of the form are used to encode the fact that is in state and that the first letter on the tape was an , which, however, has not yet been read by (but was already read by ). Hence, by our above assumptions on the computations of , we see that, if is in state reading the sentinel , then holds.
From the above definition, it follows immediately that, in each computation, the RDFAwtl reads and deletes the first letter on the tape. Moreover, the initial state , which is not entered by any transition of , is not entered by any transition of , either. Now, by comparing the computations of on a given word to that of on , it can be verified that is equivalent to , that is, that holds.
For a language and a word , the left quotient of with respect to is the language
If is accepted by an RDFAwtl , then by Lemma 19, we can assume that always reads the first letter of the given input during the first step of each computation. Hence, for each letter , the RDFAwtl accepts the language , which shows that is accepted by an RDFAwtl. By induction on , it now follows that is accepted by an RDFAwtl for each word .
Corollary 20
The language class is closed under the operation of taking the left quotient with respect to a single word.
To derive the other non-closure properties stated above, we need the following technical results.
Lemma 21
None of the following languages is accepted by an RDFAwtl:
Proof. (a) Let . For deriving a contradiction, we assume that is an RDFAwtl such that . Without loss of generality, we may assume that reads and deletes its input completely during each accepting computation.
For each , the word belongs to the language . Accordingly, the computation of on input is of the form where . Thus, in particular, the single occurrence of the letter is read and deleted during this computation. Accordingly, this computation can be written as follows:
where , , and . Then can also execute the following computation:
However, the word is not an element of the language unless and , which means that, in the accepting computation above, first reads and deletes all occurrences of the letters and before it reads the single occurrence of the letter . In particular, it follows that this computation has the form
Now, let . If the computation begins with many steps that each read an occurrence of the letter , then there is a state that is used twice during these steps, that is
where , , and . But then can also execute the following accepting computation:
However, as , the word does not belong to the language , a contradiction. This implies that, within the first many steps in the accepting computation considered, an occurrence of the letter is read and deleted.
Let us now consider the first step in the above computation during which an occurrence of the letter is deleted:
where , , , and . Given the input , will also accept. However, as is deterministic, the corresponding accepting computation begins with
where .
If , then together with the partial computation the automaton could also execute the following partial computation:
As , the former computation leads to acceptance and, hence, so does the latter. This yields a contradiction, as . Hence, it follows that .
This implies that, in the above configuration , reads and deletes the letter , that is, for some . Thus, we obtain the accepting computation
But then, we also obtain the accepting computation
which yields a contradiction, as . In summary, this shows that the language is not accepted by any RDFAwtl.
(b) Assume to the contrary that or is accepted by an RDFAwtl. Lemma 19 implies that the language
is also accepted by an RDFAwtl , where . For all , the word belongs to the language , which means that the computation of on input is accepting. However, using pumping arguments as in the proof of (a), it can now be shown that, together with the words , the RDFAwtl also accepts some words that do not belong to the language . Accordingly, the languages and are not accepted by any RDFAwtls.
(c) By using pumping arguments, it can be proved that an RDFAwtl accepting the language
also accepts some words that do not belong to this language. Again, this shows that this language is not accepted by any RDFAwtl.
It is easily seen that the languages
are all accepted by DFAwtls. On the other hand, is not. Hence, Lemma 21 shows the following.
Corollary 22
The language class is not closed under reversal, (disjoint) product, Kleene plus, Kleene star, or shuffle.
Finally, the class is closed under a restricted variant of the shuffle operation. If is an alphabet and is a subalphabet of , we shall use to denote the projection that maps each letter from to itself and each letter from to the empty word . The projection can be extended to words and languages in a natural way.
If a word is in the set for some words and , where and are two disjoint alphabets, then and . The shuffle of two words or languages over disjoint alphabets is called a disjoint shuffle.
Proposition 23
The language class is closed under disjoint shuffle.
Proof. Let and be two disjoint alphabets, let be an RDFAwtl on that accepts a language , and let be an RDFAwtl on that accepts a language . We shall construct an RDFAwtl for the disjoint shuffle of and .
By Lemma 13, we can assume without loss of generality that never gets into an infinite computation
and that it reads and deletes its input completely in each accepting computation.
The RDFAwtl is constructed as follows, where we assume
that the sets of states and are disjoint:
For an input , where and , the RDFAwtl first simulates the computation of on , ignoring all occurrences of letters from . When accepts, then simulates the computation of on . As reads and deletes all letters of in its accepting computation, it is obvious that accepts on input if and only if accepts on input and accepts on input . It follows that . Hence, is closed under the operation of disjoint shuffle.
5 Conclusion
Concerning the complexity of the membership problem, it is easily seen that the algorithm for the membership problem of a DFAwtl presented by Nagy and Kovács in [12] applies to an RDFAwtl as well. This yields the following result. Note that the complexity of the membership problem of a DFAwtl is measured using a logarithmic cost of instructions.
Corollary 24
The membership problem for an RDFAwtl is decidable in time .
Furthermore, emptiness and finiteness are decidable for RDFAwtls, as they are decidable for NFAwtls [17]. As is effectively closed under complementation, universality is also decidable for these automata. On the other hand, the problem of deciding whether the language accepted by a given RDFAwtl has a non-empty intersection with a given regular language is undecidable, as this problem is already undecidable for DFAwtls. The same holds for the problem of deciding whether the language accepted by a given RDFAwtl contains (or is contained in) a given regular language, and therewith, the inclusion problem for RDFAwtls is undecidable, too. However, it remains open whether the equivalence problem is decidable for RDFAwtls.
In summary, our results show that the RDFAwtl is just slightly more expressive than the DFAwtl, but it seems to have the same closure and non-closure properties, and the same decidability and undecidability results seem to hold. Moreover, we have seen that, when we add the property of being non-returning to the DFAwtl (or the NFAwtl), we actually weaken the model. When we add the property of repetitiveness to the DFAwtl, then we obtain a language class that is just a bit more expressive than the DFAwtl, while in the nondeterministic case, this generalization has no effect on the expressive capacity of the model. However, when we add both these properties, repetitiveness and the property of being non-returning, then the resulting types of automata, that is, the nr-DFAwtl and the nr-NFAwtl, have indeed a much larger expressive capacity than the original models. Thus, it is really the combination of these two properties that implicates the enormous increase in the expressive capability from the DFAwtl and the NFAwtl to the nr-DFAwtl and the nr-NFAwtl.
References
- [1]
- [2] Simon Beier & Markus Holzer (2022): Nondeterministic right one-way jumping finite automata. Information and Computation 284, 10.1016/j.ic.2021.104687.
- [3] Suna Bensch, Henning Bordihn, Markus Holzer & Martin Kutrib (2009): On input-revolving deterministic and nondeterministic finite automata. Information and Computation 207, pp. 1140–1155, 10.1016/j.ic.2009.03.002.
- [4] Hiroyuki Chigahara, Szilárd Zsolt Fazekas & Akihiro Yamamura (2016): One-way jumping finite automata. International Journal of Foundations of Computer Science 27, pp. 391–405, 10.1142/S0129054116400165.
- [5] Elias Dahlhaus & Manfred K. Warmuth (1986): Membership for growing context-sensitive grammars is polynomial. Journal of Computer and System Sciences 33, pp. 456–472, 10.1016/0022-0000(86)90062-0.
- [6] Henning Fernau, Meenakshi Paramasivan & Markus L. Schmid (2015): Jumping Finite Automata: Characterizations and Complexity. In Frank Drewes, editor: CIAA 2015, Proc., LNCS 9223, Springer, Berlin, pp. 89–101, 10.1007/978-3-319-22360-58.
- [7] Petr Jančar, František Mráz, Martin Plátek & Jörg Vogel (1995): Restarting automata. In Horst Reichel, editor: FCT’95, Proc., LNCS 965, Springer, Berlin, pp. 283–292, 10.1007/3-540-60249-660.
- [8] Alexander Meduna & Petr Zemek (2012): Jumping finite automata. International Journal of Foundations of Computer Science 23, pp. 1555–1578, 10.1142/S0129054112500244.
- [9] František Mráz (2001): Lookahead hierarchies of restarting automata. Journal of Automata, Languages and Combinatorics 6, pp. 493–506, 10.25596/jalc-2001-493.
- [10] František Mráz & Friedrich Otto (2022): Non-returning finite automata with translucent letters. In Henning Bordihn, Géza Horváth & György Vaszil, editors: 12th International Workshop on Non-Classical Models of Automata and Applications (NCMA 2022), EPTCS 367, Open Publishing Association, Waterloo, Australia, pp. 143–159, 10.4204/EPTCS.367.10.
- [11] František Mráz & Friedrich Otto (2023): Non-returning deterministic and nondeterministic finite automata with translucent letters. RAIRO Theoretical Informatics and Applications 57, 10.1051/ita/2023009.
- [12] Benedek Nagy & László Kovács (2014): Finite Automata with Translucent Letters Applied in Natural and Formal Language Theory. In Ngoc Thanh Nguyen, Ryszard Kowalczyk, Ana Fred & Filipe Joaquim, editors: Transactions on Computational Collective Intelligence XVII, LNCS 8790, Springer, Heidelberg, pp. 107–127, 10.1007/978-3-662-44994-36.
- [13] Benedek Nagy & Friedrich Otto (2010): CD-systems of stateless deterministic R(1)-automata accept all rational trace languages. In Adrian-Horia Dediu, Henning Fernau & Carlos Martín-Vide, editors: LATA 2010, Proc., LNCS 6031, Springer, Berlin, pp. 463–474, 10.1007/978-3-642-13089-239.
- [14] Benedek Nagy & Friedrich Otto (2011): Finite-state acceptors with translucent letters. In Gemma Bel-Enguix, Veronica Dahl & Alfonso O. de la Puente, editors: BILC 2011: AI Methods for Interdisciplinary Research in Language and Biology, Proc., SciTePress, Portugal, pp. 3–13, 10.5220/0003272500030013.
- [15] Benedek Nagy & Friedrich Otto (2011): Globally deterministic CD-systems of stateless R(1)-automata. In Adrian-Horia Dediu, Shunsuke Inenaga & Carlos Martín-Vide, editors: LATA 2011, Proc., LNCS 6638, Springer, Berlin, pp. 390–401, 10.1007/978-3-642-21254-331.
- [16] Benedek Nagy & Friedrich Otto (2012): On CD-systems of stateless deterministic R-automata with window size one. Journal of Computer and System Sciences 78, pp. 780–806, 10.1016/j.jcss2011.12.009.
- [17] Benedek Nagy & Friedrich Otto (2013): Globally deterministic CD-systems of stateless R-automata with window size 1. International Journal of Computer Mathematics 90, pp. 1254–1277, 10.1080/00207160.2012.688820.
- [18] Friedrich Otto (2006): Restarting automata. In Zoltan Ésik, Carlos Martín-Vide & Victor Mitrana, editors: Recent Advances in Formal Languages and Applications, Studies in Computational Intelligence 25, Springer, Heidelberg, pp. 269–303, 10.1007/978-3-540-33461-311.