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 the set of all bijections from to , where denotes the identity function, i.e. . Let denote composition on functions. For a string , let . Consider the language …
Let be an NFA with states. Let be the number of states of a minimal DFA which is equivalent to . Which one of the following is necessarily true?
Consider the language given by the regular expression over the alphabet . The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting is ___________ .
The minimum possible number of states of a deterministic finite automaton that accepts the regular language = { | , } is ______________ .
Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive 's and two consecutive 's?
Consider the following two statements: If all states of an NFA are accepting states then the language accepted by the NFA is . There exists a regular language such that for all languages , is regular. Which one of the following is CORRECT?
The number of states in the minimum sized DFA that accepts the language defined by the regular expression. is ________.
Consider the DFAs and given above. The number of states in a minimal DFA that accept the language is_____________.
The number of states in the minimal deterministic finite automaton corresponding to the regular expression is _____.
Consider the alphabet , the null/empty string and the set of strings generated by the corresponding non-terminals of a regular grammar. are related as follows. Which one of the following …
Let be the language represented by the regular expression where . What is the minimum number of states in a DFA that recognizes (complement of )?
Which of the regular expressions given below represent the following DFA?
Consider the finite automaton in the following figure: What is the set of reachable states for the input string ?
The length of the shortest string NOT in the language (over of the following regular expression is _______.
Consider the DFA given below. Which of the following are FALSE? Complement of is context-free. For the language accepted by is the minimal DFA. accepts all strings over of length at least .
Consider the set of strings on in which, every substring of symbols has at most two zeros. For example, and are in the language, but is not. All strings of length less than are also in the language. A partially completed DFA that accepts this language is shown below. The missing arcs in the DFA are:
What is the complement of the language accepted by the NFA shown below? Assume and is the empty string.
A deterministic finite automaton () with alphabet is given below. Which of the following finite state machines is a valid minimal which accepts the same languages as ?
Definition of a language with alphabet is given as following.What is the minimum number of states needed in a DFA to recognize ?
Which of the following pairs have DIFFERENT expressive power?
