InterviewSolution
Saved Bookmarks
| 1. |
Generate a regular expression for the following problem statement:P(x): String of length 6 or less for å={0,1}*(a) (1+0+e)6(b) (10)6(c) (1+0)(1+0)(1+0)(1+0)(1+0)(1+0)(d) More than one of the mentioned is correctThis question was posed to me at a job interview.Query is from DFA to Regular Expressions topic in division Regular Expressions and Languages of Automata Theory |
|
Answer» The CORRECT CHOICE is (a) (1+0+e)6 |
|