-2

hi how to make regex and 'DFA' to don't accept this 'bab' on this alphabet = {a,b} and accept all language except 'bab'

Alireza
  • 101
  • 2

1 Answers1

1

Here is a hint: For the DFA, first construct a DFA that will accept 'bab'. Then make final states into non-final states and vice versa. All you have to do is to think about error states. Finally, you might want to find the Regex from the DFA. Hint: How to convert finite automata to regular expressions?.

NoMorePen
  • 69
  • 1
  • 7