edited by
276 views
0 votes
0 votes

Which of the following languages over the alphabet $\Sigma = \{0,1\}$ is regular?

  1. $0^{n} 1^{m}$
  2. $0^{n} 1^{m}$ where $m=n+1$
  3. $0^{m} 1^{n}$ where $m \equiv n(\text{mod 3}).$

 

  1. $\text{I}$ and $\text{III}$
  2. $\text{III}$ and $\text{II}$
  3. $\text{II}$ only
  4. $\text{III}$ only
edited by

1 Answer

0 votes
0 votes
case 1: Is regular because m and n can be any value so RE= 0*1* , we can draw a DFA so regual

case2: It is not regular the DFA cannot check the condition not even level 1 condition , we will need a PDF for this

case3: It is regualr as we can draw a DFA of this and it will require 3 states
Answer:

Related questions

0 votes
0 votes
0 answers
1
admin asked Jan 5, 2019
278 views
The problem of finding an integral solution of a given system of integral polynomial equations has complexity:Polynomial-timeExponential-spaceUndecidableExponential-time
1 votes
1 votes
1 answer
4
admin asked Jan 5, 2019
398 views
The set of equations $x^{2} + y^{2} = 1$ and $x + y = 0$ has how many real solutions?Infinite number of solutionsNo solution$2$ solutions$1$ solution