1. Design a Turing machine which recognizes the language consisting of all strings of Os whose...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Design a Turing machine which recognizes the language consisting of all strings of Os whose length is a power of 2. i.e., it decides the language L = {0²" | n ≥0}. Turing machine which recognizes the language 2. Design a Turing L = {w#w|wE {0,1}*}. 3. Design a Turing machine L = {a'b'ck |ix j = k and i, j, k ≥ 1}. which recognizes the language 4. Design a deterministic Turing machine (DTM) to accept the language L = {a'b'c' |iz0}. 5. Define a DTMs to accept the following languages. Specify the 5-tuple in each. (Use multi-tape machine if necessary). (a) {xxx {0,1}} (b) {xx(0,1) and x = x^} 6. Design DTMs to compute the following functions. (Input number can be in unary, i.e., n is encoded as 1"). (a) Successor function: f:N→ N where f(n) = n +1. (b) f: Nx N N such that f(a, b) = [a/b] (c) f:N → N such that f(n) = [log, n]. 7. Define Nondeterministic Turing machines to accept the following languages. (a) {xx x= {0,1}} (b) (xx(0,1) and x = x²} 8. Define a multiheaded Turing machine, a model in which each tape can have k tape heads. Prove that a Deterministic Turing Machine (DTM) with one work tape can simulate a two-headed Turing machine. 9. Design a Turing machine which computes the function f(n,n₂) = min(n₁, n₂) for all non-negative integers n, and n₂. 10. Design a Turing machine which computes the function f(n) = 3 if n ≥ 5 and f(n) = 0 if n =0, 1, 2, 3 or 4. 11. Construct a Turing machine which computes the function f(n) = n mod 5. 12. Design a Turing machine which recognizes the set (0"1"2" In ≥0). 13. Design a TM that recognizes the set of all bit strings that contain an even number of 15. 14. Construct a TM that recognizes the set of all bit strings which end with a 0. 15. Design a Turing machine with tape symbols 0, 1 and B that given a bit string as input, replaces all but the leftmost 1 on the tape with Os and does not change any of the other symbols on the tape. 16. Design a TM with tape symbols 0, 1 and B that replaces the first 0 with a 1 and does not change any of the other symbols on the tape. 17. Design a TM that recognizes the set (02"1" |nz0}. 18. Show that the recursiveness problem of Type-0 grammars is unsolvable. 19. Show that the problem of determining whether or not a TM over {0,1} will print ever the symbol 1, with a given tape configuration is unsolvable. 20. Show that there exists a TM for which the halting problem is unsolvable. 1. Design a Turing machine which recognizes the language consisting of all strings of Os whose length is a power of 2. i.e., it decides the language L = {0²" | n ≥0}. Turing machine which recognizes the language 2. Design a Turing L = {w#w|wE {0,1}*}. 3. Design a Turing machine L = {a'b'ck |ix j = k and i, j, k ≥ 1}. which recognizes the language 4. Design a deterministic Turing machine (DTM) to accept the language L = {a'b'c' |iz0}. 5. Define a DTMs to accept the following languages. Specify the 5-tuple in each. (Use multi-tape machine if necessary). (a) {xxx {0,1}} (b) {xx(0,1) and x = x^} 6. Design DTMs to compute the following functions. (Input number can be in unary, i.e., n is encoded as 1"). (a) Successor function: f:N→ N where f(n) = n +1. (b) f: Nx N N such that f(a, b) = [a/b] (c) f:N → N such that f(n) = [log, n]. 7. Define Nondeterministic Turing machines to accept the following languages. (a) {xx x= {0,1}} (b) (xx(0,1) and x = x²} 8. Define a multiheaded Turing machine, a model in which each tape can have k tape heads. Prove that a Deterministic Turing Machine (DTM) with one work tape can simulate a two-headed Turing machine. 9. Design a Turing machine which computes the function f(n,n₂) = min(n₁, n₂) for all non-negative integers n, and n₂. 10. Design a Turing machine which computes the function f(n) = 3 if n ≥ 5 and f(n) = 0 if n =0, 1, 2, 3 or 4. 11. Construct a Turing machine which computes the function f(n) = n mod 5. 12. Design a Turing machine which recognizes the set (0"1"2" In ≥0). 13. Design a TM that recognizes the set of all bit strings that contain an even number of 15. 14. Construct a TM that recognizes the set of all bit strings which end with a 0. 15. Design a Turing machine with tape symbols 0, 1 and B that given a bit string as input, replaces all but the leftmost 1 on the tape with Os and does not change any of the other symbols on the tape. 16. Design a TM with tape symbols 0, 1 and B that replaces the first 0 with a 1 and does not change any of the other symbols on the tape. 17. Design a TM that recognizes the set (02"1" |nz0}. 18. Show that the recursiveness problem of Type-0 grammars is unsolvable. 19. Show that the problem of determining whether or not a TM over {0,1} will print ever the symbol 1, with a given tape configuration is unsolvable. 20. Show that there exists a TM for which the halting problem is unsolvable.
Expert Answer:
Answer rating: 100% (QA)
1 Design for a Turing machine that recognizes the language L 0 n 0 The tape alphabet is 0 1 where 0 represents a blank symbol and 1 represents the input symbol The initial state is q0 and the only acc... View the full answer
Related Book For
Posted Date:
Students also viewed these organizational behavior questions
-
Consider the language consisting of all strings of properly balanced parentheses and brackets. (a) Give LL(1) and SLR(1) grammars for this language. (b) Give the corresponding LL(1) and SLR(1)...
-
Use Exercise 29 to show that the language consisting of all bit strings that are palindromes (that is, strings that equal their own reversals) is not regular.
-
Write a grammar for the language consisting of strings built only of the letters a and b. The strings may have any number of these letters, but the letter combinations bab must be in each string...
-
Trang had a rental home that received a notice of noncompliance because of her failure to maintain repairs. She received the notice on September 1, 2022 and did not complete any of the repairs until...
-
The following 5 overhaul jobs are waiting to be processed at Avianics Engine Repair Inc. These jobs were logged as they arrived. All dates are specified as planning calendar days. Assume that all...
-
Because of friction, a \(0.10-\mathrm{kg}\) hockey puck initially sliding over ice at \(8.0 \mathrm{~m} / \mathrm{s}\) slows down at a constant rate of \(1.0 \mathrm{~m} / \mathrm{s}^{2}\) until it...
-
The Maxwell's relation \(\left(\frac{\partial T}{\partial V} ight)_{S}=-\left(\frac{\partial P}{\partial S} ight)_{V}\) is derived from the fundamental thermodynamic relation (a) \(d H=T d S+V d P\)...
-
The handmade snuffbox industry is composed of 100 identical firms, each having short-run total costs given by STC = 0.5q2 + 10q + 5 and short-run marginal costs given by SMC = q + 10 Where q is the...
-
Use the graph on the right to estimate the death rate for 70-year-olds. Assuming that there were about 10.6 million 70-year-olds, how many people of this age could be expected to die in a year? U.S....
-
Use anonymous FTP to connect to ftp.rfc-editor.org (directory innotes), and retrieve the RFC index. Also retrieve the protocol specifications for TCP, IP, and UDP.
-
One option Pets-R-awesOMe is considering for its call center is to cross-train the two staff so they can both take orders or solve problems. In this case, all customers (i.e., those wishing to place...
-
The point is to 1) create the form, 2) collect data from the form, 3) do some calculations with the data and 4) send output to the page that differs depending on what you filled in the form. You...
-
In this assignment, you will conduct research to find the best loan for your first car. Using reference materials and Internet sites, you will collect information about a used car and loan options to...
-
2. (a) Assume that there is perfect capital mobility between the U.S. and Japan. Latest data show that economic growth in the U.S. was unexpectedly strong in the last quarter and consumer prices rose...
-
TABLE 13-1 Annual Percentage Rate (APR) Finance Charge per $100 ANNUAL PERCENTAGE RATE TABLE FOR MONTHLY PAYMENT PLANS SEE INSTRUCTIONS FOR USE OF TABLES NUMBER OF ANNUAL PERCENTAGE RATE PAYMENTS...
-
Task 1- Case Study (10 marks total) In this case study, you are a lawyer that has been approached with an unfair dismissal claim from a Project Manager that was recently fired for not releasing a...
-
Prepare the 20Y8 statement of cost of goods manufactured. 2. Prepare the 20Y8 income statement.
-
Calculate I, , and a for a 0.0175 m solution of Na 3 PO 4 at 298 K. Assume complete dissociation. How confident are you that your calculated results will agree with experimental results?
-
In Example 8.52 we noted that reference counts can be used to reclaim tombstones, failing only when the programmer neglects to manually delete the object to which a tombstone refers. Explain how to...
-
In the previous exercise you may have noticed that the dining philosophers are prone to deadlock. One has to worry about the possibility that all five of them will pick up their right-hand forks...
-
In all three of our case studies, stack-based arguments were placed into the argument build area in reverse order, with the lowest-numbered argument at the top. Explain why this is important.
-
Does higher expected inflation increase, decrease, or have no effect on the required rate of return?
-
What methods can a company use to raise capital?
-
Does a company share its risk by issuing equity or debt?
Study smarter with the SolutionInn App