InferenceAI

Enter at least two characters to search.

Start free

Theory of Computation

Regular languages, finite automata, context-free grammars, pushdown automata and decidability. 8 questions with worked solutions.

Q1NAT2 marksFinite automata

What is the minimum number of states in a DFA that accepts binary numbers divisible by 3 (reading the most significant bit first)?

Q2MCQ1 markLanguage classes

The language L={anbn∣n≥0}L = \{a^n b^n \mid n \ge 0\} is:

Q3MCQ1 markDecidability

Which problem is undecidable?

Q4NAT1 markFinite automata

How many states does the minimal DFA over {a,b}\{a, b\} need to accept exactly the strings ending in abab?

Q5MCQ1 markClosure properties

Context-free languages are not closed under:

Q6NAT1 markFinite automata

How many states does the minimal complete DFA over {0,1}\{0, 1\} need to accept exactly the strings of length 2?

Q7MSQ2 marksRegular languages

Which of these languages over {a,b}\{a, b\} are regular?

Select every correct option. There is no partial credit.

Q8MCQ1 markPushdown automata

Which machine model recognises exactly the context-free languages?