2,136 views
1 votes
1 votes

For each of the following languages, give two strings that are members and two strings that are not members—a total of four strings for each part. Assume the alphabet $Σ = \{a,b\}$ in all parts.

  1. $a^{*}b^{*}$
  2. $a(ba)^{*}b$
  3. $a^{*}\cup b^{*}$
  4. $(aaa)^{*}$
  5. $\Sigma^{*}a\Sigma^{*}b\Sigma^{*}a\Sigma^{*}$
  6. $aba\cup bab$
  7. $(\epsilon\cup a)b$
  8. $(a\cup ba\cup bb)\Sigma^{*}$

1 Answer

0 votes
0 votes

           Examples as per the language provided : 

(A.)   accepted string = { epsilon, ab}

         non accepted string = { ba, bab }

(B.)    accepted string = { ab, abab }

          non accepted string = { b, ba }

(C.)    accepted string = { aa, b }

          non accepted string = { ab, ba }

(D.)   accepted string = { epsilon , aaa }

         non accepted string = { b , bb }

(E.)   accepted string = { aba, aaba }

         non accepted string = { a, b }

(F.)   accepted string = { aba , bab }

         non accepted string = { a, b }

(G.)   accepted string = { b , ab }

         non accepted string = {a , epsilon }

(H.)   accepted string = { a, ba }

         non  accepted string = { epsilon , b }

Related questions

2 votes
2 votes
1 answer
1
admin asked Apr 21, 2019
8,099 views
Use the procedure described in $\text{Lemma 1.60}$ to convert the following finite automata to regular expressions.
0 votes
0 votes
1 answer
2
admin asked Apr 21, 2019
6,327 views
Use the procedure described in $\text{Lemma 1.55}$ to convert the following regular expressions to non-deterministic finite automata.$(0\cup 1)^{*}000(0\cup 1)^{*}$$(((0...
1 votes
1 votes
1 answer
3
0 votes
0 votes
0 answers
4
admin asked May 4, 2019
344 views
Let $A/B = \{w\mid wx\in A$ $\text{for some}$ $x \in B\}.$ Show that if $A$ is context free and $B$ is regular$,$ then $A/B$ is context free$.$