1,296 views

2 Answers

Best answer
7 votes
7 votes

Yes.... it is...

selected by
1 votes
1 votes

1)Mod functions are always Regular .

2)If some language contain relation b/w 'a mod x' and 'b mod y ' then our DFA contains x*y states.

Sorry above DFA is wrong one

The correct DFA for {( #0(w) – #1(w) )mod3) = 1}

and in parallel both my first and second statement are false , good that misconception cleared.

if our question contains {w|(|#0(w) – #1(w)|mod3) = 1} i just notice the actual question is that actually.

Its not regular.

http://www.ugrad.cs.ubc.ca/~cs421/hw/2/a.pdf

tell me if here also some problem.

edited by

Related questions

1 votes
1 votes
1 answer
1
prabhath challa asked 6 days ago
53 views
what will be the regular expression of this DFA using Arden's theorem
0 votes
0 votes
1 answer
2
hasina ali asked Mar 21
89 views
Set of binary strings starting with 11 and ending with 00. E.g., 1100,1110100 ,1100100
0 votes
0 votes
1 answer
3
utsav22222 asked Mar 15
131 views
Write regular expression for the set of strings of 0's and 1's with at most one pair of consecutive 1's.