Theory of Computation
Regular languages, finite automata, context-free grammars, pushdown automata and decidability. 8 questions with worked solutions.
Q1NAT2 marksFinite automataWhat is the minimum number of states in a DFA that accepts binary numbers divisible by 3 (reading the most significant bit first)?
Q2MCQ1 markLanguage classesThe language L={anbn∣n≥0} is:
Which problem is undecidable?
Q4NAT1 markFinite automataHow many states does the minimal DFA over {a,b} need to accept exactly the strings ending in ab?
Q5MCQ1 markClosure propertiesContext-free languages are not closed under:
Q6NAT1 markFinite automataHow many states does the minimal complete DFA over {0,1} need to accept exactly the strings of length 2?
Q7MSQ2 marksRegular languagesWhich of these languages over {a,b} are regular?
Select every correct option. There is no partial credit.
Q8MCQ1 markPushdown automataWhich machine model recognises exactly the context-free languages?