762 views
1 votes
1 votes
If I have two languages then according to me

(L1 UNION L2 )^r =L1^r UNION L2^r  this equality must hold true ,but I read somewhere so this equality wasn't true , so what is the conclusion ?

 

e.g . (01+11)^r = 10+11  (LHS)

now RHS will be (10+11)

So I guess equality must hold true .

2 Answers

8 votes
8 votes

I believe you are correct, the equality should be true in every case.


L1 and L2 are sets containing strings.

In (L1 U L2)r we are firstly combining sets and then taking each string from the combined set and reversing it.

In case of L1r U L2r we are firstly reversing each string and then combining the sets of reversed strings.


Clearly Union is an operation on sets & Reversal is an operation on strings of the set.

Since ultimately you are going to reverse all the strings in L1 & L2 it does not matters whether you reverse them before Union or after.

Also finiteness of sets should not affect this equality.

3 votes
3 votes
take any two dfa .. with end with (a+b)*..

now try to apply logic u get nfa.

ur logic is true untill language is finite... check plz

Related questions

1 votes
1 votes
1 answer
1
radha gogia asked Nov 14, 2015
849 views
when we take the cartesian product of two DFA's then what happens to the dead state of two DFA's , do we combine it also in the cartesian product ?
0 votes
0 votes
1 answer
4
iarnav asked Sep 15, 2017
586 views
L={an∣n≥0} U {anbn∣n≥0}What will be the result? How's it's DCFL? Please explain with an example! Thanks