Designing a DFA for L={vwv : v,w elements of {a,b}* and |v| =2}

  • Thread starter Thread starter francisg3
  • Start date Start date
  • Tags Tags
    Automata Finite
AI Thread Summary
The discussion focuses on designing a deterministic finite automaton (DFA) for the language L={vwv : v,w elements of {a,b}* and |v| =2}. Participants note that the string "v" can be any of the combinations aa, ab, ba, or bb, while "w" can be any string of a's and b's. A key point is that the first two and last two characters of the string must be identical. Suggestions include starting with an automaton that accepts the language "vv" and modifying it to accommodate "vwv". The conversation emphasizes the importance of memory in the automaton to track the input for proper matching.
francisg3
Messages
31
Reaction score
0
L={vwv : v,w elements of {a,b}* and |v| =2}

I know that "v" can take either aa, ab, ba or bb as values. I also know that "w" can be any string containing "a" and "b". Overall, I know that the two first and two last characters must be identical. How would I show this in a DFA or even an NFA?


Thanks.
 
Physics news on Phys.org
Think about which parts of the input the finite automaton must remember and how you can use that to keep a "running match" of the later part of the input. It may help to start with an automaton that accepts the language "vv" and see if you can modify that into one that accepts "vwv".
 
Back
Top