• 検索結果がありません。

2. 1-Bounded Duplication Closures

N/A
N/A
Protected

Academic year: 2021

シェア "2. 1-Bounded Duplication Closures"

Copied!
5
0
0

読み込み中.... (全文を見る)

全文

(1)

Duplication Closure of Regular Languages

Masami ITO

(

Received September 14, 2009, Revised December 2, 2009

)

Abstract

In the present paper, we prove that then-bounded duplication closure of a regular lan- guage is regular forn=1,2.

Keywords: duplication (closure),n-bounded duplication (closure), regular language, automaton

1. Introduction

LetXbe a nonempty finite set, called analphabet. An element ofXis called aletter. By X, we denote the free monoid generated byX. LetX+=X\ {}wheredenotes the empty word ofX, i.e. the identity ofX. An element ofXis called awordoverX. IfuX, then

|u|denotes the length ofu, i.e. the number of letters appearing inu. Notice that we also denote the cardinality of a finite setAby|A|. Regarding more details on languages, see [2] and [3].

Definition 1. LetA=(S,X, δ,s0,F) where (1)S andXare nonempty finite sets called astate setand analphabet, respectively, (2)δis a function called astate transition functionsuch that δ(s,a)S for anysS and anyaX, (3)s0S called aninitial stateand (4)FS called theset of final states.

ThenAis called afinite automaton.

Notice that the above δ can be extended to the following function in a natural way, i.e.

δ(s, )=sandδ(s,au)=δ(δ(s,a),u) for anysS, anyuXand anyaX.

Definition 2. LetA = (S,X, δ,s0,F) be a finite automaton. Then the language {uX | δ(s0,u)F}is said to beacceptedbyAand denoted byL(A). A language accepted by a finite automaton is called aregularlanguage.

Finite automata can be generalized in the following way.

Definition 3. LetA=(S,X, δ,S0,F) where (1)S andXare nonempty finite sets called astate setand analphabet, respectively, (2)δis a relation called astate transition relationsuch that δ(s,a)S for anysS and anyaX, (3)S0S called theset of initial stateand (4)FS called theset of final states.

ThenAis called anondeterministic automaton.

The aboveδcan be extended to the following relation in a natural way, i.e.δ(s, )={s}and δ(s,au)=

t∈δ(s,a)δ(t,u) for anysS, anyuXand anyaX.

(2)

Definition 4. LetA = (S,X, δ,S0,F) be a nondeterministic automaton. Then the language {uX| ∃s0S0, δ(s0,u)F ∅}is said to beacceptedbyAand denoted byL(A).

It seems that a language accepted by a nondeterministic automaton is not necessarily regu- lar. However, we have the following result.

Fact. A language accepted by a nondeterministic automaton is regular.

Regarding more details on regular languages and automata, see [2] and [3].

LetuXand letnbe a positive integer. Then we introduce operations, calledduplication operations. Letu = vwxwherev,w,xX. Then we denote uvwwxand→is called a duplication. Moreover, if|w| ≤nin the above, then we denoteunuwwxand→nis called ann-bounded duplication.

By→and→n, we denote the reflexive and transitive closures of→and→n, respectively.

Definition 5. LetuX and letn be a positive integer. Thenu = {vX |u v}and u♥≤n = {vX |un v}, called theduplication closureof u andn-bounded duplication closueofu, respectively. Moreover, letn be a positive integer. ThenL = {u |uL}and L♥≤n={u♥≤n|uL}, called theduplication closureofLandn-bounded duplication closueof L, respectively.

2. 1-Bounded Duplication Closures

In this section, we prove that the 1-bounded duplication closure of a regular language is regular.

Theorem 1. Let LXbe a regular language. Then L♥≤1is regular.

Proof. LetA=(S,X, δ,s0,F) be a finite automaton acceptingL. We construct the following nondeterministic automatonA=(S,X, δ,s0,F): (1)S ={sa|sS,aX∪ {}}wherescan be regarded ass. (2)F ={sα |α∈X∪ {},sF}. (3)δ(sα,a)={δ(s,a)a} ∪ {sa|α=a}for α∈X∪ {}andaX.

Now we prove thatL(A) = L♥≤1. Letu ∈ L(A). Thenu can be represented as follows:

u =u1v1u2v2· · ·urvr whereui =uiai,uiX,aiXandvia+i for anyi=1,2, . . . ,r, and δ(s0,u1u2· · ·ur)∈F, i.e.u1u2· · ·urL. HenceuL♥≤1, i.e.L(A)⊆L♥≤1.

Now letuL♥≤1. IfuL, then obviouslyu ∈ L(A). Assume thatv1 ufor some vL♥≤1 ∩ L(A). Thenv = v1av2,v1,v2X,aX andu = v1a2v2. Let sa ∈ δ(s0,v1a) wheresS. Then sa ∈ δ(s0,v1aa). Henceδ(s0,v1av2) = δ(s0,v1a2v2), i.e. u ∈ L(A) and L♥≤1⊆ L(A).

This completes the proof of the theorem.

3. 2-Bounded Duplication Closures

In this section, we prove that the 2-bounded duplication closure of a regular language is regular.

Lemma 1. Let a,bX. Then(ab)♥≤2=a{a,b}b.

(3)

Proof. It can be easily shown that the theorem holds true ifa = b. Hence we assumea b. Let uX. If u = ai,i ≥ 0, then ab2 ai+1b = aub. If u = bi,i ≥ 0, then ab2 abi+1 = aub. Ifu = ai1bj1ai2bj2· · ·aip such thati1,i2, . . .ip,j1,j2, . . .jp1 ≥ 1, then ab2(ab)(ab)· · ·(ab)→2aai1bj1ai2bj2· · ·aipb=aub. Ifu=ai1bj1ai2bj2· · ·aipbjpsuch that i1,i2, . . . ,ip,j1,j2, . . . ,jp ≥1, thenab2 (ab)(ab)· · ·(ab)→2 ai1+1bj1ai2bj2· · ·aipbjp+1 = aub. In the same way, we can prove thatab2aubfor anyub{a,b}.

Theorem 2. Let LXbe a regular language. Then L♥≤2is regular.

Proof. LetA=(S,X, δ,s0,F) be a finite automaton acceptingL. We construct the following nondeterministic automatonB=(T,X, γ,T0,G): (1)T ={[s0]#a|aX} ∪ {[s]ab|sS,a,bX}where # is a new symbol. (2)G={[s]ab|a,bX,sF}ifs0 FandG={[s]ab |a,bX,sF} ∪ {[s0]#a|aX}ifs0F. (3)T0 ={[s0]#a |aX}. (4)γ([s0]#a,a)={[δ(s0,a)]ab| bX}, γ([s]ab,a)={[s]ab}andγ([s]ab,b)={[δ(s,b)]bc|cX} ∪ {[s]ab}.

Let a,bX and letu,vX. By Lemma 1 and the structure of the automatonB, the configurationuabv2 uaxbvwithx ∈ {a,b} corresponds toγ([s]ab,v) ⊆ γ([s0]#c,uaxbv) whereucXands=δ(s0,ua). Hence it can be proved thatL(B)=L♥≤2.

Actually, Theorem 2 has been already proved in [5] based on the proposition below. How- ever, the proof was complicated. On the contrary the above proof is simpler and more construc- tive.

Definition 6. Let LX. The following equivalence relation PL onX×X is called the principal congruenceonL:u,vX,uPLv⇔ ∀x,yX(xuy∈LxvyL).

Proposition 1. Let LX. Then L is regular if and only if the number of equivalence classes is finite.

4. Duplication Closure of a Regular Language over a Binary Alphabet

In this section, we prove that the duplication closure of a regular language over a binary alphabet is regular. By Lemma 1, we can obtain the following lemma.

Lemma 2. Let X ={a,b}and let uX. Then u=u♥≤2.

Theorem 3. Let X={a,b}and let LXbe regular. Then Lis regular.

Proof. By Lemma 2,L=L♥≤2. It follows from Theorem 2 thatLis regular.

Actually, it was proved in [1] that the duplication closure of any language over a binary alphabet is regular. However, Theorem 3 provides concrete relations between languages and their duplication closures for regular languages.

5. Conclusion

In a similar way as before, we can construct a nondeterministic automaton accepting the 3-bounded duplication closure of a regular language (see [4]). Thus we have:

Theorem 4. Let LXbe a regular language, Then L♥≤3is regular.

(4)

Acknowledgements

This work was supported by the JSPS-HAS Joint Research Grant and the Grant-in-Aid for Organizing International Conferences from Kyoto Sangyo University. The author also thanks the referees for their useful comments.

References

[1] D.P. Bovet and S. Varricchio, On the regularity of languages on a binary alphabet generated by copying systems, Inf. Process. Lett. 44, 119–123, 1992.

[2] J.E. Hopcroft and J.D. Ullman,Introduction to Automata Theory, Languages and and Computa- tion, Addison-Wesley, Reading MA, 1979.

[3] M. Ito,Algebraic Theory of Automata and Languages, World Scientific, Singapore, 2004.

[4] M. Ito, Onn-bounded duplication closures of languages, submitted.

[5] M. Ito, P. Leupold and K. Shikishima-Tsuji, Closure of language classes under bounded duplica- tion, Lecture Notes in Computer Science 4036 (Springer, Heidelberg), 238–247, 2006.

(5)

正規言語の重複閉包

伊  藤  正  美

要 旨

本論文では,正規言語の1-有界重複閉包および2-有界重複閉包が正規言語になることを示す.

キーワード:重複(閉包),n-有界重複(閉包),正規言語,オートマトン

参照

関連したドキュメント

p-Laplacian operator, Neumann condition, principal eigen- value, indefinite weight, topological degree, bifurcation point, variational method.... [4] studied the existence

§ 10. Top corner of the triangle: regular systems of weights We start anew by introducing the concept of a regular system of weights. in the next section. This view point

By using variational methods, the existence of multiple positive solutions and nonexistence results for classical non-homogeneous elliptic equation like (1.5) have been studied, see

“Breuil-M´ezard conjecture and modularity lifting for potentially semistable deformations after

As an application, for a regular model X of X over the integer ring of k, we prove an injectivity result on the torsion cycle class map of codimension 2 with values in a new

We give a Dehn–Nielsen type theorem for the homology cobordism group of homol- ogy cylinders by considering its action on the acyclic closure, which was defined by Levine in [12]

In this section we prove the lemmas used to obtain Theorem A and The Main Theorem in section 4.. Since all of the results of this section are stated for W(,z)

Then, since S 3 does not contain a punctured lens space with non-trivial fundamental group, we see that A 1 is boundary parallel in V 2 by Lemma C-3 (see the proof of Claim 1 in Case