retagged by
2,752 views
3 votes
3 votes

The transition function for the language $L=\{w \mid n_a (w) \text{ and } n_b(w) \text{ are both odd} \}$ is given by:

$\delta (q_0, a)=q_1$ ; $\delta (q_0, b)=q_2$
$\delta (q_1, a)=q_0$ ; $\delta (q_1, b)=q_3$
$\delta (q_2, a)=q_3$ ; $\delta (q_2, b)=q_0$
$\delta (q_3, a)=q_2$ ; $\delta (q_3, b)=q_1$

The initial and final states of the automata are

  1. $q_0$ and $q_0$ respectively
  2. $q_0$ and $q_1$ respectively
  3. $q_0$ and $q_2$ respectively
  4. $q_0$ and $q_3$ respectively
retagged by

2 Answers

Answer:

Related questions

6.2k
views
4 answers
3 votes
go_editor asked Jul 31, 2016
6,214 views
Minimal deterministic finite automaton for the language $L=\{0^n \mid n \geq 0, n \neq 4 \}$ will have:1 final state among 5 states4 final states among 5 states1 final state among 6 states5 final state among 6 states
4.9k
views
4 answers
5 votes
go_editor asked Aug 2, 2016
4,871 views
Given the following grammars:$G_1$S \rightarrow AB \mid aaB$ $A \rightarrow aA \mid \epsilon$ $B \rightarrow bB \mid \epsilon$G_2$ ... $G_1$ and $G_2$ are ambiguous grammarsboth $G_1$ and $G_2$ are unambiguous grammars
2.0k
views
2 answers
3 votes
go_editor asked Aug 2, 2016
2,042 views
Given the following two statements:$S_1$: If $L_1$ and $L_2$ are recursively enumerable languages over $\Sigma^*$, then $L_1 \cup L_2$ and $L_1 \cap L_2$ ... is correctBoth $S_1$ and $S_2$ are not correctBoth $S_1$ and $S_2$ are correct
3.0k
views
2 answers
3 votes
go_editor asked Aug 1, 2016
2,952 views
A context free grammar for $L=\{w \mid n_0 (w) > n_1 (w)\}$ is given by:$S \rightarrow 0 \mid 0S \mid 1 S S$S \rightarrow 0 S \mid 1 S \mid 0 S S \mid 1 S S \mid 0 ... 1 S S \mid S 1 S \mid S S 1$S \rightarrow 0 S \mid 1 S \mid 0 \mid 1$