The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
55 views
find the DFA which accept strings such that 2nd symbol from RHS is $'a'$ .

$w=\{a,b\}^*$
asked in Theory of Computation by (27 points)
edited by | 55 views

1 Answer

+1 vote

Either construct NFA and then convert it into DFA. Or  If you want to construct directly then here is the Idea :

While constructing DFA, Whenever you see $a$, think of it as 2nd last symbol. So, After this $a$ you can allow $a,b$ and accept. But after this when you see $a,b$ you must make a transition to relevant state.

The DFA will look like this :

answered by Boss (13.2k points)


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

36,157 questions
43,608 answers
123,961 comments
42,860 users