• edited by
16,866 views
49 49 votes

Let $P$ be a regular language and $Q$ be a context-free language such that $Q \subseteq P$. (For example, let $P$ be the language represented by the regular expression $p^*q^*$ and $Q$ be $\{p^nq^n \mid n \in N\})$. Then which of the following is ALWAYS regular?

  1. $P \cap Q$
  2. $P-Q$
  3. $\Sigma^*-P$
  4. $\Sigma^*-Q$

2 Answers

Best answer
69 69 votes

Correct Option: C

complement of regular Language is regular

• edited by
19 19 votes
The expression ∑* – P represents complement of P which is a regular language. Complement of Regular languages is also regular. Then a DFA that accepts the complement of L, i.e. ∑* – L, can be obtained by swapping its accepting states with its non-accepting states.
Answer:
Position:
Show:

Related questions

75 75 votes
4 answers 4 answers
24.7k
24.7k views
go_editor asked Sep 29, 2014
24,659 views
On a non-pipelined sequential processor, a program segment, which is the part of the interrupt service routine, is given to transfer $500$ bytes from an I/O device to mem...
46 46 votes
7 answers 7 answers
16.9k
16.9k views
go_editor asked Sep 29, 2014
16,894 views
A deterministic finite automaton ($\text{DFA}$) $D$ with alphabet $\Sigma = \{a, b\}$ is given below.Which of the following finite state machines is a valid minimal $\tex...
35 35 votes
3 answers 3 answers
13.3k
13.3k views
go_editor asked Sep 29, 2014
13,252 views
Which of the following pairs have DIFFERENT expressive power?Deterministic finite automata (DFA) and Non-deterministic finite automata (NFA)Deterministic push down automa...
23 23 votes
2 answers 2 answers
8.6k
8.6k views
go_editor asked Sep 29, 2014
8,628 views
Choose the most appropriate word(s) from the options given below to complete the following sentence.I contemplated _________ Singapore for my vacation but decided against...