retagged by
638 views
1 votes
1 votes

Consider the following non-deterministic finite automata(NFA) $A_{1}$ and $A_{2}:$

  1. Give an example of a word which is accepted by both $A_{1}$ and $A_{2}.$
  2. Give an example of a word which is accepted by $A_{1},$ but not by $A_{2}.$
  3. Draw the deterministic finite automaton(DFA) equivalent to $A_{1}.$
retagged by

2 Answers

1 votes
1 votes

The Machine $A_1$ is accepting all strings that ends with $a$  i.e. $L_1 = \{a ,ba,aa, bba,aba, aaa, aba....\}$

The Machine $A_2$ is accepting all strings that starts with $b$ i.e. $L_2 = \{ b, ba, bb, baa, bbb, bab, bba ....\}$

 

$A.$    $ba$ is a string which is accepted by both $A_1$ and $A_2$

$B.$    $aa$ is a string which is accepted by $A_1$ but not by $A_2$

$C.$     The DFA for $A_1$ is as shown

.

edited by

Related questions

1 votes
1 votes
2 answers
2
gatecse asked Sep 13, 2019
652 views
Let $G$ be a simple graph on $n$ vertices.Prove that if $G$ has more than $\binom{n-1}{2}$ edges then $G$ is connected.For every $n>2$, find a graph $G_{n}$ which has exa...