1,438 views
0 votes
0 votes
Find a DFA for the following language on Σ = {0, 1}

L = {w : the value of w, interpreted as a binary representation of an integer is zero modulo five}. For example, 0101 and 1111, representing the integers 5 and 15, respectively, are to be accepted. Hint: Label the states with the value (mod 5) of the partial bit string. To take care of the next bit, use the relationship 2n mod 5 = (2n mod 5) mod 5, (2n + 1) mod 5 = [(2n mod 5) + 1] mod 5.

1 Answer

Best answer
0 votes
0 votes

......

edited by

Related questions

536
views
0 answers
0 votes
csenoob asked Dec 5, 2018
536 views
Hello all,I saw an interesting question and i was wondering how to solve it. basically the subject i am having trouble with is going from equivalence classes of ... to finding the DFA? don't understand it.thank you very much for your help
987
views
1 answers
0 votes
shekhar chauhan asked Jun 8, 2016
987 views
Write a Grammar which is a not type -3 Grammar, from the Language L over alphabets {a ,b} which contains ab as a Sub-string. Explain the procedure with Example .
842
views
1 answers
0 votes
M_Umair_Khan42900 asked Dec 29, 2022
842 views
Show that the following pairs of regular expressions define the same language over the alphabet I = [a, b].s(a) p(pp)*( A + p)q + q and p*q(b) A +0(0+1)* + (0+1)* 00(0+1)* and ((1*0)*01*)*(c) (s*ttt)*s* and s*(ttts*)*
1.4k
views
3 answers
7 votes
Garrett McClure asked Sep 22, 2017
1,429 views
Find regular expressions for:All binary strings with exactly two $1's$The set $\{a^nb^m :n\geq3, m$ is even$\}$All binary strings with a double symbol (contains $00$ or $11$) ... .The language on $\Sigma=\{a,b\}, L=\{w:n_a(w) \mod 3=0\}$