PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: Very high Entry average rating: No information on entry rating
insertion operation on languages (Definition)

Let $\Sigma$ be an alphabet, and $u,v$ words over $\Sigma$ . An insertion of $u$ into $v$ is a word of the form $v_1uv_2$ , where $v=v_1v_2$ . The concatenation of two words is just a special case of insertion. Also, if $w$ is an insertion of $u$ into $v$ , then $v$ is a deletion of $u$ from $w$ .

The insertion of $u$ into $v$ is the set of all insertions of $v$ into $u$ , and is denoted by $v\rhd u$ .

The notion of insertion can be extended to languages. Let $L_1,L_2$ be two languages over $\Sigma$ . The insertion of $L_1$ into $L_2$ , denoted by $L_1 \rhd L_2$ , is the set of all insertions of words in $L_1$ into words in $L_2$ . In other words, $$L_1 \rhd L_2 = \bigcup \lbrace u\rhd v\mid u\in L_1, v\in L_2 \rbrace.$$ So $u \rhd v = \lbrace u\rbrace \rhd \lbrace v\rbrace$ .

A language $L$ is said to be insertion closed if $L\rhd L \subseteq L$ . Clearly $\Sigma^*$ is insertion closed, and arbitrary intersection of insertion closed languages is insertion closed. Given a language $L$ , the insertion closure of $L$ , denoted by $\operatorname{Ins}(L)$ , is the smallest insertion closed language containing $L$ . It is clear that $\operatorname{Ins}(L)$ exists and is unique.

More to come...

The concept of insertion can be generalized. Instead of the insertion of $u$ into $v$ taking place in one location in $v$ , the insertion can take place in several locations, provided that $u$ must also be broken up into pieces so that each individual piece goes into each inserting location. More precisely, given a positive integer $k$ , a $k$ -insertion of $u$ into $v$ is a word of the form $$v_1 u_1 \cdots v_k u_k v_{k+1}$$ where $u=u_1 \cdots u_k$ and $v=v_1 \cdots v_{k+1}$ . So an insertion is just a $1$ -insertion. The $k$ -insertion of $u$ into $v$ is the set of all $k$ -insertions of $u$ into $v$ , and is denoted by $u \rhd^{[k]} v$ . Clearly $\rhd^{[1]} = \rhd$ .

Example. Let $\Sigma=\lbrace a,b\rbrace$ , and $u=aba$ , $v=bab$ , and $w=bababa$ . Then

  • $w$ is an insertion of $u$ into $v$ , as well as an insertion of $v$ into $u$ , for $w=vu\lambda = \lambda v u$ .
  • $w$ is also a $2$ -insertion of $u$ into $v$ :
    • the decompositions $u=(ab)(a)$ and $v=(b)(ab)\lambda$
    • or the decompositions $u=\lambda u$ and $v=\lambda v\lambda$
    produce $(b)(ab)(ab)(a)\lambda = \lambda \lambda v u \lambda = w$ .
  • Finally, $w$ is also a $2$ -insertion of $v$ into $u$ , as the decompositions $u = \lambda u \lambda$ and $v= v \lambda$ produce $\lambda v u\lambda \lambda = w$ .
  • $u\rhd v=\lbrace ababab, babaab, baabab, bababa\rbrace$ .

From this example, we observe that a $k$ -insertion is a $(k+1)$ -insertion, and every $k$ -insertion of $u$ into $v$ is a $(k+1)$ -insertion of $v$ into $u$ . As a result, $$u \rhd^{[k]} v \subseteq (u \rhd^{[k+1]} v) \cap (v \rhd^{[k+1]} u).$$

As before, given languages $L_1$ and $L_2$ , the $k$ -insertion of $L_1$ into $L_2$ , denoted by $L_1 \rhd^{[k]} L_2$ , is the union of all $u \rhd^{[k]} v$ , where $u\in L_1$ and $v\in L_2$ .

Remark. Some closure properties regarding insertions: let $ \mathscr{R}$ be the family of regular languages, and $ \mathscr{F}$ the family of context-free languages. Then $ \mathscr{R}$ is closed under $\rhd^{[k]}$ , for each positive integer $k$ . $ \mathscr{F}$ is closed $\rhd^{[k]}$ only when $k=1$ . If $ L_1\in \mathscr{R}$ and $ L_2\in \mathscr{F}$ , then $L_1 \rhd^{[k]} L_2$ and $L_2 \rhd^{[k]} L_1$ are both in $ \mathscr{F}$ . The proofs of these closure properties can be found in the reference.

Bibliography

1
M. Ito, Algebraic Theory of Automata and Languages, World Scientific, Singapore (2004).




"insertion operation on languages" is owned by CWoo.
(view preamble | get metadata)

View style:

See Also: deletion operation on languages, shuffle of languages

Other names:  insertion-closed, insertion-closure
Also defines:  insertion, insertion closed, insertion closure, $k$-insertion
Log in to rate this entry.
(view current ratings)

Cross-references: reference, proofs, closed, closed under, context-free languages, regular languages, closure properties, union, decompositions, integer, positive, place, clear, intersection, languages, deletion, concatenation, alphabet
There are 12 references to this entry.

This is version 3 of insertion operation on languages, born on 2009-05-29, modified 2009-05-29.
Object id is 11805, canonical name is InsertionOperationOnLanguages.
Accessed 786 times total.

Classification:
AMS MSC68Q45 (Computer science :: Theory of computing :: Formal languages and automata)
 68Q70 (Computer science :: Theory of computing :: Algebraic theory of languages and automata)

Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)