Theory of Computation GATE CS PYQ Quiz (original) (raw)

Which of the following problems are decidable?

gatecs2012automata2

A deterministic finite automation (DFA)D with alphabet {a,b} is given below

GATE2011AT1

Which of the following finite state machines is a valid minimal DFA which accepts the same language as D?

GATE2011AT2
GATE2011AT3

Definition of a language L with alphabet {_a} is given as following.

         L={|ank|k>0, and n is a positive integer constant}

What is the minimum number of states needed in DFA to recognize L?

Consider the languages L1, L2 and L3 as given below.

LI= {0P1q |p, q∈N}

L2={0p1q |p, q∈ N and p=q} and

L3= {0P1q0r |p, q, r∈ N and p =q = r}

Which of the following statements is **NOT TRUE?

[GATE | CS | 2011 |]

Let P be a regular language and Q be context-free language such that Q ⊆ P. (For example, let P be the language represented by the regular expression p*q* and Q be {pn qn | n ∈ N}). Then which of the following is ALWAYS regular?

(A) P ∩ Q

(B) P - Q

(C) ∑* - P

(D) ∑* - Q

Which of the following pairs have DIFFERENT expressive power?

Let w be any string of length n is {0,1}*. Let L be the set of all substrings of w. What is the minimum number of states in a non-deterministic finite automaton that accepts L?

Consider the languages -
L1 = {0i1j | i != j}.
L2 = {0i1j | i = j}.
L3 = {0i1j | i = 2j+1}.
L4 = {0i1j | i != 2j}.

Let L={w in (0 + 1)*|w has even number of 1s}, i.e. L is the set of all bit strings with even number of 1s. Which one of the regular expression below represents L?

There are 112 questions to complete.

Take a part in the ongoing discussion