edited by
254 views
1 votes
1 votes
Let $\sum = \{0,1\}$ and let $D = \{w|w$  $\text{contains an equal number of occurrences of the sub strings 01 and 10}\}.$
Thus $101\in D$ because $101$ contains a single $01$ and a single $10,$ but $1010\notin D$ because $1010$ contains two $10's$ and one $01.$ Show that $D$ is a regular language.
edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
2
admin asked Apr 30, 2019
676 views
Let $A$ be any language. Define $\text{DROP-OUT(A)}$ to be the language containing all strings that can be obtained by removing one symbol from a string in $A.$ Thus, $\t...
0 votes
0 votes
0 answers
3