• edited by
25,235 views
84 84 votes

Which of the following set can be recognized by a Deterministic Finite state Automaton?

  1. The numbers $1, 2, 4, 8, \dots 2^n, \dots$ written in binary

  2. The numbers $1, 2, 4, 8,\dots 2^n, \dots$  written in unary

  3. The set of binary string in which the number of zeros is the same as the number of ones.

  4. The set $\{1, 101, 11011, 1110111, \dots\}$

7 Answers

Best answer
112 112 votes

Option A is correct .

  1. A. is regular 
    $L = \{1, 10, 100, 1000, 10000, \dots \}$ 
    Regular expression $10^*$

    $\textsf{DFA}:$
  2. $L=\{1,11,1111,11111111, \dots \}= \{1^i \mid i =2^n, n \geq 0 \}$ is non regular language
  3. Equal - Equal is CFL, and non regular as here we have to compare the counts which need not be finite 
  4. $L=\{1^i01^i   \mid i>0\}\cup \{1\}$ is also CFL, and non regular 
• edited by
5 5 votes

A)   as 1 in binary is 1

            2 = 10

            4= 100

and so on so language is  10*  so DFA can be formed.

5 5 votes

The memory for any DFA is its state which can store some finite amount of data(present situation of the machine), if we want to store infinite data then the number of states require will be infinite, so dfa not possible. Now you may be thinking what about Infinite language, if a language is infinite then there must be a pattern that exists and we will use a loop in our dfa to tackle this without pattern dfa for infinite language is not possible.

5 5 votes
i will add one point for option B

when an UNARY alphabet is given...the strings in the language must follow ARITHMETIC PROGRESSION then it is REGULAR otherwise not

so here strings are not in AP..so option B is not regular language
1 1 vote
For the first Option , we can Easily create DFA, Regular Expression( 10* ).

For all Remaining three of them, there exist a "Infinite Distinguishable Set of Strings".Hence they are Not Regular Language.

 
0 0 votes

the Language is of the form of 10* for binary numbers {1,2,4,8,.....}

  • The string w=1(0^p) is chosen to have a clear pattern: a 1 followed by zeros.
  • Pumping y just increases or decreases the number of zeros, but the string remains valid because the pattern "1 followed by zeros" is preserved.
  • Therefore, L satisfies the pumping lemma, proving it is regular.
Answer:
Position:
Show:

Related questions

53 53 votes
4 answers 4 answers
18.6k
18.6k views
Kathleen asked Sep 25, 2014
18,647 views
Design a deterministic finite state automaton (using minimum number of states) that recognizes the following language:$L=\{w \in \{0, 1\}^* \mid w$ interpreted as binar...
52 52 votes
7 answers 7 answers
26.1k
26.1k views
Kathleen asked Sep 25, 2014
26,105 views
Let $L$ be the set of all binary strings whose last two symbols are the same. The number of states in the minimal state deterministic finite state automaton accepting $L$...
54 54 votes
6 answers 6 answers
17.7k
17.7k views
Kathleen asked Sep 25, 2014
17,672 views
If the regular set $A$ is represented by $A = (01 + 1)^*$ and the regular set $B$ is represented by $B = \left(\left(01\right)^*1^*\right)^*$, which of the following is t...
32 32 votes
7 answers 7 answers
12.8k
12.8k views
Kathleen asked Sep 25, 2014
12,844 views
The rank of the matrix given below is:$$\begin{bmatrix} 1 &4 &8 &7\\ 0 &0& 3 &0\\ 4 &2& 3 &1\\ 3 &12 &24 &21 \end{bmatrix}$$$3$$1$$2$$4$