recategorized by
2,879 views
1 votes
1 votes

Consider the following types of languages:

$\text{L1}:$ Regular,

$\text{L2}:$ Context-free,

$\text{L3}:$ Recursive,

$\text{L4}:$ Recursively enumerable.

Which of the following is/are $\text{TRUE}$ ?

  1. $\text{L3}’ \cup \text{L4}$ is recursively enumerable
  2. $\text{L2} \cup \text{L3}$ is recursive
  3. $\text{L1}^{\ast} \cup \text{L2}$ is context-free
  4. $\text{L1} \cup \text{L2}’$ is context-free
  1. $\text{I}$ only
  2. $\text{I}$ and $\text{III}$ only
  3. $\text{I}$ and $\text{IV}$ only
  4. $\text{I, II}$ and $\text{III}$ only
recategorized by

1 Answer

Best answer
2 votes
2 votes

 Answer: D

  1. Recursive languages are closed under complementation hence $L_3’$ is recursive, and recursively enumerable too, and REL is also closed under union. So, 
    $L_3’  \cup L_4 $ is recursively enumerable.
     
  2. $L_2$ is CFL hence recursive too and recursive is closed under union. Therefore,
    $L_2 \cup L_3$ is recursive.
     
  3. $L_1$ is regular language and it is closed under kleen star operation, hence $L_1^*$ is regular hence CFL too, and CFL is closed under union operation. So,
    $L_1^*$ $\cup$ $L_2$ is CFL.
     
  4. CFL are not closed under complementation. Therefore $L_2’$ may or may not be CFL but every CFL is also CSL and CSL is closed under complementation. So, $L_1 \cup L_2’$ is CSL (may or may not be CFL).

    Refer: https://gatecse.in/closure-property-of-language-families/
selected by
Answer:

Related questions

2 votes
2 votes
1 answer
1