retagged by
905 views
1 votes
1 votes

Let L $\subseteq \{0, 1\}^∗$ be a language accepted by a finite automaton. Let $F$ be some subset of $\{0, 1\}^∗$, containing 2011 strings. Which of the following statements is true? Justify your answer.

  1. $L \: \: \cup \:\: F$ is always regular.
  2. $L \: \: \cup \: \:F$ is regular only when $L\: \cap \: F =\not{0}$ —that is, when $L$ and $F$ do not have any common string.
  3. $L \: \cup \: F$ is never regular.
  4. $L \: \cup \: F$ is regular only if $L$ contains $\in$ (the empty string).
retagged by

1 Answer

1 votes
1 votes

consider a L = {strings starting with '0' }

assume F = {01,0011,000111........02011 12011} //// F can be any set of string as it is finite i.e ...2011

now take give options

B) FALSE

L ∩ F = {01,0011,000111........02011 12011 and it is regular and is finite...

C) false

L = {strings starting with '0' }

F = {01,0011,000111........02011 12011

L U F= { strings starting with '0' } is regular 

D) false

L = {strings starting with '0' }

F = {01,0011,000111........02011 12011

L U F= { strings starting with '0' } is regular ...even F doesn't contain empty string...

A) TRUE it will be true...for any F union with L...coz L is accepted by finite automata and F is already finite (given)

Related questions

1 votes
1 votes
1 answer
3