4 votes 4 votes Indicate whether the following statements are true or false, providing a short explanation to substantiate your answers. A DFA with $n$ states must accept at least one string of length greater than $n$. Theory of Computation cmi2010 theory-of-computation finite-automata descriptive + – go_editor asked May 19, 2016 go_editor 2.1k views answer comment Share Follow See 1 comment See all 1 1 comment reply Punit Sharma commented Aug 12, 2019 i edited by Punit Sharma Aug 12, 2019 reply Follow Share To accept a language with - \[L = \left\{\epsilon: over \left\{a,b\right\}\right\}\] will have a DFA that will have two states but string length accepted by it is 0 0 votes 0 votes Please log in or register to add a comment.
Best answer 6 votes 6 votes FALSE. It is true only if the DFA is accepting infinite set of strings. Say, the DFA accepts only $\mathbf{aa}$ Minimum number of states to accept $\mathbf{aa}$ is $4$ as shown below. So, here no string with length $>4$ is accepted. srestha answered May 24, 2016 • selected May 2, 2019 by Arjun srestha comment Share Follow See all 3 Comments See all 3 3 Comments reply Praveen Saini commented May 25, 2016 reply Follow Share It will help I think. 2 votes 2 votes Arjun commented May 27, 2016 reply Follow Share According to pumping lemma, if $xyz$ belongs to $L$ and $|w| > n$, where $n$ is a fixed constant for $L$, and $|xy| \leq n$ then $xy^iz \in L$ for $i \geq 0$. What this means is that we have a min-DFA for $L$. And we are having a string whose length is sufficiently large to cause a loop in the DFA- without a loop the maximum length possible will be the longest path from start state to final state and that is $n$. So, once we have a loop for any string being accepted, we can repeat that loop any number of times (including removal of loop - or 0 times) and all the corresponding strings will be in $L$. This also implies that $L$ accepts infinite strings as $i$ can take any whole number. Just putting $i = 2$ solves our problem for the given question. 4 votes 4 votes srestha commented May 27, 2016 i edited by srestha May 27, 2016 reply Follow Share https://gateoverflow.in/47073/cmi2010-b-04b Here minimum longest path from start state to final state 2n putting i=2 string length is 2n+y which is less than 3n . rt? 0 votes 0 votes Please log in or register to add a comment.