retagged by
14,464 views
39 votes
39 votes

Which of the following languages is regular?

  1. $\left\{ww^R \mid w \in \{0, 1\}^+\right\}$

  2. $\left\{ww^Rx \mid x,w  \in \{0, 1\}^+\right\}$

  3. $\left\{wxw^R \mid x, w \in \{0, 1\}^+\right\}$

  4. $\left\{xww^R \mid x, w \in \{0, 1\}^+\right\}$

retagged by

2 Answers

Best answer
47 votes
47 votes

Correct Option: C

  1. CFL
  2. CFL
  3. Regular, language is string starting and ending with the same symbol and having length at least $3$. e.g. $0x0$ or $1x1$
  4. CFL

http://gatecse.in/wiki/Identify_the_class_of_the_language

edited by
1 votes
1 votes

The regular expression corresponding to option C is:
0 (0+1)+ 0 + 1 (0+1)+ 1
Any string which begins and ends with same symbol, can be written in form of “wxwR
For example consider a string: 10010111, in this string “w=1” , “x= 001011” and wr = 1. Hence any string which begins and ends with either “0” or with “1” can be written in form of “wxwR” and L={wxwR | x,w ϵ {0,1}+ } is a regular language.

 

Answer:

Related questions

15.7k
views
3 answers
38 votes
Kathleen asked Sep 21, 2014
15,749 views
Which of the following is TRUE?Every subset of a regular set is regularEvery finite subset of a non-regular set is regularThe union of two non-regular sets is not regularInfinite union of finite sets is regular
21.8k
views
6 answers
36 votes
Kathleen asked Sep 21, 2014
21,813 views
How many $3$-to-$8$ line decoders with an enable input are needed to construct a $6$-to-$64$ line decoder without using any other logic gates?$7$8$9$10$
8.7k
views
3 answers
28 votes
go_editor asked Apr 23, 2016
8,710 views
Consider the following Finite State Automaton:The minimum state automaton equivalent to the above FSA has the following number of states:$1$2$3$4$
13.9k
views
6 answers
43 votes
Kathleen asked Sep 21, 2014
13,867 views
Consider the following Finite State Automaton:The language accepted by this automaton is given by the regular expression$b^*ab^*ab^*ab^*$(a + b)^*$b^*a(a+b)^*$b^*ab^*ab^*$