Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Minimal Finite Automata - Theory of Computation
stillhere
asked
in
Theory of Computation
Sep 10, 2023
392
views
1
vote
1
vote
Consider the set of all binary strings where the difference between the number of 0’s and number of 1’s is even. The minimum number of states in a DFA that accepts the given set is _____________?
(kindly explain the approach to this problem)
minimal-state-automata
finite-automata
theory-of-computation
number-of-states
stillhere
asked
in
Theory of Computation
Sep 10, 2023
by
stillhere
392
views
answer
comment
Follow
share this
share
1 comment
by
none30
commented
Sep 10, 2023
reply
Follow
share this
The minimum number of states in DFA will be 4.
0
0
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
2
votes
Best answer
Given the difference between no of 0s and 1s is even which is possible only when both the no of 1s and 0s are even or both are odd.
by this we will get 4 states but we can apply partition algorithm to get min 2 state dfa.
AGNIDEB MUKHERJEE
answered
Sep 10, 2023
selected
Nov 20, 2023
by
stillhere
by
AGNIDEB MUKHERJEE
comment
Follow
share this
3 Comments
by
stillhere
commented
Sep 10, 2023
reply
Follow
share this
Thank you, didn’t knew about “partition algorithm”, gonna learn it right now.
1
1
by
mili_dhara
commented
Nov 14, 2023
reply
Follow
share this
Will you please draw the DFA?
0
0
by
AGNIDEB MUKHERJEE
commented
Nov 14, 2023
reply
Follow
share this
i am not able to upload the image
see you can do like this.Consider 2 states(A,B) (A-final st)
δ(A,0)=δ(A,1)=B
δ(B,0)=δ(B,1)=A
0
0
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
0
votes
0
votes
0
answers
1
arya_stark
asked
in
Theory of Computation
Oct 12, 2018
379
views
TOC : Minimum State in Finite Automata ( virtualgate )
For a binary string x = a0a1 · · · an−1 define val(x) to be the value of x interpreted as a binary number, where a0 is the most significant bit. More formally, val(x) is given by How many minimum states will be in a finite automaton that accepts exactly the set of binary strings x such that val(x) is divisible by either 4 or 5. Ans is 5 or 20?
arya_stark
asked
in
Theory of Computation
Oct 12, 2018
by
arya_stark
379
views
theory-of-computation
finite-automata
minimal-state-automata
number-of-states
0
votes
0
votes
1
answer
2
suraj patel
asked
in
Theory of Computation
Jul 10, 2018
2,564
views
Minimum finite automata
Construct the Minimum FA that accepts all the string of 0's and 1's where A)Every String start and end with Zero. B)Every string Start and end with Same Symbol.
suraj patel
asked
in
Theory of Computation
Jul 10, 2018
by
suraj patel
2.6k
views
finite-automata
theory-of-computation
minimal-state-automata
number-of-states
0
votes
0
votes
3
answers
3
kislaya Pant
asked
in
Theory of Computation
May 8, 2018
3,153
views
No of states in Minimal DFA
Ques:- Let ∑= {0, 1} What will be the number of states in minimal DFA, if the Binary number string is congruent to (mod 8)? *[ Can anybody explain this as I am getting 8 states for this since remainders will be 8 (0,1,2,3,4,5,6,7). But the answer is 4].
kislaya Pant
asked
in
Theory of Computation
May 8, 2018
by
kislaya Pant
3.2k
views
theory-of-computation
minimal-state-automata
finite-automata
number-of-states
2
votes
2
votes
2
answers
4
humblefool
asked
in
Theory of Computation
Nov 2, 2017
1,688
views
Number of states in a minimal DFA construction
Suppose L is a regular language of all a's and b's where the number of a's is divisible by m and the number of b's is divisible by n. If M is the minimal DFA accepting language L, then what is the number of states in M ? Is it nm or (n+1)(m+1) ?
humblefool
asked
in
Theory of Computation
Nov 2, 2017
by
humblefool
1.7k
views
theory-of-computation
minimal-state-automata
finite-automata
number-of-states
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy