Design Turing machines for the following languages:
a. The set of all strings with an equal number of 0’s and 1’s.
b. {an bn cn | n >= 1}
c. {wwR | w is any string of 0’s and 1’s}
Design Turing machines for the following languages: a. The set of all strings with an equal...
8. Construct Turing machines that will accept the following languages on \(\{\mathrm{a}, \mathrm{b}\}\)
(c) \(L=\{w:|w|\) is a multiple of 4\(\}\).
(g) \(L=\left\{a^{n} b^{n} a^{n} b^{n}: n \neq 0\right\}\).
(h) \(\left.L=a^{n} b^{2 n}: n \geq 1\right\}\).
40 points) Please design a Turing machine T to recognize the union of the languages of two Turing machines Mi and M2. That is, T accepts an input string w, if and only if either Mi or M2 or both accept string w. Please describe the high-level idea (or algorithm) of your Turing machine T. You do not need to draw the low-level state transition diagram of your Turing machine. Note that the difficulty is that Mi or M2 may...
Give state diagrams (pictures) for Turing Machines that decide the following languages over the alphabet {0.1}: 1. {w | w contains an equal number of 0s and 1s} 2. {w | w does not contain twice as many 0s as 1s}.
(a) Turing Machines can easily be designed to recognize regular languages. Construct either a Turing Machine that accepts the language denoted by the regular expression 0^*1 for the alphabet Σ = {0, 1}. Choose a random string in the language and trace through it (step by step) using your machine
Construct NFAs for the following languages: 1. The set if binary strings such that the number of 0's is a multiple of 3 or the number of 1's is a multiple of 5. 2. The set of all binary strings containing 101 or 100 as substring 3. The set of all strings such that the 12th symbol from the right end is 0
Languages and Machines textbook problem. The set of strings over {a, b } in which the substring aa occurs at least twice. Hint: Beware of the substring aaa.
5. 20 Points Draw transition diagrams for standard Turing machines that accept the following languages. In each case, give a brief description in English of your strategy. (a) Ls {ww w e {a, b}*} (b) Le wu w, и € fа, b}*, |u| 3D lul}
Design finite automata (deterministic or nondeterministic) for each of the following languages All strings of digits with at most one repeated digit. All strings of a's and b's with an even number of a's and an odd number of b's.
1. Design an NFA (Not DFA) of the following languages. a) Lw E a, b) lw contain substring abbaab) b) L- [w E 10,1,2) lsum of digits in w are divisible by three) c) L-(w E {0,1,2)' |The number is divisible by three} d) The language of all strings in which every a (if there are any) is followed immediately by bb. e) The language of all strings containing both aba and bab as substrings. f L w E 0,1every...
Provide regular expressions for the following languages: a.) The set of strings over {0,1} whose tenth symbol from the right end is 1. b) The set of strings over {0,1} not containing 101 as a sub-string. ***IMPORTANT: PLEASE SHOW ALL WORK AND ALL STEPS, NOT JUST THE ANSWERS!!!