InterviewSolution
Saved Bookmarks
| 1. |
Which one of the following is TRUE?(a) The language L={a^n b^n |n>0 } is regular(b) The language L={a^n|n is prime } is regular(c) The language L={w|w has 3k+1 b’s for some k } is regular(d) None of the mentionedThis question was addressed to me in an interview.My question is taken from Minimization of DFA topic in portion Finite Automata and Regular Expression of Compiler |
|
Answer» CORRECT choice is (c) The LANGUAGE L={w|w has 3k+1 b’s for some K } is regular The explanation is: Onlyfor this option wecan build a FA. |
|