Question: Suppose that we have two alphabets { a , b , c } and { 0 , 1 } , and we have a function,

Suppose that we have two alphabets {a,b,c} and {0,1}, and we have a function, where f(a)=f(b)=0 and f(c)=1. That is, f maps a and b to 0 and c to 1. Now suppose that we extend f to F: in the natural way: F(w)=F(w1,w2,...wn)=f(w1)f(w2)...f(wn). That is, F maps a string symbol by symbols using f. For example, F(aabbca)=f(a)f(a)f(b)f(b)f(c)f(a)=000010 Is it true that if language L is regular, then so is F(L)?
Yes, always
No, it fails to hold for some regular languages
Only for finite languages
Only for infinite languages

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!