deletion operation on languages (original) (raw)
Let Σ be an alphabet and u,v be words over Σ. A deletion of v from u is a word of the form u1u2, where u=u1vu2. If w is a deletion of v from u, then u is an insertion of v into w.
The deletion of v from u is the set of all deletions of v from u, and is denoted by u⟶v.
For example, if u=(ab)6 and v=aba, then
u⟶v={(ba)4b,ab(ba)3b,(ab)2(ba)2b,(ab)3bab,(ab)4b}. |
---|
More generally, given two languages L1,L2 over Σ, the deletion of L2 from L1 is the set
For example, if L1={(ab)n∣n≥0} and L2={anbn∣n≥0}, then L1⟶L2=L1, and L2⟶L1=L2. If L3={an∣n≥0}, then L2⟶L3=ambn∣n≥m≥0}, and L3⟶L2=L3.
A language L is said to be deletion-closed if L⟶L⊆L. L1,L2, and L3 from above are all deletion closed, as well as the most obvious example: Σ*. L2⟶L3 is not deletion closed, for a3b4⟶ab3={a2b}⊈L2⟶L3.
It is easy to see that arbitrary intersections of deletion-closed languages is deletion-closed.
Given a language L, the intersection of all deletion-closed languages containing L, denoted by Del(L), is called the deletion-closure of L. In other words, Del(L) is the smallest deletion-closed language containing L.
The deletion-closure of a language L can be constructed from L, as follows:
L0 | := | L |
---|---|---|
Ln+1 | := | Ln⟶(Ln∪{λ}) |
L′ | := | ⋃i=0∞Li |
Then Del(L)=L′.
For example, if L={ap∣p is a prime number }, then Del(L)={an∣n≥0}, and if L={ambn∣m≥n≥0}, then Del(L)={ambn∣m,n≥0}.
Remarks.
- •
- •
In addition, ℛ is closed under deletion closure: if L is regular, so is Del(L).
- •
However, ℱ, the family of context-free languages, is neither closed under deletion, nor under deletion closure.
References
- 1 M. Ito, Algebraic Theory of Automata and Languages, World Scientific, Singapore (2004).
Title | deletion operation on languages |
---|---|
Canonical name | DeletionOperationOnLanguages |
Date of creation | 2013-03-22 18:56:23 |
Last modified on | 2013-03-22 18:56:23 |
Owner | CWoo (3771) |
Last modified by | CWoo (3771) |
Numerical id | 8 |
Author | CWoo (3771) |
Entry type | Definition |
Classification | msc 68Q70 |
Classification | msc 68Q45 |
Synonym | deletion-closed |
Synonym | deletion-closure |
Related topic | ShuffleOfLanguages |
Related topic | InsertionOperationOnLanguages |
Defines | deletion |
Defines | deletion closed |
Defines | deletion closure |