• retagged by
1,033 views
1 1 vote

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}.$

2 Answers

1 1 vote

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
Position:
Show:

Related questions

0 0 votes
2 2 answers
896
896 views
gatecse asked Sep 13, 2019
896 views
A student requests a recommendation letter from a professor. The professor gives three sealed envelopes. Each envelope contains either a good recommendation letter or a b...
2 2 votes
2 2 answers
1.2k
1.2k views
gatecse asked Sep 13, 2019
1,169 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...
2 2 votes
2 2 answers
916
916 views
gatecse asked Sep 13, 2019
916 views
You are given a sorted array of $n$ elements which has been circularly shifted. For example, $\{35,42,5,12,23,26\}$ is a sorted array that has been circularly shifted by ...
1 1 vote
1 1 answer
775
775 views
gatecse asked Sep 13, 2019
775 views
Let $G=(V,E)$ be an undirected graph and $V=\{1,2,\cdots,n\}.$ The input graph is given to you by a $0-1$ matrix $A$ of size $n\times n$ as follows. For any $1\leq i,j\...