W is any string whose length is n in {0, 1}* and L is the set of all sub-strings of W. The minimum number of states in a non-deterministic finite automaton that accepts L is
Consider a string s over (0+1)*. The number of 0’s in s is denoted by no(s) and the number of 1’s in s is denoted by n1(s). The language that is not regular is
G = {S->SS, S->ab, S->ba, S->?} is the context free grammar whose statements are given below:
a. G is ambiguous
b. G produces all strings with equal number of a's and b's.
c. Deterministic PDA accepts G
Which of the following statement is true about G?
Consider a graph G = (V, E) where I V I is divisible by 3. The problem of finding a Hamiltonian cycle in a graph is denoted by SHAM3 and the problem of determining if a Hamiltonian cycle exits in such graph is denoted by DHAM3. The option, which holds true, is
We have decision problems P1 and P2 as described below:
P1: Does a given finite state machine accept a given string?
P2: Does a given context-free grammar generate an infinite number of strings?
The statement that holds true for P1 and P2 is