BrainTok
ENESIT
A topic in Computer Science

Theory of Computation quizzes

What computers can solve, what they can’t, and how simple models help us understand the limits of computation.

1 quiz 28 questions

Quizzes in this topic

Try a question

From Theory of Computation: Finite automata and regular languages · Deterministic Finite Automata

Why can no DFA recognize the language of strings aⁿbⁿ (n a's followed by n b's) for every n?

  1. Its alphabet cannot hold two letters
  2. It cannot reread earlier symbols
  3. It would need unboundedly many states
Show the answer

Answer: It would need unboundedly many states

To match the b's it must remember how many a's it saw, and n can be any number, so no fixed finite set of states can store it.

A few questions at a time, before your apps

BrainTok asks a few questions from quizzes like these before the apps you choose open, so your screen time turns into learning. For iPhone.

Join the beta

More Computer Science topics