4 topics · 118 Qs · 6.9 marks/paper · since 2011
The topic of Regular Expressions and Finite Automata is one of the highest-weight core areas in GATE CS Theory of Computation. Across GATE CS, 'Turing machines and undecidability'… Guide
Open a topic to browse, or practice it timed.
Jump to the first question from that paper.
Subject guide
The topic of Regular Expressions and Finite Automata is one of the highest-weight core areas in GATE CS Theory of Computation. Across GATE CS, 'Turing machines and undecidability' is consistently tested through theoretical properties of computability and complexity classes. Context-Free Grammars (CFG) and Pushdown Automata (PDA) form a cornerstone of the GATE CS Theory of Computation syllabus.
Subset Construction Maximum State Bound
Determining maximum possible states in an equivalent DFA converted from an NFA.
k-th Symbol from Right State Requirement
Finding minimal DFA states for languages tracking the -th symbol from the end of a binary string.
DFA Complementation Invariance
Determining state count of complement DFA by inverting final and non-final states.
Divisibility Modulo Intersection / LCM Rule
Tracking independent modular conditions on symbol counts (e.g. divisible by but not by ).
Regular Expression Star Identity
Simplifying and matching equivalent regular expressions from state transition cycles.
Total Strings of Length up to $n$ over Alphabet $\Sigma$
Used to find the size of the universal set of strings of length before subtracting strings accepted by given regular expressions.
Principle of Inclusion-Exclusion for String Counts
Used when determining the union of languages defined by multiple regular expressions without double-counting shared strings.
Post's Theorem
Used when analyzing the decidability of given the enumerability of and .
Minimal DFA State Counting for Modulo / Arithmetic / Group Constraints
common · NAT · 2 marks · 2025, 2020, 2011
Given a language condition based on symbol counts modulo , divisibility by multiple numbers (LCM), or algebraic properties (e.g., product modulo 7), find the exact number of states in the minimal DFA.
Minimal DFA State Counting for Suffix / Substring / Exact Position Constraints
common · mixed · 1 marks · 2023, 2021, 2017, 2016
Determining the minimal number of states for accepting strings containing, ending in, or avoiding specific substrings (e.g., -th symbol from right, avoiding , exact length plus symbol conditions).
Automaton to Regular Expression Equivalence / Loop Identification
common · MCQ · 2 marks · 2024, 2023, 2022, 2021
Given a transition diagram of a DFA, NFA, or -NFA, identify the equivalent regular expression by decomposing cycles, state elimination, or tracking paths to multiple accept states.
NFA to DFA Conversion and Powerset State Bounds
common · MSQ · 1 marks · 2026, 2025, 2018, 2016
Testing theoretical bounds on state counts when converting an -state NFA to a DFA (), minimal equivalent DFAs, and behavior of all-accepting NFAs.
State Distinguishability, Equivalence, and Minimization
occasional · mixed · 2 marks · 2024, 2017, 2014, 2011
Given an automaton transition table or diagram, compute reachable state sets, -closures, identify equivalent/trap states, or find distinguishable state pairs.
String Membership, Decomposition, and Finite Length Counting
occasional · mixed · 2 marks · 2024, 2021, 2014, 2012
Checking whether given candidate strings belong to , finding the shortest string not generated by a regex, or counting accepted strings up to a fixed length.