0 votes 0 votes I have a doubt in this that according to me the answer should be 6 as 5 states for modulo 5 + 1 dead state in starting as according to ques the string is starting from 1 so 0 production will go to a dead state that's my assumption but behind the answer written is 7 states i m really confused how ?? Please help me what is its real answer Theory of Computation theory-of-computation finite-automata regular-language + – Himanshu Goyal asked Jun 26, 2016 • edited Jun 17, 2019 by Cristine Himanshu Goyal 902 views answer comment Share Follow See all 8 Comments See all 8 8 Comments reply Show 5 previous comments ManojK commented Jun 26, 2016 reply Follow Share Here it;s. 2 votes 2 votes Himanshu Goyal commented Jun 26, 2016 reply Follow Share This is the DFA I m getting please correct my mistake i didn't understand how did u got 7.I m getting 6 states what is wrong in mine and my final state is Q0 as 0 is the remainder i think that should be final state.Please tell my mistake in this DFA and thanks a lot all of you for your efforts :) 0 votes 0 votes ManojK commented Jun 26, 2016 reply Follow Share Strings in the language are 101,1010,1111,...............................etc. Since its staring with "one" so when zero comes it will be in trap state. As well as see in your diagram 1010 is not accepting and many string multiple of 5 not accepting . 0 votes 0 votes Please log in or register to add a comment.
Best answer 4 votes 4 votes Number of States = 7 LeenSharma answered Jun 26, 2016 • selected Jun 27, 2016 by Himanshu Goyal LeenSharma comment Share Follow See all 5 Comments See all 5 5 Comments reply ManojK commented Jun 26, 2016 reply Follow Share oh already answered. 0 votes 0 votes Himanshu Goyal commented Jun 26, 2016 reply Follow Share This is the DFA I m getting please correct my mistake i didn't understand how did u got 7.I m getting 6 states what is wrong in mine and my final state is Q0 as 0 is the remainder i think that should be final state.Please tell my mistake in this DFA and thanks a lot all of you for your efforts :) 0 votes 0 votes LeenSharma commented Jun 26, 2016 i edited by LeenSharma Jun 26, 2016 reply Follow Share your dfa is wrong because in Question it is clearly given that dfa should be start with 1. your Dfa can accept ∈(Empty string) which is wrong. This is the main problem and cause of all other problems like your dfa can not accept string like {1010,10100 ,........} . According to your dfa {1010,10100 ,........} lead to dead state which is wrong .These string should be accept too. 0 votes 0 votes Himanshu Goyal commented Jun 27, 2016 reply Follow Share Thanks a lot everyone :) 1 votes 1 votes monty commented Oct 12, 2016 reply Follow Share @leen pls explain Number of states in minimal finite automata that accepts all binary strings that starts with 101 and is divisible by 100. with shortcuts 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Answer is 6 states . [excluding dead state( it didn’t ask for minimal DFA)] tech_beardo answered Aug 14, 2020 tech_beardo comment Share Follow See all 0 reply Please log in or register to add a comment.