GATE Exam  >  GATE Questions  >   Find the number of states in minimal FA for ... Start Learning for Free
Find the number of states in minimal FA for the following language :
L = {(a+b) × | number of a's = (0 mod 4) and (0 mod 8)}
Correct answer is '8'. Can you explain this answer?
Verified Answer
Find the number of states in minimal FA for the following language :L...
Let set A = number of a's = 0 mod 4
and set B = number of a's = 0 mod 8
clearly , B is a subset of A
Hence A ∩ B = B
So the number of states will be determined only by set B
Hence , the number of a's = 0 mod 8 requires 8 states.
Hence answer = 8
View all questions of this test
Most Upvoted Answer
Find the number of states in minimal FA for the following language :L...
Number of states in minimal FA for L = {(a b) × | number of a's = (0 mod 4) and (0 mod 8)}

Introduction
The given language L consists of all strings of the form (a^m b^n) where the number of a's is divisible by both 4 and 8. We need to find the number of states in the minimal finite automaton (FA) for this language.

Approach
To construct the minimal FA, we need to consider the possible remainders when the number of a's is divided by 4 and 8. We can represent these remainders using two states. Let's analyze the steps to construct the minimal FA for L.

Step 1: Remainder 0 (mod 4) and 0 (mod 8)
The initial state of the FA will represent the remainder 0 (mod 4) and 0 (mod 8) since the empty string is also in the language. Let's denote this state as A.

Step 2: Remainder 0 (mod 4) and 1 (mod 8)
If we read a 'b' in state A, the number of b's increases by 1, but the number of a's remains the same. This leads to a remainder of 0 (mod 4) and 1 (mod 8). We can transition to a new state, B, to represent this remainder.

Step 3: Remainder 1 (mod 4) and 2 (mod 8)
If we read another 'b' in state B, the number of b's increases by 1 again, but the number of a's remains the same. This results in a remainder of 1 (mod 4) and 2 (mod 8). We can transition to a new state, C, to represent this remainder.

Step 4: Remainder 2 (mod 4) and 4 (mod 8)
If we read a 'b' in state C, the number of b's increases by 1 once more, but the number of a's remains the same. This gives us a remainder of 2 (mod 4) and 4 (mod 8). We can transition to a new state, D, to represent this remainder.

Step 5: Remainder 3 (mod 4) and 0 (mod 8)
If we read a 'b' in state D, the number of b's increases by 1 again, but the number of a's remains the same. This leads to a remainder of 3 (mod 4) and 0 (mod 8). We can transition back to state A (initial state) to represent this remainder.

Step 6: Remainder 0 (mod 4) and 3 (mod 8)
If we read an 'a' in state A, the number of a's increases by 1, but the number of b's remains the same. This results in a remainder of 0 (mod 4) and 3 (mod 8). We can transition to a new state, E, to represent this remainder.

Step 7: Remainder 1
Explore Courses for GATE exam

Similar GATE Doubts

Find the number of states in minimal FA for the following language :L = {(a+b) × | number of a's = (0 mod 4) and (0 mod 8)}Correct answer is '8'. Can you explain this answer?
Question Description
Find the number of states in minimal FA for the following language :L = {(a+b) × | number of a's = (0 mod 4) and (0 mod 8)}Correct answer is '8'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about Find the number of states in minimal FA for the following language :L = {(a+b) × | number of a's = (0 mod 4) and (0 mod 8)}Correct answer is '8'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Find the number of states in minimal FA for the following language :L = {(a+b) × | number of a's = (0 mod 4) and (0 mod 8)}Correct answer is '8'. Can you explain this answer?.
Solutions for Find the number of states in minimal FA for the following language :L = {(a+b) × | number of a's = (0 mod 4) and (0 mod 8)}Correct answer is '8'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of Find the number of states in minimal FA for the following language :L = {(a+b) × | number of a's = (0 mod 4) and (0 mod 8)}Correct answer is '8'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Find the number of states in minimal FA for the following language :L = {(a+b) × | number of a's = (0 mod 4) and (0 mod 8)}Correct answer is '8'. Can you explain this answer?, a detailed solution for Find the number of states in minimal FA for the following language :L = {(a+b) × | number of a's = (0 mod 4) and (0 mod 8)}Correct answer is '8'. Can you explain this answer? has been provided alongside types of Find the number of states in minimal FA for the following language :L = {(a+b) × | number of a's = (0 mod 4) and (0 mod 8)}Correct answer is '8'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Find the number of states in minimal FA for the following language :L = {(a+b) × | number of a's = (0 mod 4) and (0 mod 8)}Correct answer is '8'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev