edited by
301 views
2 votes
2 votes

Let L = {automata}   and 

L1=Prefix(L)-ϵ over the alphabet Σ = {0…z},   where Prefix(L) = {x|xy ∈ L, for some y ∈ Σ*} .

Consider a language L2={x│|x|mod 2 = 0, x ∈ L1 }
We define half(L) as follows: 
half(L) = {x │∃ y, |x| = |y| and xy ∈ L}
The number of strings in the language half(L2) is _____.

edited by

1 Answer

1 votes
1 votes


L={automata}
Prefix(L)={ϵ,a,au,aut,auto,autom,automa,automat,automata}
L1=Prefix(L)-ϵ={a,au,aut,auto,autom,automa,automat,automata}
L2 is a language of set of all strings of even length that belongs to L1.
∴ L2 = {au,auto,automa,automata}
We define half(L2) as follows:
half(L2) = {x│∃y, |x|=|y| and xy∈L2}
In other words, half(L) consists of the first half of strings in L2.
half(L2) = {a,au,aut,auto}
∴ There are 4 strings in half(L2).

edited by

Related questions

5 votes
5 votes
0 answers
1
Anjan asked Jan 26, 2018
1,300 views
10's complement of $5690$10's complement of $(5690)_8$8's complement of $(6250)_8$8's complement of $(6250)_{16}$
0 votes
0 votes
2 answers
3
Pranav Madhani asked May 25, 2017
8,468 views
Which of the following is not O(n^2)?(a) (15^10) * n + 12099 (b) n^1.98(c) n^3 / (sqrt(n)) (d) (2^20) * n
1 votes
1 votes
2 answers
4
Pranav Madhani asked May 25, 2017
4,872 views
Consider the following 2 functions:f(n)= n3, if 0 ≤ n < 10,000= n2, otherwiseg(n)= n, if 0 ≤ n < 100= n2 + 5n, otherwise Which of the following option is correct?(a) ...