InterviewSolution
Saved Bookmarks
| 1. |
Let L1 = {w ∈ {0,1}∗ | w has at least as many occurrences of (110)’s as (011)’s}.Let L2 = { ∈ {0,1}∗ | w has at least as many occurrences of (000)’s as (111)’s}.Which one of the following is TRUE?(a) L1 is regular but not L2(b) L2 is regular(c) L1 and L2 are regular(d) Neither of them are regularThis question was addressed to me at a job interview.My query is from Minimization of DFA topic in portion Finite Automata and Regular Expression of Compiler |
|
Answer» Right choice is (a) L1 is regular but not L2 |
|