Which Automaton Accepts Regular Languages? The Correct Answer Is DFA

Which Automaton Accepts Regular Languages? The Correct Answer Is DFA

Verified Sources
Jun 1, 2026

In formal language theory, the automaton that accepts regular languages is the DFA, i.e., option (ii).2 A finite automaton has only finitely many states, and this finite memory matches exactly the expressive power of regular languages.2

By contrast, the other options correspond to strictly different language classes in the Chomsky hierarchy:

  • PDA accepts context-free languages, not exactly regular languages.2
  • Turing machine recognizes recursively enumerable languages, a much broader class.
  • LBA accepts context-sensitive languages, also more powerful than regular languages.2

So for the multiple-choice question:

OptionMachineLanguage class primarily characterized
(i)PDAContext-free languages
(ii)DFARegular languages
(iii)Turing machineRecursively enumerable languages
(iv)LBAContext-sensitive languages

Therefore, the correct answer is (ii) DFA.2

A useful way to remember this is:

RegularContext-FreeContext-SensitiveRecursively Enumerable\text{Regular} \subset \text{Context-Free} \subset \text{Context-Sensitive} \subset \text{Recursively Enumerable}

And the corresponding machine models are:

DFA/NFA    PDA    LBA    Turing Machine\text{DFA/NFA} \;\rightarrow\; \text{PDA} \;\rightarrow\; \text{LBA} \;\rightarrow\; \text{Turing Machine}

Footnotes

  1. Regular Languages and Finite Automata - Cambridge lecture notes stating that a language is regular iff it is accepted by some deterministic finite automaton. 2 3

  2. Formal Languages, Automata and Computation - andrew.cmu.edu - CMU slides explicitly stating that DFAs accept regular languages. 2

  3. Chapter 1 Basics of Formal Language Theory - UPenn notes defining regular languages as those accepted by some DFA and explaining DFA acceptance.

  4. 1 Push-down Automata and Context-Free Languages - UNC notes showing that PDAs recognize exactly the context-free languages.

  5. Context Sensitive Grammars and Linear Bounded Automata - IISc seminar notes summarizing the Chomsky hierarchy and matching DFA/PDA/LBA/Turing machine to their language classes. 2 3

  6. Grammars, Recursively Enumerable Languages, and Turing Machines - UT Austin notes stating that context-sensitive languages are exactly the languages accepted by linear bounded automata.

Regular Languages: Deterministic Finite Automaton (DFA)

Direct Exam Answer

If the question asks which automaton accepts regular languages, select DFA. This is the standard defining machine model for regular languages.2

Footnotes

  1. Regular Languages and Finite Automata - Cambridge lecture notes stating that a language is regular iff it is accepted by some deterministic finite automaton.

  2. Formal Languages, Automata and Computation - andrew.cmu.edu - CMU slides explicitly stating that DFAs accept regular languages.

A precise theorem often used in automata theory states:

A language is regular if and only if it is accepted by some DFA.2

This “if and only if” statement is important. It means two things simultaneously:2

  1. Every DFA language is regular.
  2. Every regular language can be recognized by some DFA.

This is why DFA is not just an automaton that can accept some regular languages; it is the canonical automaton for them.2

Formally, if a DFA is written as

M=(Q,Σ,δ,q0,F),M = (Q, \Sigma, \delta, q_0, F),

then the language accepted by MM is

L(M)={wΣδ(q0,w)F}.L(M) = \{\, w \in \Sigma^* \mid \delta^*(q_0, w) \in F \,\}.

Here:

  • QQ is the finite set of states,
  • Σ\Sigma is the input alphabet,
  • δ\delta is the transition function,
  • q0q_0 is the start state,
  • FF is the set of accepting states.2

The key limitation is that the machine has only finite memory. Because of that, it can recognize patterns like:

  • strings ending in 01,
  • strings containing abb,
  • strings with an even number of 1s,2

but it cannot recognize patterns requiring unbounded counting such as

{anbnn0},\{a^n b^n \mid n \ge 0\},

which is not regular.

Footnotes

  1. Regular Languages and Finite Automata - Cambridge lecture notes stating that a language is regular iff it is accepted by some deterministic finite automaton. 2 3

  2. Formal Languages, Automata and Computation - andrew.cmu.edu - CMU slides explicitly stating that DFAs accept regular languages. 2 3

  3. Chapter 1 Basics of Formal Language Theory - UPenn notes defining regular languages as those accepted by some DFA and explaining DFA acceptance. 2

  4. Finite Automata Outline Deterministic ... - Carnegie Mellon University - CMU lecture notes explaining DFA membership and giving examples of regular and non-regular languages. 2 3

How to Solve This Multiple-Choice Question

  1. 1
    Step 1

    The phrase 'regular languages' points directly to finite automata. In standard theory, the defining deterministic model is the DFA.2

    Footnotes

    1. Regular Languages and Finite Automata - Cambridge lecture notes stating that a language is regular iff it is accepted by some deterministic finite automaton.

    2. Formal Languages, Automata and Computation - andrew.cmu.edu - CMU slides explicitly stating that DFAs accept regular languages.

  2. 2
    Step 2

    Associate DFA with regular languages, PDA with context-free languages, LBA with context-sensitive languages, and Turing machine with recursively enumerable languages.3

    Footnotes

    1. 1 Push-down Automata and Context-Free Languages - UNC notes showing that PDAs recognize exactly the context-free languages.

    2. Context Sensitive Grammars and Linear Bounded Automata - IISc seminar notes summarizing the Chomsky hierarchy and matching DFA/PDA/LBA/Turing machine to their language classes.

    3. Grammars, Recursively Enumerable Languages, and Turing Machines - UT Austin notes stating that context-sensitive languages are exactly the languages accepted by linear bounded automata.

  3. 3
    Step 3

    The question asks which automaton accepts regular languages, not which machine is merely powerful enough to accept some of them. DFA matches the class exactly.2

    Footnotes

    1. Regular Languages and Finite Automata - Cambridge lecture notes stating that a language is regular iff it is accepted by some deterministic finite automaton.

    2. Formal Languages, Automata and Computation - andrew.cmu.edu - CMU slides explicitly stating that DFAs accept regular languages.

  4. 4
    Step 4

    A Turing machine can simulate many weaker devices, but it is not the standard answer because it characterizes a much larger class than regular languages.

    Footnotes

    1. Context Sensitive Grammars and Linear Bounded Automata - IISc seminar notes summarizing the Chomsky hierarchy and matching DFA/PDA/LBA/Turing machine to their language classes.

  5. 5
    Step 5

    Choose (ii) DFA.2

    Footnotes

    1. Regular Languages and Finite Automata - Cambridge lecture notes stating that a language is regular iff it is accepted by some deterministic finite automaton.

    2. Formal Languages, Automata and Computation - andrew.cmu.edu - CMU slides explicitly stating that DFAs accept regular languages.

Recognizes exactly regular languages. It has finite memory only, so it is ideal for pattern recognition without nested dependencies.2

Footnotes

  1. Regular Languages and Finite Automata - Cambridge lecture notes stating that a language is regular iff it is accepted by some deterministic finite automaton.

  2. Formal Languages, Automata and Computation - andrew.cmu.edu - CMU slides explicitly stating that DFAs accept regular languages.

Relative Expressive Power of the Machine Models

Higher values indicate strictly greater language-recognition power in the standard hierarchy.

The distractors in this question are educational because each one is associated with a different computational capability.

Why not PDA?

A pushdown automaton recognizes context-free languages.2 Since every regular language is also context-free, a PDA can accept regular languages, but that is not the best answer to the question. The question asks for the automaton class associated with regular languages exactly, and that is DFA.2

Why not Turing machine?

A Turing machine is far more powerful than a DFA and recognizes recursively enumerable languages. Because it is more general, it can accept regular languages too, but again it does not characterize the class exactly.

Why not LBA?

A linear bounded automaton recognizes context-sensitive languages.2 This is also a stronger model than a DFA, so it is not the standard answer.

Thus, the distinction is:

  • Can accept some regular languages? Many stronger machines can.
  • Characterizes the class of regular languages? DFA.2

Footnotes

  1. 1 Push-down Automata and Context-Free Languages - UNC notes showing that PDAs recognize exactly the context-free languages.

  2. Context Sensitive Grammars and Linear Bounded Automata - IISc seminar notes summarizing the Chomsky hierarchy and matching DFA/PDA/LBA/Turing machine to their language classes. 2 3 4 5

  3. Regular Languages and Finite Automata - Cambridge lecture notes stating that a language is regular iff it is accepted by some deterministic finite automaton. 2

  4. Formal Languages, Automata and Computation - andrew.cmu.edu - CMU slides explicitly stating that DFAs accept regular languages. 2

  5. Grammars, Recursively Enumerable Languages, and Turing Machines - UT Austin notes stating that context-sensitive languages are exactly the languages accepted by linear bounded automata.

Common Mistake

Do not choose a stronger machine merely because it can simulate weaker ones. In theory-of-computation questions, the expected answer is usually the machine that exactly characterizes the language family.

Footnotes

  1. Context Sensitive Grammars and Linear Bounded Automata - IISc seminar notes summarizing the Chomsky hierarchy and matching DFA/PDA/LBA/Turing machine to their language classes.

Clarifications and Common Doubts

Language Classes in the Chomsky Hierarchy

Regular Languages

Level 1

Recognized by finite automata such as DFA and NFA; these are the simplest machine models in the hierarchy.2"

Footnotes

  1. Regular Languages and Finite Automata - Cambridge lecture notes stating that a language is regular iff it is accepted by some deterministic finite automaton.

  2. Chapter 1 Basics of Formal Language Theory - UPenn notes defining regular languages as those accepted by some DFA and explaining DFA acceptance.

Context-Free Languages

Level 2

Recognized by pushdown automata, which add stack memory beyond finite-state control.2"

Footnotes

  1. 1 Push-down Automata and Context-Free Languages - UNC notes showing that PDAs recognize exactly the context-free languages.

  2. Context Sensitive Grammars and Linear Bounded Automata - IISc seminar notes summarizing the Chomsky hierarchy and matching DFA/PDA/LBA/Turing machine to their language classes.

Context-Sensitive Languages

Level 3

Recognized by linear bounded automata, which are tape-bounded Turing machines.2"

Footnotes

  1. Context Sensitive Grammars and Linear Bounded Automata - IISc seminar notes summarizing the Chomsky hierarchy and matching DFA/PDA/LBA/Turing machine to their language classes.

  2. Grammars, Recursively Enumerable Languages, and Turing Machines - UT Austin notes stating that context-sensitive languages are exactly the languages accepted by linear bounded automata.

Recursively Enumerable Languages

Level 4

Recognized by Turing machines, the most general model listed in this question."

Footnotes

  1. Context Sensitive Grammars and Linear Bounded Automata - IISc seminar notes summarizing the Chomsky hierarchy and matching DFA/PDA/LBA/Turing machine to their language classes.

A compact conceptual summary is:

  • A DFA has only states as memory.2
  • A PDA has states + stack.2
  • An LBA has bounded tape.2
  • A Turing machine has general tape-based computation.

That extra memory increases recognition power. This is why the machines correspond to increasingly expressive language classes.2

For exam settings, you can memorize the mapping:

Language familyAccepting machine
RegularDFA
Context-freePDA
Context-sensitiveLBA
Recursively enumerableTuring machine

Hence the final answer remains:

(ii) DFA\boxed{\text{(ii) DFA}}

Footnotes

  1. Regular Languages and Finite Automata - Cambridge lecture notes stating that a language is regular iff it is accepted by some deterministic finite automaton.

  2. Chapter 1 Basics of Formal Language Theory - UPenn notes defining regular languages as those accepted by some DFA and explaining DFA acceptance.

  3. 1 Push-down Automata and Context-Free Languages - UNC notes showing that PDAs recognize exactly the context-free languages.

  4. Context Sensitive Grammars and Linear Bounded Automata - IISc seminar notes summarizing the Chomsky hierarchy and matching DFA/PDA/LBA/Turing machine to their language classes. 2 3 4

  5. Grammars, Recursively Enumerable Languages, and Turing Machines - UT Austin notes stating that context-sensitive languages are exactly the languages accepted by linear bounded automata. 2

Memory Trick

Think: Finite memory \rightarrow finite automaton \rightarrow regular language. If the language needs only finitely many states to track relevant history, DFA is the right model.2

Footnotes

  1. Regular Languages and Finite Automata - Cambridge lecture notes stating that a language is regular iff it is accepted by some deterministic finite automaton.

  2. Chapter 1 Basics of Formal Language Theory - UPenn notes defining regular languages as those accepted by some DFA and explaining DFA acceptance.

Knowledge Check

Question 1 of 4
Q1Single choice

Which of the following automata is the standard machine model that accepts exactly regular languages?

Explore Related Topics

1

Operating System Types and the Correct Answer: Multi-user OS

A multi‑user operating system is the sole OS type that enables multiple users to access the same computer concurrently by sharing CPU time and resources while keeping their sessions isolated.

  • Uses time‑sharing and process scheduling to create the illusion of simultaneous execution (Perceived SimultaneityRapid Switching Among User Processes\text{Perceived Simultaneity} \approx \text{Rapid Switching Among User Processes}).
  • Provides separate authentication, permissions, and protected memory for each user.
  • Contrasts with single‑user, batch, and embedded OSes, which do not support concurrent interactive users.
  • Typical examples include Unix/Linux servers and some Windows NT configurations.
2

Smallest Unit in the Definition of a Language: Alphabet

In formal language theory a language is defined as a set of strings over an alphabet, so the alphabet (its symbols) is the smallest unit among the listed choices.

  • An alphabet Σ\Sigma is a finite non‑empty set of symbols, the basic building blocks for strings.
  • A string is a finite sequence of symbols from Σ\Sigma; the empty string is denoted ϵ\epsilon.
  • A language is any subset LΣL \subseteq \Sigma^{*}, i.e., a set of such strings.
  • Grammar and production are higher‑level mechanisms that generate or describe languages, not primitive components.
3

Banker's Algorithm Safe-State Analysis for Processes $P_0$ Through $P_4$

The course walks through a full Banker's‑algorithm safety analysis for processes P0P_0P4P_4, computing the Need matrix and using the work‑vector test to verify a safe state and a valid completion order.

  • Need matrix: P0  (0,0,0,0)P_0\;(0,0,0,0), P1  (0,7,5,0)P_1\;(0,7,5,0), P2  (1,0,0,2)P_2\;(1,0,0,2), P3  (0,0,2,0)P_3\;(0,0,2,0), P4  (0,6,4,2)P_4\;(0,6,4,2).
  • Starting work Work=Available=(1,5,2,0)Work = Available = (1,5,2,0); each step selects a process with NeedWorkNeed \le Work, releases its allocation, and updates WorkWork.
  • All processes finish, yielding a safe sequence P0,P2,P1,P3,P4\langle P_0, P_2, P_1, P_3, P_4\rangle.
  • A safe state requires only one such sequence; it does not mean every immediate allocation is safe.
  • Exam tip: test processes with minimal or zero Need first to unlock the rest.