edited by
11,988 views
11 votes
11 votes

Consider the Deterministic Finite-state Automaton ($\text{DFA}$) $\mathcal{A}$ shown below. The $\text{DFA}$ runs on the alphabet $\{0,1\}$, and has the set of states $\{s, p, q, r\}$, with $s$ being the start state and $p$ being the only final state.

Which one of the following regular expressions correctly describes the language accepted by $\mathcal{A}?$ 

  1. $1\left(0^{*} 11\right)^{*}$
  2. $0(0+1)^{*}$
  3. $1(0+11)^{*}$
  4. $1\left(110^{*}\right)^{*}$
edited by

5 Answers

0 votes
0 votes
We can remove the state r as it is dead state, hence we end up with remaining 3 states

The transtions (p,1) and (q,1)can be converted to (11)* as self loop on state p after elimination of state q

So, we end up wth two states s and p, now on p the self loop is (0+11)*

So the regular expression is 1(0+11)*, which is option C
Answer:

Related questions

9.0k
views
4 answers
8 votes
admin asked Feb 15, 2023
8,956 views
Consider the following definition of a lexical token $\textbf{id}$ for an identifier in a programming language, using extended regular expressions:\[\begin{array}{ll}\tex...
8.6k
views
3 answers
4 votes
admin asked Feb 15, 2023
8,560 views
Which of the following statements is/are $\text{CORRECT}?$The intersection of two regular languages is regular.The intersection of two context-free languages is context-f...
6.7k
views
2 answers
7 votes
admin asked Feb 15, 2023
6,653 views
A survey for a certain year found that $90\%$ of pregnant women received medical care at least once before giving birth. Of these women, $60\%$ received medical care from...
15.8k
views
4 answers
24 votes
admin asked Feb 15, 2023
15,819 views
Consider the following statements regarding the front-end and back-end of a compiler.S1: The front-end includes phases that are independent of the target hardware.S2: The...