GATE CS Regular Expressions and Finite Automata questions
Practise Regular Expressions and Finite Automata questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
20 on this page
Let be any string of length in . Let be the set of all substrings of . What is the minimum number of states in non-deterministic finite automation that accepts ?
Let . i.e., is the set of all the bit strings with even numbers of s. Which one of the regular expressions below represents ?
The above DFA accepts the set of all strings over that
Which one of the following languages over the alphabet is described by the regular expression: ?
Match the following NFAs with the regular expressions they correspond to: P Q R S
Consider the following Finite State Automaton: The minimum state automaton equivalent to the above FSA has the following number of states:
Consider the following Finite State Automaton: The language accepted by this automaton is given by the regular expression
A minimum state deterministic finite automaton accepting the language number of s and s in are divisible by and , respectively has
Consider the regular language The minimum number of states in any DFA accepting this languages is:
The following diagram represents a finite state machine which takes as input a binary number from the least significant bit. Which of the following is TRUE?
Let and denote the classes of languages accepted by non-deterministic finite automata and non-deterministic push-down automata, respectively. Let and denote the classes of languages accepted by deterministic finite automata and deterministic push-down automata respectively. Which one of the following is TRUE?
The following finite state machine accepts all those binary strings in which the number of ’s and ’s are respectively:
Consider the NFA shown below. Let the language accepted by be . Let be the language accepted by the NFA obtained by changing the accepting state of to a non-accepting state and by changing the non-accepting states of to accepting states. Which of the following statements is true?
Consider the following deterministic finite state automaton . Let denote the set of seven bit binary strings in which the first, the fourth, and the last bits are . The number of strings in that are accepted by is
The regular expression denotes the same set as
The smallest finite automaton which accepts the language length of is divisible by has
The finite state machine described by the following state diagram with as starting state, where an arc label is and stands for -bit input and stands for -bit output
Consider a DFA over accepting all strings which have number of a's divisible by and number of 's divisible by . What is the minimum number of states that the DFA will have?
Given an arbitrary non-deterministic finite automaton (NFA) with states, the maximum number of states in an equivalent minimized DFA at least
Let and be languages over represented by the regular expressions and , respectively. Which of the following is true?
