Skip to content
Related Articles
Open in App
Not now

Related Articles

GATE | GATE CS Mock 2018 | Set 2 | Question 28

Improve Article
Save Article
  • Last Updated : 08 Mar, 2018
Improve Article
Save Article

Consider the Deterministic Finite Automaton for input alphabets Σ = {a, b}
L =  \{ n_a(w) \mod 3 > n_b(w) \mod 3 \mid a > b \}
The number of final state(s) will be
(A) 2
(B) 1
(C) 3
(D) 6


Answer: (C)

Explanation: We have to Check for all the states where a > b. Say &Sigma = { 0, 1, 2 }
Therefore, final states will be = { 10, 20, 21 }
Number of final states will be 3.


Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!