edited by
6,994 views
46 votes
46 votes

Let $M=(K, Σ, \sigma, s, F)$ be a finite state automaton, where

$K = \{A, B\}, Σ = \{a, b\}, s = A, F = \{B\},$
$\sigma(A, a) = A, \sigma(A, b) = B, \sigma(B, a) = B \text{ and}  \ \sigma(B, b) = A$

A grammar to generate the language accepted by $M$ can be specified as $G = (V, Σ, R, S), $ where $V = K \cup Σ$, and $S = A.$

Which one of the following set of rules will make $L(G) = L(M)$ ?

  1. $\{A → aB, A → bA, B → bA, B → aA, B → \epsilon)$
  2. $\{A → aA, A → bB, B → aB, B → bA, B → \epsilon)$
  3. $\{A → bB, A → aB, B → aA, B → bA, B → \epsilon)$
  4. $\{A → aA, A → bA, B → aB, B → bA, A → \epsilon)$
edited by

5 Answers

1 votes
1 votes

We Can directly   make  Finite Automata  From  Given  Right Linear Grammar   Now Compare →

RLG  to  FA
                              RLG                            FA
                          Start state     <-----------  ----------->  $q_{0}$
                         Variable           <----------- ----------->    $Q$
                Production Rules  <-----------  ----------->   $\delta$
   

Now check only  B option is satisfying the conditions

 

Answer:

Related questions

28 votes
28 votes
5 answers
6
Ishrat Jahan asked Nov 1, 2014
8,911 views
Which one of the following regular expressions is NOT equivalent to the regular expression $(a + b + c)^*$?$(a^* + b^* + c^*)^*$$(a^*b^*c^*)^*$$((ab)^* + c^*)^*$$(a^*b^* ...