Need solutions for #5, #6, #7, and #8. Emphasis Heading 1 Normal Sesong subtitle
ID: 3795611 • Letter: N
Question
Need solutions for #5, #6, #7, and #8.
Explanation / Answer
5>
given X = {ab, ba}, y = {, a, b)
You need set of strings of length 3 from X*Y*
so we can have at most one X (since two X will give us string with length 4) followed by one Y, (Since one X will contribute length two, so Y has length 1 at most, so we can add only one Y)
or we can have zero X and three Y's.
Therefore we have
XY = {aba,baa,abb,bab} (NOTE lamda has length zero so we cannot add)
YYY = {aaa,aab,aba,abb,baa,bab,bba,bbb}
So the answer is { aaa,aab,aba,abb,baa,bab,bba,bbb } (NOTE: we do not repeat items)
6>
L1 = {aaaa}*, L2 = {a,b}{a,b}{a,b} L3 = (L2)*
therefore
L2 = {aaa,aab,aba,abb,baa,bab,bba,bbb}
L3 = { , L2, L2L2, L2L2L2, ... }
= { , aaa,aab,aba,abb,baa,bab,bba,bbb, aaaaaa, aaaaab, aaaaaba, ... }
therefore
L1 intersection L2 = { }
L1 intersection L3 = { aaaaaaaaaaaa, ... } or a12*n n is +ve Integer
L2 intersection L2 = { aaa,aab,aba,abb,baa,bab,bba,bbb }
7>
G = a* {b , c} a* {b , c} a* {b , c} a*
8>
logic (strings with even a and even b)* b or (strings with odd a and odd b)* a
G = {aa , bb , abba, abab, baab, baba}*b | {aa , bb , abba, abab, baab, baba}*{ab , ba}{aa , bb , abba, abab, baab, baba}*a
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.