41 Qs · since 2011 · 61 marks · 2.3 marks/paperMedium yield
The topic of Regular Expressions and Finite Automata is one of the highest-weight core areas in GATE CS Theory of Computation. Questions test minimal DFA state counting under modul… Guide
Topic guide
The topic of Regular Expressions and Finite Automata is one of the highest-weight core areas in GATE CS Theory of Computation. Questions test minimal DFA state counting under modulo/substring constraints, state equivalence and minimization, regular expression derivation from transition graphs (and vice versa), NFA-to-DFA powerset bounds (), and language membership/closure properties. The distribution balances 1-mark foundational conceptual checks with 2-mark state-tracing and counting problems.
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.
Language Regularity and Language Operations (Complementation / Intersection)
occasional · MCQ · 2 marks · 2026, 2021, 2015, 2014
Evaluating whether languages with count differences, alternating sub-blocks, or intersections are regular, or finding the minimal DFA size after complementation/intersection.
Bounded-Length Complement/Union String Counting
common · NAT · 2 marks · 2024
Given two or more regular expressions over an alphabet , compute the total number of strings of length up to a bound that belong to neither expression (or belong to their intersection/union).
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.
Introduction of MSQ format has shifted subset construction and state-equivalence questions into multi-correct evaluations testing extreme cases (e.g., minimal DFA bounds , state distinguishability pairs).
2026, 2025, 2024, 2021
Transition from purely visual DFA/regex matching to algebraic modulo operations, multiplicative group residue tracking, and finite string counting via combinatorics.
2025, 2024, 2021, 2020
Persistent use of NAT for state counting problems where students must avoid off-by-one errors regarding start states and dead/trap states.
2025, 2024, 2023, 2021, 2020, 2017, 2016, 2015, 2014
Recent questions test regex understanding via numerical answer type (NAT) combinatorial string counting rather than traditional DFA equivalence or property matching.
2024
Easy items test standard definitions (e.g., powerset bound , single loop regexes, direct path tracing on small NFAs). Medium items involve finding minimal DFA state counts under multi-step modulo or substring constraints, computing state distinguishability pairs, and identifying algebraic regex identities via MSQ. Hard items involve proving regularity of subtle unbounded-difference vs bounded-difference counting languages (e.g., alternating subpatterns) or analyzing interlocking cycles in multi-automata intersections.