-2

I have a language $\{a^m b a^n | m+n \equiv 1 mod 3\}$

  • $m+n$ can be 1, 4, 7, 10, 13, 16, 19, 22, ...
  • $m+n$ is the number of all $a$'s in the word

How can I build a DFA for this language?

jannnik
  • 85
  • 1
  • 5
  • Please proof-read your question. Something came out horribly wrong. In particular, your specification of the language is incoherent -- double-check your use of Latex. 2. What have you tried? We expect you to make a significant effort before asking here, and to show us what you tried and where you got stuck.
  • – D.W. Mar 09 '15 at 16:38
  • I don't want to prove the language is regular, I want to know how the DFA of the language will look like. – jannnik Mar 09 '15 at 16:48
  • 1
    The answers to http://cs.stackexchange.com/q/1331/755 should suffice for constructing a DFA. They tell you how to construct a DFA (which is what you want) or a NFA (which you can convert to a DFA) or a regular language (which you can convert to a DFA). See also http://cs.stackexchange.com/q/7879/755. – D.W. Mar 09 '15 at 16:51