Recent questions tagged regular-expression

0 0 votes
0 0 answers
567
567 views
Prove that $(L^{*}M^{*})^{*}=(L+M)^{*}.$Complete the proof by showing that strings in $(L^{*}M^{*})^{*}$ are also in $(L+M)^{*}.$
0 0 votes
0 0 answers
647
647 views
We developed the regular expression $(0+1)^{*}1(0+1)+(0+1)^{*}1(0+1)(0+1)$ Use the distributive laws to develop two different,simpler,equivalent expressions.
1 1 vote
0 0 answers
1.6k
1.6k views
Prove or disprove each of the following statements about regular expressions.$(R+S)^{*}=R^{*}+S^{*}$$(RS+R)^{*}R=R(SR+R)^{*}$$(RS+R)^{*}RS=(RR^{*}S)^{*}$$(R+S)^{*}S=(R^{*...
0 0 votes
0 0 answers
997
997 views
Verify the following identities involving regular expressions.$R+S=S+R$$(R+S)+T=R+(S+T)$$(RS)T=R(ST)$$R(S+T)=RS+RT$$(R+S)T=RT+ST$$(R^{*})^{*}=R^{*}$$(\in+R)^{*}=R^{*}$$(R...
0 0 votes
0 0 answers
578
578 views
Give a regular expression to represent salaries as they might appear in employment advertising. Consider that salaries might be given on a per hour, week, month or year b...
0 0 votes
0 0 answers
545
545 views
Give a regular expression to describe phone numbers in all the various forms you can think of. Consider international numbers as well as the fact that different countries...
1 1 vote
0 0 answers
315
315 views
Convert the following regular expressions to NFA's with $\in-$transactions. $01^{*}$$(0+1)01$$00(0+1)^{*}$Eliminate $\in-$transactions from your $\in-NFA’s$
0 0 votes
0 0 answers
361
361 views
Convert the following regular expressions to NFA's with $\in-$transactions.$01^{*}$$(0+1)01$$00(0+1)^{*}$
2 2 votes
0 0 answers
1.1k
1.1k views
Convert the following DFA to a regular expression using the state elimination techniques.
0 0 votes
0 0 answers
854
854 views
Here is a transition table for a DFA$:$Give all the regular expressions $R_{ij}^{0}.$ Note$:$Think of state $q_{i}$ as if it were the state with integer number $i.$ Give ...
0 0 votes
0 0 answers
861
861 views
Here is a transition table for a DFA$:$ Give all the regular expressions $R_{ij}^{0}.$ Note$:$Think of state $q_{i}$ as if it were the state with integer number $i.$ Give...
0 0 votes
0 0 answers
467
467 views
Give English descriptions of the languages of the following regular expressions$:$$(1+\in)(00^{*}1)^{*}0^{*}$$(0^{*}1^{*})^{*}000(0+1)^{*}$$(0+10)^{*}1^{*}$
0 0 votes
0 0 answers
599
599 views
Write regular expressions for the following languages$:$The set of all strings of $0's$ and $1's$ not containing $101$ as a substring.The set of all strings with an equal...
2 2 votes
2 2 answers
3.7k
3.7k views
Write regular expressions for the following languages$:$The set of all strings of $0's$ and $1's$ such that every pair of adjacent $0's$ appears before any pair of adjace...
0 0 votes
0 0 answers
1.1k
1.1k views
Write regular expressions for the following languages$:$The set of strings over alphabet $\{a,b,c\}$ containing at least one $a$ and at-least one $b.$The set of strings o...
2 2 votes
1 1 answer
2.0k
2.0k views
Find regular expressions for the languages accepted by the following automata:-https://gateoverflow.in/304714/peter-linz-edition-4-exercise-3-2-question-10-b-page-no-88
0 0 votes
1 1 answer
1.0k
1.0k views
1 1 vote
0 0 answers
1.0k
1.0k views
Consider the following generalized transition graph.(a) Find an equivalent generalized transition graph with only two states.(b) What is the language accepted by this gra...
0 0 votes
0 0 answers
270
270 views
1 1 vote
0 0 answers
353
353 views
Find an nfa for all strings not containing the substring 101. Use this to derive a regular expression for that language.
0 0 votes
1 1 answer
557
557 views
Find dfa's that accept the following languages.(a) $L = L (ab^*a^*)∪ L ((ab)^* ba)$.(b) $L = L (ab^*a^*) $ $\cap$ $L ((ab)^* ba)$.
0 0 votes
0 0 answers
403
403 views
Find dfa's that accept the following languages.(a) $L (aa^* + aba^*b^*)$.(b) $L (ab (a + ab)^* (a + aa))$.(c) $L ((abab)^* + (aaa^* + b)^*)$.(d) $L (((aa^*)^* b)^*)$.
0 0 votes
0 0 answers
402
402 views
0 0 votes
0 0 answers
252
252 views
Find an nfa that accepts the complement of the language in $L (ab^*aa + bba^*ab)$.
0 0 votes
1 1 answer
380
380 views
0 0 votes
1 1 answer
462
462 views
1 1 vote
0 0 answers
689
689 views
Formal languages can be used to describe a variety of two-dimensional figures. Chain-codelanguages are defined on the alphabet $Σ =$ {$u, d, r, l$ }, where these symbols ...
0 0 votes
0 0 answers
451
451 views
For the case of a regular expression $r$ that does not involve $λ$ or $Ø$, give a set of necessary and sufficient conditions that $r$ must satisfy if $L(r)$ is to be infi...
0 0 votes
0 0 answers
312
312 views
Prove rigorously that the expressions in $r= (1^*011^*)^* (0 + λ) + 1^* (0 + λ)$ do indeed denote the specified language.
0 0 votes
1 1 answer
848
848 views
Give a general method by which any regular expression $r$ can be changed into $\widehat{r}$ such that $(L(r))^R = L(\widehat{r})$.