PLEASE FIND THE ANSWER(S) and EXPLANATION BELOW.
(a)
(b)
(a) Give a high-level description of a TM that recognizes the following language: [ = {w...
Design a Turing machine that recognizes the language L := {vSw : u, w E {0,1)" and u is a substring of u For example, 0801 E L' 10$010 E L, but i 00$10101 ¢ L. Describe the High Level algorithm informally and define the corresponding Turing Machine in details. Design a Turing machine that recognizes the language L := {vSw : u, w E {0,1)" and u is a substring of u For example, 0801 E L' 10$010 E...
1. Construct a Finite Automata over Σ={0,1} that recognizes the language {w | w ∈ {0,1}* contains a number of 0s divisible by four and exactly three 1s} 2. Construct a Finite Automata that recognizes telephone numbers from strings in the alphabet Σ={1,2,3,4,5,6,7,8,9, ,-,(,),*,#,}. Allow the 1 and area code prefixing a phone number to be optional. Allow for the segments of a number to be separated by spaces (denote with a _ character), no separation, or – symbols.
(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.
4. (6 pts) Give an implementation-level description (describe how you would move the tape head, what you write on the tape, etc) of a Turing machine that decides the language (w w contains an even number of Is) over the alphabet (0,1) 4. (6 pts) Give an implementation-level description (describe how you would move the tape head, what you write on the tape, etc) of a Turing machine that decides the language (w w contains an even number of Is)...
Construct a Turing Machine (TM) that accepts the following language, defined over the alphabet Σ = {0,1): at accepts the tollowing language, define [10] Give the transition diagram and explain the algorithm implemented by your TM.
Construct a TM that accepts the following language. Write the high-level algorithm executed by the machine and label the sections(5 points). {a^i b^j c^k | i + j = k}
. Please design a standard TM (i.e., a single semi-infinite tape, deterministic) for the laın guage of all palindromes over alphabet {a, b} . Please give both the high-level description (text description or pseudo-code algorithm) and the low-level state transition diagram. Please analyze how many steps (one transition is considered as a step) it takes to accept an input palindrome with n symbols . Please design a deterministic Turing machine with two semi-infinite tapes for the same language. Please give...
For a string s ∈ {0, 1} let denote the number represented by in the binary * s2 s numeral system. For example 1110 in binary has a value of 14 . Consider the language: L = {u#w | u,w ∈ {0, 1} , u } , * 2 + 1 = w2 meaning it contains all strings u#w such that u + 1 = w holds true in the binary system. For example, 1010#1011 ∈ L and 0011#100 ∈...
1. (TM descriptions) (a) Give the sequence of configurations that the following TM M enters when given as input strings 1##1 and 0#0. Please use the same representation for your configurations as we did in lecture 10. The reject state and transitions to the reject state are not shown. Whenever the TM encounters a character for which there is no explicit transition that means that the TM goes to the reject state. We say that the head moves right in...
Give a context free grammar for the language L where L = {a"bam I n>:O and there exists k>-o such that m=2"k+n) 3. Give a nondeterministic pushdown automata that recognizes the set of strings in L from question 3 above. Acceptance should be by accept state. 4. 5 Give a context-free grammar for the set (abc il j or j -k) ie, the set of strings of a's followed by b's followed by c's, such that there are either a...