recategorized by
3,522 views
3 votes
3 votes

Given the following statements:

$S_1$: If $L$ is a regular language then the language $\{uv \mid u \in L, v \in L^R\}$ is also regular.

$S_2$: $L=\{ww^R\}$ is regular language.

Which of the following is true?

  1. $S_1$ is not correct and $S_2$ is not correct
  2. $S_1$ is not correct and $S_2$ is correct
  3. $S_1$ is correct and $S_2$ is not correct
  4. $S_1$ is correct and $S_2$ is correct
recategorized by

1 Answer

Best answer
8 votes
8 votes

Answer C: S1 is correct and S2 is not correct

  • If L is regular then reversal of L is also regular. hence u and v are regular
  • Concatenation of regular languages are regular.
  • Hence uv is regular

S1 is correct

  • To find wwR we need to remember what is w.
  • Regular grammar is checked by finite automata, which has no memory (stack)
  • To find wwR we need at least NPDA

S2 is incorrect

selected by
Answer:

Related questions

3.8k
views
2 answers
2 votes
go_editor asked Jul 26, 2016
3,782 views
The context free grammar for the language:$L=\{a^n b^m \mid n \leq m + 3, n \geq 0, m \geq 0 \}$ ...
3.0k
views
1 answers
1 votes
go_editor asked Jul 26, 2016
3,044 views
Linux operating system usesAffinity schedulingFair Preemptive SchedulingHand ShakingHighest Penalty Ratio Next
21.5k
views
1 answers
5 votes
go_editor asked Jul 26, 2016
21,543 views
Consider a disk queue with request for input/output to block cylinders 98, 183, 37, 122, 14, 124, 65, 67 in that order. Assume that ... are respectively236 and 252 cylinders640 and 236 cylinders235 and 640 cylinders235 and 252 cylinders
5.0k
views
1 answers
1 votes
go_editor asked Jul 26, 2016
4,958 views
The virtual address generated by a CPU is 32 bits. The Translation Look-aside Buffer (TLB) can hold total 64 page table entries and a 4-way set associative (i.e ... size is 4 KB. The minimum size of TLB tag is12 bits15 bits16 bits20 bits