(A) L = {w∈{a, b}* | na(w) = nb(w)
and na(v) ≥nb(v) where v is any prefix of w}
(B) L = {w∈{a, b}* | na(w) = nb(w)
and na(v)
≤nb(v) where v is any prefix of w}
(C) L = {w∈{a, b}* | na(w) ≠nb(w) and na(v) ≥nb(v)
where v is any prefix of w}
(D) L = {w∈{a, b}* | na(w) ≠nb(w) and na(v) ≤nb(v)
where v is any prefix of w}
Answer A.
Two length word ={ab}
Three length word={}
Four length word={aabb,abab}
Five length word.={}.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.