edited by
16,583 views
46 46 votes

A deterministic finite automaton ($\text{DFA}$) $D$ with alphabet $\Sigma = \{a, b\}$ is given below.

Which of the following finite state machines is a valid minimal $\text{DFA}$ which accepts the same languages as $D$?





7 Answers

Best answer
50 50 votes

Correct Option: A

In (B) and (C) when the first letter of input is '$b$' we reach final state, while in the given DFA first letter '$b$' is not a final state. So, (B) and (C) are not accepting same language as the given DFA.

In (D) we can reach final state when the last letter is '$a$', whatever be the previous transitions. But in the given DFA, when the first $2$ letters are '$b$' we can never reach the final state. So, (D) is also accepting a different language than the given DFA.

edited by
29 29 votes

Minimization using set of equivalent states

First set of equivalent states 

$\pi$0 ={ I,II}        I={p,q,r} set of non-final state        II = {s,t} set of final state 

now check states in set I are equivalents or not 

p x a -> s [II , goes to state that is in set II]                q x a -> t [II]                        r x a -> r [I]

p x b -> q [I]                                                           q x b -> r [I]                        r x b -> r[I]

it is clear p,q are equivalent (both states on symbol a goes to states that is in set II , both states on symbol  b goes to states that is in set I) but r behaves differently, set {p,q,r} divides into two set {p,q},{r}

now check states in set II are equivalent or not

s x a -> s[II]                               t x a -> t [II]

s x b -> s[II]                               t x a ->t [II]

so s,t are equivalent states 

that results in 

Second set of equivalent states 

$\pi$1 ={ I,II,III}        I = {p,q}    II =  {r}     III = {s,t} 

check all states in I are equivalents or not  , same for set II and set III using same procedure as above

Third set of equivalent states 

$\pi$2 ={ I,II,III,IV}        I = {p}    II =  {q}     III = {r}        IV = {s,t} 

further 

$\pi$3 =$\pi$2   .i,e that cannot be further minimized 

s and t are equivalent states 

Minimized DFA will be same as given in option A 

0 0 votes

RE corresponding to our DFA is: a(a+b)* + ba(a+b)*

consider option B and C : it will accept string like simple 'b'. Hence, rejected.

Option D: it will accept string like bba which is not a part of our language.Hence, rejected.

So, option A is the right answer.

0 0 votes

b) is incorrect because it accepts string b which is not accepted by the given DFA.

c) is incorrect because it accepts string which is not accepted by the given DFA

d) is incorrect because it accepts string bba which is not accepted by the given DFA.

 

therefore option a 

0 0 votes

A) True.
(B) False, as it accepts string 'b', which is not accepted by original DFA.
(C) False, Same reason as (B).
(D) False, as it accepts string 'bba' which is not accepted by the given DFA.

0 0 votes

In question Like these just Apply Partition Algorithm 

It will hardly consume 1.5 minutes.

You will get (A) as an answer

Answer:
Position:
Show:

Related questions

87 87 votes
4 answers 4 answers
27.2k
27.2k views
go_editor asked Sep 29, 2014
27,235 views
Definition of a language $L$ with alphabet $\{a\}$ is given as following.$$ L = \left\{a^{nk} \mid k 0, \:\: and \:\: n \text{ is a positive integer constant} \right\}$$...
74 74 votes
4 answers 4 answers
24.1k
24.1k views
go_editor asked Sep 29, 2014
24,132 views
On a non-pipelined sequential processor, a program segment, which is the part of the interrupt service routine, is given to transfer $500$ bytes from an I/O device to mem...
47 47 votes
2 answers 2 answers
16.5k
16.5k views
akash asked Oct 29, 2014
16,452 views
Let $P$ be a regular language and $Q$ be a context-free language such that $Q \subseteq P$. (For example, let $P$ be the language represented by the regular expression $p...
35 35 votes
3 answers 3 answers
13.1k
13.1k views
go_editor asked Sep 29, 2014
13,125 views
Which of the following pairs have DIFFERENT expressive power?Deterministic finite automata (DFA) and Non-deterministic finite automata (NFA)Deterministic push down automa...