The machine is NFA,
Let us understand what language that can be accepted by the machine.
s3 and s5 are rejecting state because there is no way from these states to reach any final state.
First of all, the initial state is also a final state. So empty string would be accepted.
Now, If the string started with 0, it can go to s1 and s2, both. Assume if it goes to s2. At s2 there is self-transition for both inputs 0 and 1. And also s2 is a final state. So, we can safely say that all the string started with 0 can be accepted by the machine.
Now, if the string starts with 1, we need to go to state s1. We have a self-transition for 1 but if we get 0, we need to go to the rejecting state s3. So, if the string starts with 1, it should have all 1's to be accepted.
So, on summarising above things, three types of binary string accepted by the machine M:
1. empty string
2. strings started with 0
3. strings containing all 1's.
Formally,
Please upvote. Thanks.
a. Writethe formal description of the following state machine (M 0. I irt So 0 0....
1. (25 points) Turing Machine Design: Design a Turing machine Mi that operates on inputs that are strings in 10, 1). Design Mi so that it recognizes the following language: fw E (0.1)l w ends in 10 or 111) a. Provide a high-level English prose description for the actions of Mi b. Provide an implementation-level description of M. c. List the parts of the formal 7-tuple for M d. Draw a detailed pictorial state diagram for M1 e. List the...
Formal language and automata
0+11*0+(01)*
M=? Machine
G=? Grammer
0 + 11*0 +(01)* M=? 6=2
3.(4 4+20-36 points Formal Definition of a Turing Machine (TM) ATM M is expressed as a 7-tuple (Q, T, B, ? ?, q0,B,F) where: . Q is a finite set of states T is the tape alphabet (symbols which can be written on Tape) .B is blank symbol (every cell is filled with B except input alphabet initially .2 is the input alphabet (symbols which are part of input alphabet) is a transition function which maps QxTQxTx (L, R :...
(a) Give a high-level description of a TM that recognizes the following language: [ = {w w e{0,1}* and the number of Os is twice as many as the number of 1s} (b) Give a formal description including a state diagram for the TM for L. number of Os is twice as many as the number of 1s
(a) Give a high level description of a single-tape deterministic Turing machine that decides the language L = {w#x#y | w ∈ {0, 1} ∗ , x ∈ {0, 1} ∗ , y ∈ {0, 1} ∗ , and |w| > |x| > |y|}, where the input alphabet is Σ = {0, 1}. (b) What is the running time (order notation) of your Turing machine? Justify your answer.
Give an informal description of a deterministic Turing machine for the language L = {w ∈ {0, 1}* | w is not of the form (01)^n (10)^n for n ≥ 0}.
For each part below, find a finite automaton M which satisfies the given description. Describe M using both a state diagram and a formal 5-tuple in each part. (a) The language accepted by M is the set of all binary strings which contain exactly 3 1’s. (b) The language accepted by M is the set of all binary strings which contain at least 3 1’s. (c) The language accepted by M is the set of all binary strings which contain...
Give the state diagram for a single-tape Turing machine for the following language. L = {a#b#c | a, b, c ∈ { 0 , 1 }∗ and a,b,c all have the same number of zeroes} Assume Σ = { 0 , 1 }
2. Let L-M M): 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 [5 marks] b) Is L Turing-recognisable? Justify your answer with an informal argument. c) Prove that L is undecidable. (Hint: use Rice's theorem.) [20 marks] 20 marks] d) Bonus: Justify with a formal proof your answer to b).
2. Let L-M M): M is a Turing machine that accepts at...
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...