• recategorized by
193 views
0 0 votes

Consider the automaton over the alphabet $\{a, b, c\}$ shown in Figure $1$. The initial state is the leftmost state. States with a double circle are accepting states.
 


What is the complement of the language accepted by this automaton?

  1. $\{\epsilon\}$
  2. $c^{*}+a^{*}+b^{*}$
  3. $(a+b)^{*}+(b+c)^{*}+(c+a)^{*}$
  4. None of the above

     

1 Answer

0 0 votes

Question asking about complement of the language accepted by the given automata.

As string "abc" is not accepted by the given automata, then string must be member of complement of the language accepted by the automata.

A. {Epsilon} doesn't contain "abc" - this is not correct option.

B. c*+a*+b* - string "abc" can't generate by this Regular Expression- this is not correct option.

C. (a+b)*+(b+c)*+(c+a)*- string "abc" can't generate by this Regular Expression- this is not correct option.

Hence, Option D is correct.

 

What about correct Regular Expression ?

Whenever there is 3 different symbols involved in the string, then that string will be rejected by the Automata. So that will be in the complement of the language accepted by the Automata.

Note that those three different symbols may be in any order.

One possible R.E.= $\epsilon+((a^+.b^+.c^+)+(a^+.c^+.b^+)+(b^+.a^+.c^+)+(b^+.c^+.a^+)+(c^+.b^+.a^+)+(c^+.a^+.b^+)). (a+b+c)^*$


R.E of language accepted by given Automata is $(a+b)^++(b+c)^++(c+a)^+$

Answer:
Position:
Show:

Related questions

0 0 votes
1 1 answer
220
220 views
admin asked Nov 13, 2024
220 views
Let $L$ be a regular language, and let $n=10$. Which of the following statements is true?$L \cup\left\{a^{n} b^{n}\right\}$ is regular$L \cup\left\{a^{n} b^{n}\right\}$ i...
1 1 vote
1 1 answer
592
592 views
admin asked Nov 13, 2024
592 views
Let $\Sigma=\{a, b\}$ be an alphabet. A palindrome is a word which reads the same when read from left-to-right, or from right-to-left. For example, the words $a b b a, a ...
0 0 votes
0 0 answers
210
210 views
admin asked Nov 13, 2024
210 views
Let $f: \mathbb{N} \rightarrow \mathbb{N}$ and $g: \mathbb{N} \rightarrow \mathbb{N}$ be functions over the set $\mathbb{N}$ of natural numbers. We will say:$f(n)=O(g(n))...
0 0 votes
0 0 answers
275
275 views
admin asked Nov 13, 2024
275 views
The input to the problem consists of (i) an array $A[1,2, \ldots, n]$ of $n$ positive integers and (ii) a positive integer $T$. We are given the guarantee that at least o...