Let us find the Minimal DFA that accepts the language of all binary numbers that are divisible by 3.




| Decimal | Binary | Remainder | End State |
| 0 | 0 | 0 | q0 |
| 1 | 1 | 1 | q1 |
| 2 | 10 | 2 | q2 |
| 3 | 11 | 0 | q0 |
| 4 | 100 | 1 | q1 |
| 5 | 101 | 2 | q2 |
| 6 | 110 | 0 | q0 |
| 7 | 111 | 1 | q1 |

This is the final and minimal DFA that accepts the laguage of all binary numbers that are divisible by 3.
with this minimal DFA we can not remove any state to form 2 state dfa that accepts the language of all binary numbers that are divisible by 3.
So we can conclude that a two state DFA is not possible such that it accepts the language of all binary numbers that are divisible by 3.
In general for accepting al language of all binary numbers that are divisible by "n" requires "n" - State DFA.
Design a DFA with 2 states that accepts the language of all binary numbers that are...
Part B - Automata Construction Draw a DFA which accepts the following language over the alphabet of {0,1}: the set of all strings such that the number of 0s is divisible by 2 and the number of 1s is divisible by 5. Your DFA must handle all intput strings in {0,1}*. Here is a methodical way to do this: Figure out all the final states and label each with the shortest string it accepts, work backwards from these states to...
Draw a DFA which accepts the following language over the alphabet of {0,1}: the set of all strings such that there are no consecutive 0s, and the number of 1s is divisible by 5. Your DFA must handle all intput strings in {0,1}*. Here is a way to approach the problem: First focus only building the DFA which accepts the language: As you build your DFA, label your states with an explanation of what the state actually represents in terms...
Draw a DFA which accepts the following language over the alphabet of {0,1}: the set of all strings such that there are two consecutive 0s or the number of 1s is not divisible by 5. Your DFA must handle all intput strings in {0,1}*. (Hint: look at solution of previous question)
I need to design DFA that accepts binary number divisible by 9. I know I need 9 states and use the mod operator. but having difficulty figuring all the edges thanks. This is not a question from my homework but related.
Question 1: Design a DFA with at most 5 states for the language L1 = {w ∈ {0, 1}∗ | w contains at most one 1 and |w| is odd}. Provide a state diagram for your DFA. Approaching the Solution --since we haven’t really practiced this type of assignment (i.e. had to define our machine based on only having the language given; not the formal 5 tuples), I am providing the steps for how to work through this; you are...
Draw a DFA that accepts all binary strings of length 4 modulo 7.
Design a DFA that accepts the set of all strings with 3 consecutive zeros at anywhere?
(g) If there is an NFA with s states which accepts a language L, then we can construct a DFA which accepts the same language and has: (circle the smallest correct answer a) s states b) 2s states d) 2 states (h) If there is a DFA which accepts a language A with s states and another whiclh accepts language B with t states, then we can construct a DFA which accepts An B which has (circle the smallest correct...
Create a DFA for the language L = {w ∈ {0, 1}∗ : w is a set of strings with 011 as a substring AND is not divisible by 3 }. First, create two separate DFAs for is a set of strings with 011 as a substring and not divisible by 3. Then, create the intersection between those DFAs by using the product construction. Show all your work. Hint: Use the least amount of states as possible.
2. Let L = {hMi: M is a Turing machine that accepts at least two
binary strings}. a) Define the notions of a recognisable language
and an undecidable language. [5 marks] b) Is L Turing-recognisable?
Justify your answer with an informal argument. [5 marks] c) Prove
that L is undecidable. (Hint: use Rice’s theorem.) [20 marks] d)
Bonus: Justify with a formal proof your answer to b). [20
marks]
2. Let L-M M): M is a Turing machine that accepts...