2,163 views

2 Answers

Best answer
7 7 votes

Yes.... it is...

• selected by
1 1 vote

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
Position:
Show:

Related questions

1 1 vote
1 1 answer
79
79 views
GO Classes asked Oct 1
79 views
Consider the following regular expressions over the alphabet$\Sigma=\{a,b\}$.$R_1=a(a\cup b)^*$$R_2=b(a\cup b)^*$If $L(R)$ denotes the language associated with regular ex...
0 0 votes
1 1 answer
405
405 views
L_Rashmi_Dedeepya asked Nov 14, 2024
405 views
Most languages are case sensitive, so keywords can be written only one way, and the regular expressions describing their lexemes are very simple. However, some languages,...